{"name":"@zeit/ncc","version":"0.1.1-webpack","dependencies":{"arg":"^2.0.0","@webassemblyjs/ast":"1.7.11","@webassemblyjs/helper-module-context":"1.7.11","@webassemblyjs/wasm-edit":"1.7.11","@webassemblyjs/wasm-parser":"1.7.11","acorn":"^5.6.2","acorn-dynamic-import":"^3.0.0","ajv":"^6.1.0","ajv-keywords":"^3.1.0","chrome-trace-event":"^1.0.0","enhanced-resolve":"^4.1.0","eslint-scope":"^4.0.0","json-parse-better-errors":"^1.0.2","loader-runner":"^2.3.0","loader-utils":"^1.1.0","memory-fs":"~0.4.1","micromatch":"^3.1.8","mkdirp":"~0.5.0","neo-async":"^2.5.0","node-libs-browser":"^2.0.0","schema-utils":"^0.4.4","tapable":"^1.1.0","uglifyjs-webpack-plugin":"^1.2.4","webpack-sources":"^1.3.0"},"license":"MIT","main":"index.js","bin":{"ncc":"./cli.js"},"scripts":{"test":"node test","prepublish":"npm test"},"devDependencies":{"@sentry/node":"^4.3.0","auth0":"^2.14.0","aws-sdk":"^2.356.0","axios":"^0.18.0","fontkit":"^1.7.7","request":"^2.88.0","the-answer":"^1.0.0","twilio":"^3.23.2"},"gitHead":"c609d115f86c6668f7476b06a46b202d166d4a53","description":"Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.","bundleDependencies":["@webassemblyjs/ast","@webassemblyjs/helper-module-context","@webassemblyjs/wasm-edit","@webassemblyjs/wasm-parser","acorn","acorn-dynamic-import","ajv","ajv-keywords","chrome-trace-event","enhanced-resolve","eslint-scope","json-parse-better-errors","loader-runner","loader-utils","memory-fs","micromatch","mkdirp","neo-async","node-libs-browser","schema-utils","tapable","uglifyjs-webpack-plugin","webpack-sources"],"_id":"@zeit/ncc@0.1.1-webpack","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"dist":{"integrity":"sha512-QpJw8oBNnb0t4lteNHjC2DpOzJ3h0SSk4C46TdtO8AU5MrESfsI5fiLOSqsYh0vqtrkoemOys0m1vWQH/YNDRg==","shasum":"3161be10a3e0065fae72993cd101eb7f20188acd","tarball":"http://registry-npm.ywwl.com/@zeit/ncc/download/@zeit/ncc-0.1.1-webpack.tgz","fileCount":2862,"unpackedSize":13554677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7ceECRA9TVsSAnZWagAAjo4QAIwffeZExaTdbveztC+/\nXRAihs7zRE7gW1sWykhHioBMb9cgaaj68mpqnB5sr2eE+haoWIN50OBYihTw\nZCh2B+RjfCI8Es7EzyxOG8+PBmTm73fA2HLQLA854DazMiD5hnrobHShryWO\n9i0fF52fvzIgY0UnkZKW9OZXCiPiOthJDES2CMVbv6T5plA20oaIZaKWj4Qp\ndvga7+A0Yfq6+nRBVTGrGpUJKKrjeiAdfLRd7xaiUq1B+osGsFW3Flp9NqV1\nSYeUnpdL9WSCfv0IiSWsf8YyYrJXGZYiuE8t+5gAJwmxddBYwwFGKRgQ6Nb9\nqIt1DUEHUMKa/Ked8hBRtlVT+sYamkVVRRY6n2Ucr6WT0zvgJiPAvnU0SGsD\nxcIl1q60tHGpi+WTYd+vKnB04KgBYyamQIDlc5tF4RgWO05AWljwZcSDxyOH\n8WeG44DrCMzMXmRo4hOoMLB1VyBccmcRMHP0qKRGEzGkA9mOExIi9m2b/1zp\nprJCtpTwzW7o48xjh0CmfEEA7p/bLzlWgDUP+jywhjCEc8kToErUka1zp60D\nlI84lDd4OzsKlLr40JLLgkNpGrQw91Rc5K80PKpXlbw+TL860uVi9pSfrrrQ\nHxrXa5U6O3GcAopFQmb4Zt4O+GreegP+85l+5Tq80oFxL4mZ/NdlH85aLMEf\nH6bw\r\n=KPY1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyjDACvZcLx7wG7wkbPYRyU0TfbR5vSYwurfxc8/ieQAiEAhirtDXrOplJ6mxbJHuAPPv/PliF6VJi4HYrXbjFJOAs="}],"size":3279317,"noattachment":false,"key":"/@zeit/ncc/-/@zeit/ncc-0.1.1-webpack.tgz"},"maintainers":[{"email":"arunoda.susiripala@gmail.com","name":"arunoda"},{"email":"thecodetheory@gmail.com","name":"codetheory"},{"email":"fivepointseven@icloud.com","name":"fivepointseven"},{"email":"guybedford@gmail.com","name":"guybedford"},{"email":"hharnisc@gmail.com","name":"hharnisc"},{"email":"hello@evilrabb.it","name":"iamevilrabbit"},{"email":"igor@klopov.com","name":"igorklopov"},{"email":"jamo@isotalo.fi","name":"jamo"},{"email":"javier.velasco86@gmail.com","name":"javivelasco"},{"email":"joecohenr@gmail.com","name":"joecohens"},{"email":"leo@zeit.co","name":"leo"},{"email":"me@matheus.top","name":"matheuss"},{"email":"naoyuki.kanezawa@gmail.com","name":"nkzawa"},{"email":"olli@zeit.co","name":"olliv"},{"email":"pranay.gp@gmail.com","name":"pranaygp"},{"email":"ds303077135@gmail.com","name":"quietshu"},{"email":"rauchg@gmail.com","name":"rauchg"},{"email":"tim@timneutkens.nl","name":"timneutkens"},{"email":"nathan@tootallnate.net","name":"tootallnate"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ncc_0.1.1-webpack_1542309763520_0.7652198844311175"},"_hasShrinkwrap":false,"readme":"# ncc\n\n[![CI Status](https://github.com/zeit/ncc/workflows/CI/badge.svg)](https://github.com/zeit/ncc/actions?workflow=CI)\n[![codecov](https://codecov.io/gh/zeit/ncc/branch/master/graph/badge.svg)](https://codecov.io/gh/zeit/ncc)\n\nSimple CLI for compiling a Node.js module into a single file,\ntogether with all its dependencies, gcc-style.\n\n## Motivation\n\n- Publish minimal packages to npm\n- Only ship relevant app code to serverless environments\n- Don't waste time configuring bundlers\n- Generally faster bootup time and less I/O overhead\n- Compiled language-like experience (e.g.: `go`)\n\n## Design goals\n\n- Zero configuration\n- TypeScript built-in\n- Only supports Node.js programs as input / output\n- Support all Node.js patterns and npm modules\n\n## Usage\n\n### Installation\n```bash\nnpm i -g @zeit/ncc\n```\n\n### Usage\n\n```bash\n$ ncc <cmd> <opts>\n```\nEg:\n```bash\n$ ncc build input.js -o dist\n```\n\nOutputs the Node.js compact build of `input.js` into `dist/index.js`.\n\n> Note: If the input file is using a `.cjs` extension, then so will the corresponding output file.\n> This is useful for packages that want to use `.js` files as modules in native Node.js using\n> a `\"type\": \"module\"` in the package.json file.\n\n#### Commands:\n```\n  build <input-file> [opts]\n  run <input-file> [opts]\n  cache clean|dir|size\n  help\n  version\n```\n\n#### Options:\n```\n  -o, --out [file]         Output directory for build (defaults to dist)\n  -m, --minify             Minify output\n  -C, --no-cache           Skip build cache population\n  -s, --source-map         Generate source map\n  --no-source-map-register Skip source-map-register source map support\n  -e, --external [mod]     Skip bundling 'mod'. Can be used many times\n  -q, --quiet              Disable build summaries / non-error outputs\n  -w, --watch              Start a watched build\n  --v8-cache               Emit a build using the v8 compile cache\n  --stats-out [file]       Emit webpack stats as json to the specified output file\n```\n\n### Execution Testing\n\nFor testing and debugging, a file can be built into a temporary directory and executed with full source maps support with the command:\n\n```bash\n$ ncc run input.js\n```\n\n### With TypeScript\n\nThe only requirement is to point `ncc` to `.ts` or `.tsx` files. A `tsconfig.json`\nfile is necessary. Most likely you want to indicate `es2015` support:\n\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"es2015\",\n    \"moduleResolution\": \"node\"\n  }\n}\n```\n\n### Package Support\n\nSome packages may need some extra options for ncc support in order to better work with the static analysis.\n\nSee [package-support.md](package-support.md) for some common packages and their usage with ncc.\n\n### Programmatically From Node.js\n\n```js\nrequire('@zeit/ncc')('/path/to/input', {\n  // provide a custom cache path or disable caching\n  cache: \"./custom/cache/path\" | false,\n  // externals to leave as requires of the build\n  externals: [\"externalpackage\"],\n  // directory outside of which never to emit assets\n  filterAssetBase: process.cwd(), // default\n  minify: false, // default\n  sourceMap: false, // default\n  sourceMapBasePrefix: '../', // default treats sources as output-relative\n  // when outputting a sourcemap, automatically include\n  // source-map-support in the output file (increases output by 32kB).\n  sourceMapRegister: true, // default\n  watch: false, // default\n  v8cache: false, // default\n  quiet: false, // default\n  debugLog: false // default\n}).then(({ code, map, assets }) => {\n  console.log(code);\n  // Assets is an object of asset file names to { source, permissions, symlinks }\n  // expected relative to the output code (if any)\n})\n```\n\nWhen `watch: true` is set, the build object is not a promise, but has the following signature:\n\n```js\n{\n  // handler re-run on each build completion\n  // watch errors are reported on \"err\"\n  handler (({ err, code, map, assets }) => { ... })\n  // handler re-run on each rebuild start\n  rebuild (() => {})\n  // close the watcher\n  void close ();\n}\n```\n\n## Caveats\n\n- Files / assets are relocated based on a [static evaluator](https://github.com/zeit/webpack-asset-relocator-loader#how-it-works). Dynamic non-statically analyzable asset loads may not work out correctly\n","publish_time":1542309763883,"_cnpm_publish_time":1542309763883,"dist-tags":{"beta":"0.19.0-beta.1","canary":"0.1.14","latest":"0.22.3"}}