{"name":"@marijn/buildtool","version":"0.1.1","author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@marijn/buildtool@0.1.1","maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"homepage":"https://github.com/marijnh/buildtool#readme","bugs":{"url":"https://github.com/marijnh/buildtool/issues"},"dist":{"shasum":"51de87fd38f3d24911c06013d2d4d278c937b939","tarball":"http://registry-npm.ywwl.com/@marijn/buildtool/download/@marijn/buildtool-0.1.1.tgz","fileCount":6,"integrity":"sha512-ry+xGGVJwtOcFjNCSoRcbAojA/0OKAMAlfoWh6o927THYwjii6O6chI8vH5OnFxVd3I2WUeoqoW1eWOBd/KAJA==","signatures":[{"sig":"MEUCIQCT63srqE3p17XtpCHXD8EVDHezfyZt4LO6gyBPicSlnQIgB1l8jnhNxvkNNMn6SHXAZ3jVbOnBEMKRYZv9dXgDJv4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJig5HZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGJg//XRjUyvDWBoOUqeDWhPTizfopQJTjoxNdJA8mZIw68uFDUVvc\r\nU3scMVPr4fzSEFj7audbMJ0OdzhtVJypi1esnILNt2PT4cw6LQJ155taLHTx\r\nWPO8McHTra3Bsel9nUR8QAPntH3flgXl+DLZPeaCNWKR0c6rFKsK1oKd4Ro3\r\nsmSX/+RlrXamdUpvOEu6BNkNzNcKpgIX+TgcorisWhT+WeX4kTDskOOVMhys\r\ny4r7cLS00IfMxppiIcMz8hA+iY22HOQyMquqcMWyjuczHqh7HyayC4LpmZLM\r\nCW10ggecXEuhaj9Na30q5tOjikZnpdKkUnkLIMdhdHBVnKsVGw8cxqFK2N0m\r\nJP7AZZWT4r+2TFxD3sYV6VaXFcxukW1mKEAajNwLy+QuLgVZZ+sJ9mYyF7og\r\ndYZOYTZnOtO9DlBaW+YzYpc8ob2roO0KPGhyVaY/ryx2+C/7lGu396WOB7hf\r\nK5VNEzyQO0uTtQ+5LM1E2pmvJGsXOKbedsar48bOPmg3sUHQBCn2X3v9rOyM\r\n+4vT4LBHgJ8YFXp/8G2I1plpd1w2f2+FHaPGx0ZoAGkopGTqP2eWxUWZ8+hk\r\nRlj1W/ThVEDnqt1zGb8yW6U/zl93TjXr+Fp9I2w9gFFlVpd92WIBRFqoHaIG\r\ndhnjR+b6e2P6mgDpOMr5poqEYmGa2heAwtM=\r\n=HYHV\r\n-----END PGP SIGNATURE-----\r\n","size":6552,"noattachment":false,"key":"/@marijn/buildtool/-/@marijn/buildtool-0.1.1.tgz"},"main":"./src/buildtool.js","gitHead":"6625e41c0158e19c47970b93889f82c3be922222","scripts":{"prepare":"tsc","build-readme":"builddocs --name buildtool --main src/README.md --format markdown src/*.ts > README.md"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"repository":{"url":"git+https://github.com/marijnh/buildtool.git","type":"git"},"_npmVersion":"8.10.0","description":"Tool for building TypeScript packages","directories":{},"_nodeVersion":"16.13.1","dependencies":{"acorn":"^8.1.0","rollup":"^2.35.1","acorn-walk":"^8.0.2","typescript":"^4.6.2","@types/mocha":"^9.1.1","rollup-plugin-dts":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"builddocs":"^1.0.2","getdocs-ts":"^0.1.1","@types/node":"^14.14.33"},"_npmOperationalInternal":{"tmp":"tmp/buildtool_0.1.1_1652789721650_0.143323352280867","host":"s3://npm-registry-packages"},"readme":"# @marijn/buildtool\n\nUtility to build TypeScript projects that conform to a given set of\nconventions quickly and cleanly. Exports functions that wrap the\nTypeScript compiler and Rollup to build or watch one or more projects\nin one go, performing a single shared build (so that files from\ndifferent projects aren't compiled twice).\n\nAssumes your projects are set up like this:\n\n - TypeScript files in an `src` directory, will be compiled to\n   `dist/index.js` (ES module), `dist/index.cjs` (CommonJS), and\n   `dist/index.d.ts` (TypeScript) files.\n\n - Tests, if any, under `test`, will be compiled in-place to `.js`\n   files, which are ES modules.\n\n - Doc comments prefixed with triple slash `///` syntax will be\n   converted to `/**` JSDoc comments in the output, so that TypeScript\n   tooling picks them up.\n\n## API\n\n * **`build`**`(main: string | readonly string[], options?: BuildOptions = {}) → Promise`\\\n   Build the package with main entry point `main`, or the set of\n   packages with the given entry point files. Output files will be\n   written to the `dist` directory one level up from the entry file.\n   Any TypeScript files in a `test` directory one level up from main\n   files will be built in-place.\n\n\n * **`watch`**`(mains: readonly string[], extra?: readonly string[] = [], options?: BuildOptions = {})`\\\n   Build the given packages, along with an optional set of extra\n   files, and keep rebuilding them every time an input file changes.\n\n\n### interface BuildOptions\n\nOptions passed to `build` or `watch`.\n\n * **`typeCheck`**`?: boolean`\\\n   Fail the build on type errors. defaults to false\n\n * **`sourceMap`**`?: boolean`\\\n   Generate sourcemap when generating bundle. defaults to false\n\n * **`tsOptions`**`?: any`\\\n   Additional compiler options to pass to TypeScript.\n\n * **`bundleName`**`?: string`\\\n   Base filename to use for the output bundle and declaration\n   files. Defaults to `\"index\"`.\n\n * **`expandLink`**`?: fn(anchor: string) → string | null`\\\n   When given, this is used to convert anchor links in the `///`\n   comments to full URLs.\n\n * **`expandRootLink`**`?: string`\\\n   When given, prefix this to links in the comments that start with\n   a `/`.\n\n * **`outputPlugin`**`?: fn(root: string) → Plugin | Promise`\\\n   Adds a Rollup output plugin to use.\n\n * **`cjsOutputPlugin`**`?: fn(root: string) → Plugin`\\\n   Adds an output plugin to use only for CommonJS bundles.\n\n * **`pureTopCalls`**`?: boolean`\\\n   When set to true, add a `/*@__PURE__*/` comment before top level\n   function calls, so that tree shakers will consider them pure.\n   Note that this can break your code if it makes top-level\n   function calls that have side effects.\n\n * **`onRebuildStart`**`?: fn(packages: readonly string[])`\\\n   Function to call when starting a rebuild via `watch`, passing\n   the root directories of the packages that are being built. The\n   default is to just log the base names of the directories.\n\n * **`onRebuildEnd`**`?: fn(packages: readonly string[])`\\\n   Function to call when finishing a rebuild.\n\n\n## Community\n\nThis is open source software released under an\n[MIT license](https://code.haverbeke.berlin/marijn/buildtool/src/branch/main/LICENSE).\n\nDevelopment happens on\n[Forgejo](https://code.haverbeke.berlin/marijn/buildtool). Use the [bug\ntracker](https://code.haverbeke.berlin/marijn/buildtool/issues) to report\nproblems.\n\n","publish_time":1652789721754,"_cnpm_publish_time":1652789721754,"dist-tags":{"latest":"1.2.1"}}