{"_id":"@bjoluc/ncc-import-meta-fix","_rev":"1-1b991cb95187385397f4efc92b299b14","name":"@bjoluc/ncc-import-meta-fix","dist-tags":{"latest":"0.33.4"},"versions":{"0.33.4":{"name":"@bjoluc/ncc-import-meta-fix","description":"Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.","version":"0.33.4","repository":{"type":"git","url":"git+https://github.com/vercel/ncc.git"},"license":"MIT","main":"./dist/ncc/index.js","bin":{"ncc":"dist/ncc/cli.js"},"scripts":{"build":"node scripts/build.js","build-test-binary":"cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node","codecov":"codecov","test":"node --expose-gc --max_old_space_size=4096 node_modules/.bin/jest","test-coverage":"node --expose-gc --max_old_space_size=4096 node_modules/.bin/jest --coverage --globals \"{\\\"coverage\\\":true}\" && codecov","prepublishOnly":"node scripts/build.js --no-cache"},"devDependencies":{"@azure/cosmos":"^3.12.3","@bugsnag/js":"^7.11.0","@ffmpeg-installer/ffmpeg":"^1.0.17","@google-cloud/bigquery":"^5.7.0","@google-cloud/firestore":"^4.14.0","@sentry/node":"^6.10.0","@slack/web-api":"^6.3.0","@tensorflow/tfjs-node":"^3.12.0","@vercel/webpack-asset-relocator-loader":"1.7.0","analytics-node":"^6.0.0","apollo-server-express":"^2.2.2","arg":"^5.0.0","auth0":"^2.14.0","aws-sdk":"^2.356.0","axios":"^0.21.1","azure-storage":"^2.10.2","browserify-middleware":"^8.1.1","bytes":"^3.0.0","canvas":"^2.2.0","chromeless":"^1.5.2","codecov":"^3.8.3","consolidate":"^0.16.0","copy":"^0.3.2","core-js":"^2.5.7","cowsay":"^1.3.1","esm":"^3.2.22","express":"^4.16.4","fetch-h2":"^3.0.0","firebase":"^6.1.1","firebase-admin":"^9.11.0","fluent-ffmpeg":"^2.1.2","fontkit":"^1.7.7","get-folder-size":"^2.0.0","glob":"^7.1.3","got":"^11.8.2","graceful-fs":"^4.1.15","graphql":"^15.5.1","hot-shots":"^8.5.0","ioredis":"^4.2.0","isomorphic-unfetch":"^3.0.0","jest":"^27.4.5","jimp":"^0.16.1","jugglingdb":"2.0.1","koa":"^2.6.2","leveldown":"^6.0.0","license-webpack-plugin":"^4.0.2","lighthouse":"^8.1.0","loopback":"^3.24.0","mailgun":"^0.5.0","mariadb":"^2.0.1-beta","memcached":"^2.2.2","mkdirp":"^1.0.4","mongoose":"^5.3.12","mysql":"^2.16.0","node-gyp":"^8.4.1","npm":"^6.13.4","oracledb":"^4.2.0","passport":"^0.5.2","passport-google-oauth":"^2.0.0","path-platform":"^0.11.15","pdfkit":"^0.12.1","pg":"^8.7.1","pug":"^3.0.1","react":"^17.0.2","react-dom":"^17.0.2","redis":"^3.1.1","request":"^2.88.0","rxjs":"^7.3.0","saslprep":"^1.0.2","sequelize":"^6.6.5","sharp":"^0.28.3","shebang-loader":"^0.0.1","socket.io":"^4.1.3","source-map-support":"^0.5.9","stripe":"^8.167.0","swig":"^1.4.2","terser":"^5.6.1","the-answer":"^1.0.0","tiny-json-http":"^7.0.2","ts-loader":"^8.3.0","tsconfig-paths":"^3.7.0","tsconfig-paths-webpack-plugin":"^3.2.0","twilio":"^3.23.2","typescript":"^4.4.2","vm2":"^3.6.6","vue":"^2.5.17","vue-server-renderer":"^2.5.17","web-vitals":"^0.2.4","webpack":"5.70.0","when":"^3.7.8"},"resolutions":{"grpc":"1.24.11"},"gitHead":"f19ab9c21d83a7ec1f1a65e36a4357bfd26b0553","bugs":{"url":"https://github.com/vercel/ncc/issues"},"homepage":"https://github.com/vercel/ncc#readme","_id":"@bjoluc/ncc-import-meta-fix@0.33.4","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-KJ148Mk9ehBHciZnI3Il/DYXWBCtHiut+S0Gav667Vra4DvZreINTpGCKWqR3afEub+jZ8wtwvVfAl9DHTA6Kw==","shasum":"2c29c01c982430933cad81fed6cb2bc9677dfac4","tarball":"https://registry.npmjs.org/@bjoluc/ncc-import-meta-fix/-/ncc-import-meta-fix-0.33.4.tgz","fileCount":107,"unpackedSize":15785252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPuhKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsnBAAojA+3XSXDTQbbTlDCNhy5+oWQH1dATwg3/uO8LQxYN02mvL/\r\nRS0jh5yLeIrfssqqBQR6z0eb3x+wppkgrog9ycHcyAOXy1lipZW3/dLScVZG\r\nJWsLAv7kraWMdsI3GYOMUugLAL9VIPzimyiLZXFcIPIC3I+nvTbGPYFFqS3K\r\nBk3ofcBOq9juRE6UfLr1QEmdakPOxyOMdgIb57ZuNARyzhfcJ8EkcuFbrUZo\r\nkC6En2iETWTfxy7FrrYc+6X/wdOtx8X2whCSLt/FLADw5+SnC3KCDh02XQYS\r\nC7/z+61kg2u4HAjPkSdcqGhhLrKdPvdSmN42EGnVbEHzTSAOtHqW0bpKUN+f\r\new4xy+qv0HDQePQ2vr31Mgxbyuzu5mF1YaU96U9LLB5tRorTf5DOKyx2zxyt\r\njys7LWPR8P3/RTwVzQN39trgv2h2hGJ9mHL5iNqVUB4eKgthaGnRk+YMAASV\r\nYT/gBJty7etw88cLr4kBzyGPZJUlmJvfxJCLnFWFd3zPcF3tj1L3bpcvs3Ze\r\nc1rw15YxQc59UbTMqcaF8ZUZ6JsOAm6egEWXvOlgUDbJnVsJlTxYAHeykfnN\r\nNNZ84qjOeauDbVlgDpUb3IQXpOTl3zwSonAEyZaXIUGEM6N2T9eZv6IEH9yx\r\nlvwPgOoGo8THFl6zsD97Zjp+g9F23jSV1R4=\r\n=SL0B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTMj4Bwb4A/uWx/aJ0SVhzrdmXEzDlAIR9vDKB3j5v4wIgWRCsPihILo6dJhwFYXXGjItpr7+nzI7iow/IwjJcqA4="}]},"_npmUser":{"name":"bjoluc","email":"mail@bjoluc.de"},"directories":{},"maintainers":[{"name":"bjoluc","email":"mail@bjoluc.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ncc-import-meta-fix_0.33.4_1648289866005_0.15828748231548584"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-26T10:17:45.947Z","0.33.4":"2022-03-26T10:17:46.226Z","modified":"2022-04-04T19:18:32.932Z"},"maintainers":[{"name":"bjoluc","email":"mail@bjoluc.de"}],"description":"Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.","homepage":"https://github.com/vercel/ncc#readme","repository":{"type":"git","url":"git+https://github.com/vercel/ncc.git"},"bugs":{"url":"https://github.com/vercel/ncc/issues"},"license":"MIT","readme":"# ncc\n\n[![CI Status](https://github.com/vercel/ncc/workflows/CI/badge.svg)](https://github.com/vercel/ncc/actions?workflow=CI)\n[![codecov](https://codecov.io/gh/vercel/ncc/branch/main/graph/badge.svg)](https://codecov.io/gh/vercel/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 @vercel/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\nIf building an `.mjs` or `.js` module inside a `\"type\": \"module\"` [package boundary](https://nodejs.org/dist/latest-v16.x/docs/api/packages.html#packages_package_json_and_file_extensions), an ES module output will be created automatically.\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 [dir]          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  -a, --asset-builds       Build nested JS assets recursively, useful for\n                           when code is loaded as an asset eg for workers.\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  -t, --transpile-only     Use transpileOnly option with the ts-loader\n  --v8-cache               Emit a build using the v8 compile cache\n  --license [file]         Adds a file containing licensing information to the output\n  --stats-out [file]       Emit webpack stats as json to the specified output file\n  --target [es]            ECMAScript target to use for output (default: es2015)\n                           Learn more: https://webpack.js.org/configuration/target\n  -d, --debug              Show debug logs\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\nIf typescript is found in `devDependencies`, that version will be used.\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('@vercel/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  assetBuilds: 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  license: '', // default does not generate a license file\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","readmeFilename":"readme.md"}