{"name":"@marijn/buildtool","version":"0.1.2","author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@marijn/buildtool@0.1.2","maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"homepage":"https://github.com/marijnh/buildtool#readme","bugs":{"url":"https://github.com/marijnh/buildtool/issues"},"dist":{"shasum":"f0c10ea64acee9471972c29de459606a439871ce","tarball":"http://registry-npm.ywwl.com/@marijn/buildtool/download/@marijn/buildtool-0.1.2.tgz","fileCount":8,"integrity":"sha512-1XNEC3JrXHAGLLMC73LvrzIQvxFr+jJCwOtplZdqJ9mQultFWLj+24Xo6Bg7A0W3ckFPD9x8h09Upw2MyrJyJw==","signatures":[{"sig":"MEQCIDzOv+Afz6OLLCvYyF1Gbz1LOQS5OSKi58/3S2533qagAiBook6ppBwObwpDaTSJAkXo0M/Tso/jJ2n3iOjGSJogNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih4blACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJew//VFlkIKiDSIsuxn1PyDUl9aL1fNkfKIKredoCAKLkhHfCdnVa\r\nJ9SAKdKKNPhKR58STHQm82oZZIvjjWBrkWo3YFCzPtUpGWvLlQkRrTL2MDpn\r\nYdp6oyFJhefBcHqzvKhwAQJvilxC9+8o98ETYWba4Gqfz3+dRup4inUgzaNj\r\nNQBLN1LAkS/V7en2K4DXhXnFo8q1GFCDGOJl43q7tsHjwz0h+aZ7V5din+0b\r\nHYD4+UxqJbZFlEn6uXDXangkYIf8RTODSFAlJ2UMirxFXumuPfCn5Jl7IA+C\r\nZBwhgqTdr0m+LfTnkH9NWMrJz/Dev7fRZmIcPiAkQ0OZB0eQixSVG438+b48\r\n00ic8rYgKawmNbFsKtT2/5KszkUBaGe/5QtWy4f81pnLEsxZr4mcC9wc08Md\r\nIIuWor3kB+hiIER4Li+kekKZXmvqe3BR9iZpQvJbyLY7yMHJ1iOfv/zSU9dx\r\nxpGNaNyqtMpY3tuczdXKMQJJEDbmlyckQAIix3M/VM/RkVcSOgPwbaQgUrf8\r\nUnZzuW6uXsRDVrBnCBHKE6VErYin1PgrXNXP0s7G25h4xrqTwk1sbC8/t/lc\r\nNCjJYyY0PlNZmyTmS8V2woLgL134F9Mkwsn+4/imKqimblv9RWB6axKeDe+9\r\nDISzP01U4tx/4LPXzSfloTeK6L+AaLdDkGo=\r\n=wpn2\r\n-----END PGP SIGNATURE-----\r\n","size":8276,"noattachment":false,"key":"/@marijn/buildtool/-/@marijn/buildtool-0.1.2.tgz"},"main":"./src/buildtool.js","gitHead":"cbe1d4ee84b01376bf525da30beace58051bc3cb","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.2_1653049061475_0.16247416339018206","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":1653049061641,"_cnpm_publish_time":1653049061641,"dist-tags":{"latest":"1.2.1"}}