{"name":"@marijn/buildtool","version":"0.1.0","author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@marijn/buildtool@0.1.0","maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"homepage":"https://github.com/marijnh/buildtool#readme","bugs":{"url":"https://github.com/marijnh/buildtool/issues"},"dist":{"shasum":"43fe59fa17f382989cbc2ee1bd6701fe72168abc","tarball":"http://registry-npm.ywwl.com/@marijn/buildtool/download/@marijn/buildtool-0.1.0.tgz","fileCount":7,"integrity":"sha512-zh0OZDnPoxVMDgG0oweKXPp5tdYKi+6VlJfgNVF7jJOmW7/0uOuJE63od2Wpuh2DIqFciJvzAv/5hlGo1up1zQ==","signatures":[{"sig":"MEUCIQDi+4rn/pN5PNZRViHhFM1xMrwtQ6r7lLP7766ugkq6QwIgOmyeAU2f65Lkec7bMoaRyCQ0Q+AHu1yh0lHn4xnMOnY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJig40iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5TBAAm1WtPZJNVZkXiFO/2rThgIs2H5GTehvh0+/FDhY19WONywhp\r\nYVBjENR5cWO+a1P14S6cHWXwMLTtfj/bh0Bj8KqGPC500sBzwV2Q9WuwtlkU\r\nXqTJ42J1hAvsJY/g2n8Uka77Akgr1zXmWb8WzRwgNXJ+lA2M4ySjoFw/XMec\r\nkTPJ2iqlYLWuh19jIAh2894ZuAZnE/SBfIVSy0ga6XtfZ9fWE9+9LPX7aBLx\r\nlNBGqbnilInpJvWYckNRxjrsevABXsKVNFrueDPLvy3rIQXjCZByWfsG1k/A\r\nzkdCC1fqEU/QN9snsX9UHnim5wKH3lz3O/kTsnz6AEp/vy5fdy8LInKVFUpF\r\nUVZUPZ3aKLY+I5Su80YRI+3oDyIatzNepumTsNa/5UNAwG75n73uokKPlqik\r\nfgmmZe05lsuUoYfa3cj/psUwCYeX86I6ndrjQc6v/t4yBRAmdx4KZOPb+VXs\r\n+d7msDHxEXn6jq/sDEve2RKud5Lc5FFEu3EBtjsxhnpcyqbOJDX5E2Ja1/oO\r\nB8ZLiYSH5znM7uragdmpRg9nInz6ozRbW/1QK2ngEYO6VgKoA1rNGlEG9fAI\r\noBgs+08n4Og8iDsG+uIHMGZPgpE0DJqKN8vQHo3r/dU4J7AGh1GbZWYtzSFm\r\nZP4OzSvykC1BMuJrhYVSeAdu2wzHOOQbnN4=\r\n=VEPr\r\n-----END PGP SIGNATURE-----\r\n","size":6583,"noattachment":false,"key":"/@marijn/buildtool/-/@marijn/buildtool-0.1.0.tgz"},"main":"./src/buildtool.js","gitHead":"f6d3baaa8209fe1eeb26e6b2299f3d787f98e25e","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":"^10.0.0","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.0_1652788513865_0.05604891501595599","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":1652788514009,"_cnpm_publish_time":1652788514009,"dist-tags":{"latest":"1.2.1"}}