{"_id":"rollup-plugin-output-manifest","_rev":"4-677467cc4e46c2aec1fade6a583f0dfc","name":"rollup-plugin-output-manifest","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"rollup-plugin-output-manifest","version":"1.0.0","description":"Rollup plugin for generating an chunk manifest","main":"dist/index.js","scripts":{"build":"tsc","test":"mocha"},"keywords":["rollup","output","manifest","json","asset"],"repository":{"type":"git","url":"git+https://github.com/shuizhongyueming/rollup-plugin-output-manifest.git"},"author":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"license":"MIT","devDependencies":{"@types/mocha":"^5.2.7","json-to-pretty-yaml":"^1.2.2","mocha":"^6.2.0","rimraf":"^2.6.3","rollup":"^1.17.0","ts-node":"^8.3.0","tslib":"^1.10.0","typescript":"^3.5.3","utility-types":"^3.7.0"},"dependencies":{},"gitHead":"7be82a0adb861f3b93a4b5459fbc9731f7adbe5f","bugs":{"url":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest/issues"},"homepage":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest#readme","_id":"rollup-plugin-output-manifest@1.0.0","_nodeVersion":"12.3.1","_npmVersion":"6.10.1","dist":{"integrity":"sha512-Pe/h0dbRIEbe+bGce/It3BSuP36MWoOdcTTsLmCKAxXnUH33b5TUY9EXFcUCGwQUMkF/3HM+B/gYAeFXy4+yzQ==","shasum":"f61cddf70cfca4d8ab47c1ea61eeb652225c10ee","tarball":"https://registry.npmjs.org/rollup-plugin-output-manifest/-/rollup-plugin-output-manifest-1.0.0.tgz","fileCount":9,"unpackedSize":18251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNUiaCRA9TVsSAnZWagAA5V8QAIbF5ek61xVA4s4h/9u3\n6hDaOJR6lBTYD7ply8NBXxlt+oLN1H/xhAH9NtiFGq+tmNlATwCQiCsZw5ue\nB/NKXWRLvZI+nDZtN4yDAuVhCqViR5v1Wvc6dxjLOMXnYwiCoT0qk2/td/RA\nlYdjz6wIX1BK2WOkz70tMbQJ51N8fWhSUiUui+ngdM5uV40kKq2bxoUxWzgg\n2NH3zLeM46z3j+4Ecmga746sfNt/ybDIgCtVLGmT1qljzsr6yyGIuxcYycz/\ncE+xlYM+Ipr3kO7uMzM8ht6EQl21ERYCq+Gv9mDnDbm8K2mmg/4BW2b+K9u3\nVs+pDJn8S9SEbmx4qKJWsdhosXgaUpbrggeT2mQVUItE3h+QH9lNdVdtrCu/\naAZY8O3rMQPMVKycaPPjmP+4H2wrnkrDlhmgidQgZGEXDyaMDgM8xYtxSglm\ny2TpV7ydii4dSQ6KikswNjCL30R9HUNkv9RJ/rLDHhRFnrpAWkxy+t4YAcya\nu/uAq2IvdPNaZT36bNGqqfJI5ILmzSul5odesl8NQotXBHRMl5FkoYABRAKZ\n1r+HrwRv64vvighMxTbOwJhATQWqeZTxV0lwRJc06M2B0PfAUCwfZ5HFJkdY\nDWOi+a5s+JGvenahyTpiNz0qn7AKS+Hu4/LIa8lKGDaP5Yjzfn5VpsbGjOzj\n+J3c\r\n=+7zb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGY7wpLlVuEVABj7wSirtdCV91cd+ASObUyMUWIQ7iyoAiEA6qX6MvGLMfo2aHDVW4VwBZqWbL/hgZ3cCx/ahTaJvxA="}]},"maintainers":[{"name":"happywang","email":"shuizhongyueming@gmail.com"}],"_npmUser":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-output-manifest_1.0.0_1563773081386_0.3425948356525865"},"_hasShrinkwrap":false},"1.0.1":{"name":"rollup-plugin-output-manifest","version":"1.0.1","description":"Rollup plugin for generating an chunk manifest","main":"dist/index.js","scripts":{"build":"tsc","test":"mocha"},"keywords":["rollup","output","manifest","json","asset"],"repository":{"type":"git","url":"git+https://github.com/shuizhongyueming/rollup-plugin-output-manifest.git"},"author":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"license":"MIT","devDependencies":{"@types/mocha":"^5.2.7","json-to-pretty-yaml":"^1.2.2","mocha":"^6.2.0","rimraf":"^2.6.3","rollup":"^1.17.0","ts-node":"^8.3.0","typescript":"^3.5.3","utility-types":"^3.7.0"},"dependencies":{"tslib":"^1.10.0"},"bugs":{"url":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest/issues"},"homepage":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest#readme","_id":"rollup-plugin-output-manifest@1.0.1","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-aBWQFEnSMkKkSOFz2cMefxPozO1Jpb1YMa4xx++KzAjVVL22Wcp3iYWwYFk+WipuDvSCvoKdcNkTO/l8d3/86A==","shasum":"ba4bbb66b5968e624c1d53147f87a2eab6cb811c","tarball":"https://registry.npmjs.org/rollup-plugin-output-manifest/-/rollup-plugin-output-manifest-1.0.1.tgz","fileCount":8,"unpackedSize":15611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9yjdCRA9TVsSAnZWagAACZMP/2vBKWkcOgZ5r3eJGG3v\nlfYaO1jJqex4Mw62rRfodSQEpFXLT9uKPksB6AAsCYiwjI/ORdFER6hSHnAy\niqD/Rp/KZY6aOK3nDzs94LwDL4TNUHKZ2kOv2SH/AMp8YPcIfEQ6x6aFTIcC\n9890CeB1HfhUShISUtuQyE6VG7/VlbtACe+6/hXLY4qWZa++miwTbxDdhsAg\nyzwv5hkQzb95vgbr6sdu+U2LtFt66DmxUUI8L9YOmgxnTv0rTi5SVlIm7Uzd\ntP5v78f9iaNW8fxFV7ae1WonQQacklfU3f7N99UKqZCZQ/ll/3BqAof1XF/h\nJv+v+GMmV5PImV493/+O46+NwOz8XSFsKxaOynvk/YYHZwzOHyBZCA9IUNMb\nLTG/4SeR8/RkTdIR73dAUmg/EpKkeSsL3gvzt9LyIlMxDTQrXeByNbzxvZ4y\nM4aB8k3U76ijbM9ktj4YE9yE45dkMzTnPH5KoCQfw0ejFjZoKJzqOjLv6hT2\nu1d7KkoqnG/PkCVQrjJokCkLf+yKr3Jl9hd5/hgxBTcc7Lch4aI+RMuVSJIr\nwZymzdG6p9BtZaDB8C4GnEwyPEIP8jqDbC2Enq6RfwXTcHT03m7Y0C5bWs4K\nksUbprsFH+0UPztihHCU32jMrjlBj+aB7S7C+YCfDEdUaG7RdVSf7GqA9dc1\n9tEP\r\n=WKTv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGqrkGS6MiZS0aeVZeloF1M5jEDlRqt2dCwAQ7AVes3DAiEArzZ7jtSFzNUROtzmul5LmSuS6XAZ1wIm30Bhqx5xIwU="}]},"maintainers":[{"name":"happywang","email":"shuizhongyueming@gmail.com"}],"_npmUser":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-output-manifest_1.0.1_1576478940945_0.40823005304089355"},"_hasShrinkwrap":false},"1.0.2":{"name":"rollup-plugin-output-manifest","version":"1.0.2","description":"Rollup plugin for generating an chunk manifest","main":"dist/index.js","scripts":{"build":"tsc","test":"mocha"},"keywords":["rollup","output","manifest","json","asset"],"repository":{"type":"git","url":"git+https://github.com/shuizhongyueming/rollup-plugin-output-manifest.git"},"author":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"license":"MIT","devDependencies":{"@types/mocha":"^5.2.7","json-to-pretty-yaml":"^1.2.2","mocha":"^6.2.0","rimraf":"^2.6.3","rollup":"^1.17.0","ts-node":"^8.3.0","typescript":"^3.5.3","utility-types":"^3.7.0"},"dependencies":{"tslib":"^1.10.0"},"bugs":{"url":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest/issues"},"homepage":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest#readme","_id":"rollup-plugin-output-manifest@1.0.2","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-vRZamZW60hJnnFFSF3ycFwPnsiGlTiUHg9dWfGFBXOA9tstKTyG7ZheD4pHA1NFgK/uHG099cmSzZ9LgG8lOiQ==","shasum":"fcaf19378212d1c5caa42974147f3319b2604aaa","tarball":"https://registry.npmjs.org/rollup-plugin-output-manifest/-/rollup-plugin-output-manifest-1.0.2.tgz","fileCount":9,"unpackedSize":18534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9yrHCRA9TVsSAnZWagAAUYEQAJWRqsuOfx931jgyc6sU\ntzIFPDWqsgo4Xgzd8Zvs47ihkM+DcW4vou5LCfSMAqfoXUn1XknjduxhxQZt\nj47hfl2HwVjvi9c+/oKahhRE5cuZZPhhYFAVTTk41/sWJWHThKuYvDEv0OKN\nHCT6QPKaS9QG6zuiacJ23XMEah1kNGyGlZHwOuDFIzd+J2pbUw9cNez1KQfo\nWPa6jpI2N6P2L10Syjfzu1z9ol+0bdvpGumvkkNjd/gcUV7gWaIlfdMG3Zpm\nEkYv1HNjwPELBzxckK7zY78bViczoaHx2FqLpMPxNXhhJikZ1cWW2sWIsh+2\nMA3rqNn1GrybfdxG1el+12IjMVSo+1AJ/NS0Rnio6gNNsiTxrS6WfDmWz0oi\ns7Z810SjEiiFa4yqoW8+y1Cp9DS6gKK532HJrLu8OTbXqruf6aBGqY85Y4c8\nPyIY0GKr8VqYNvDm+TfljD/IKhnVavCAYF4qks6olmw//h60og42A8L+OO+N\nOZYa+IHu5qV3t5huWRrd2+b6Dae8S0ZONwO4z7UZhN2gHod0YIJqylk7I6U/\nYezXaEtD42+ex1l1QVtxPTHmKxHVf+kUjvftwsgEK02P2KGkqjexp48nSF2/\njjUbVNjp7bQThpTAfwt38T7JsUi/PGtwQogufPB9Z/v47fXivqTMQK1UqnFl\nXYdR\r\n=RVwZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmLPRtf1w5Vb7iCONmhKh/D0A6bQOk9NEk344RTe8opAiEAjCFiBOtDfTH0i04H0zFEV6lqEy626QII18tM4KY5WQE="}]},"maintainers":[{"name":"happywang","email":"shuizhongyueming@gmail.com"}],"_npmUser":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-output-manifest_1.0.2_1576479430691_0.19834417828760298"},"_hasShrinkwrap":false},"2.0.0":{"name":"rollup-plugin-output-manifest","version":"2.0.0","description":"Rollup plugin for generating an chunk manifest","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"mocha"},"keywords":["rollup","output","manifest","json","asset"],"repository":{"type":"git","url":"git+https://github.com/shuizhongyueming/rollup-plugin-output-manifest.git"},"author":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"license":"MIT","devDependencies":{"@types/mocha":"^5.2.7","json-to-pretty-yaml":"^1.2.2","mocha":"^8.3.2","postcss":"^8.2.13","rimraf":"^2.6.3","rollup":"^2.46.0","rollup-plugin-postcss":"^4.0.0","ts-node":"^8.3.0","typescript":"^3.5.3","utility-types":"^3.7.0"},"dependencies":{"@types/node":"^13.9.1","tslib":"^1.10.0"},"bugs":{"url":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest/issues"},"homepage":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest#readme","_id":"rollup-plugin-output-manifest@2.0.0","_nodeVersion":"15.9.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-RJJ/MzM2Sj65o63qs1aIwD+AofAhdYi5Hx1Pk8/Fn6dWxbcSlficfJLNGeYJ14CPi7CHvEHwgjs23LiFS/x/Dw==","shasum":"e6152ddeccb8b8669328aec98e9fac93b86b4f7b","tarball":"https://registry.npmjs.org/rollup-plugin-output-manifest/-/rollup-plugin-output-manifest-2.0.0.tgz","fileCount":9,"unpackedSize":22382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiopTCRA9TVsSAnZWagAAM8kQAJ3JqBYjZl1t2HH78xjN\no6eNVsQZgFjmBimCYL8uvHIRQmpyVyl1xXRQiHxBiLe7ddogAsib7FXTaS0s\nnjlkwX49WUjTSKvC7F/13J4Ax168K44nElAsXB+2FcHCnrRJqjWW4nmtDjeM\nF6XVyLnB7QHCO90Flse64pFT02machZ1mwd/H9EgbHseuyZJHIAlwSKFJQS1\nJT2YmNH656+ShJpVz5y7T0UKHypCfaJGb/tdGb9k6aPfkjCEqkcmrHoPVbwj\n+41oEQOoB49e19D6eFIC7LDzyH5ZDgrD4uStHhf0IQwr07Lm+ZJ2bZ7pJBhn\nXljlQXZjDYKhMtU2AxGP00YaaxCs8RI9Bjszu56dRP088bdTovrczZY9r6VT\nhyGmFUEy/9hYvVrRzG4JO0zf+EHD8P9yIomOqqE+j9xo9dDwvUgqkNvlZEpl\nRwO9ndBdt7lCs77EZQux6KdPH2Cc+WOR3nD/k579q9WPVUCqnoIInakuq+4i\nYf1W91mebYTBtFtBrx4JFpM7mvlBmvd+gN7qrMLCZsjZE6KZfrye9SpfOBXJ\nDhp4OYhpNqd8y7MTZMG7xsnXcQ9aWTvAYHxbm0dofb6YqN05FIHRm6dadJ4h\nwCrw9wjyDQNcUjRAltO0jPDJiiEHro0ehB3MwGQtm58QfbZZCOSxzDBbfJYX\nPgJH\r\n=bHLA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7qdVMGPpOHk3J9IrDTFvUuOSGCS4+DEzRkzsE5NLgkwIhAOlOCRvotw6OOh30A5J55Ygl32lR2ybBuesyWfkx/PLq"}]},"_npmUser":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"directories":{},"maintainers":[{"name":"happywang","email":"shuizhongyueming@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-output-manifest_2.0.0_1619692114916_0.5192675243443801"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-22T05:24:41.385Z","1.0.0":"2019-07-22T05:24:41.501Z","modified":"2022-05-16T04:32:46.652Z","1.0.1":"2019-12-16T06:49:01.042Z","1.0.2":"2019-12-16T06:57:10.908Z","2.0.0":"2021-04-29T10:28:35.018Z"},"maintainers":[{"name":"happywang","email":"shuizhongyueming@gmail.com"}],"description":"Rollup plugin for generating an chunk manifest","homepage":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest#readme","keywords":["rollup","output","manifest","json","asset"],"repository":{"type":"git","url":"git+https://github.com/shuizhongyueming/rollup-plugin-output-manifest.git"},"author":{"name":"happywang","email":"shuizhongyueming@gmail.com"},"bugs":{"url":"https://github.com/shuizhongyueming/rollup-plugin-output-manifest/issues"},"license":"MIT","readme":"# Rollup Manifest Plugin\r\n\r\nRollup plugin for generating an chunk manifest. Inspired by [webpack-manifest-plugin](https://github.com/danethurber/webpack-manifest-plugin)\r\n\r\n## Install\r\n\r\n```shell\r\nnpm install --save-dev rollup-plugin-output-manifest\r\n```\r\n\r\n## Usage\r\n\r\nIn your `rollup.config.js`\r\n\r\n```javascript\r\nimport outputManifest from 'rollup-plugin-output-manifest';\r\n// or const outputManifest = require('rollup-plugin-output-manifest').default;\r\n\r\nexport default {\r\n  // ...\r\n  plugins: [\r\n    // ...\r\n    outputManifest(),\r\n  ],\r\n};\r\n```\r\n\r\nThis will generate a `manifest.json` file in your root output directory with a mapping of all source file names to their corresponding output file, for example:\r\n\r\n```json\r\n{\r\n  \"index\": \"index-6492d26f.js\"\r\n}\r\n```\r\n\r\n## API\r\n\r\n```javascript\r\nimport outputManifest from 'rollup-plugin-output-manifest';\r\n\r\nexport default {\r\n  // ...\r\n  plugins: [\r\n    // ...\r\n    outputManifest(options),\r\n  ],\r\n};\r\n```\r\n\r\nThe type `Bundle` is an union of [OutputChunk][1] and [OutputAsset][2]\r\n\r\n```typescript\r\ntype Bundle = OutputChunk | OutputAsset;\r\n```\r\n\r\n### `options.fileName`\r\n\r\nType: `String`\r\n\r\nDefault: `manifest.json`\r\n\r\nThe manifest filename in your output directory.\r\n\r\n### `options.nameSuffix`\r\n\r\nType: `String`\r\n\r\nDefault: `''`\r\n\r\nThe suffix for all keys in the manifest json object.\r\n\r\n### `options.nameWithExt`\r\n\r\nType: `Boolean`\r\n\r\nDefault: `true`,\r\n\r\nSet an ext for key which is same as the value in manifest json object. We add this option for support of assets which has different ext than the entry.\r\n\r\n### `options.isMerge`\r\n\r\nType: `Boolean`\r\n\r\nDefault: `false`\r\n\r\nMerge the existing key/value pair in the target manifest file or just override it.\r\n\r\n### `options.publicPath`\r\n\r\nType: `String`\r\n\r\nDefault: `outputOptions.dir || path.dirname(outputOptions.file)`\r\n\r\nA path prefix that will be added to values of the manifest.\r\n\r\n### `options.publicSuffix`\r\n\r\nType: `String`\r\n\r\nA suffix that will be added to values of the manifest. Useful for adding a query string, for example.\r\n\r\n### `options.basePath`\r\n\r\nType: `String`\r\n\r\nA path prefix for all keys. Useful for including your output path in the manifest.\r\n\r\n### `options.filter`\r\n\r\nType: `(bundle: Bundle) => boolean`\r\n\r\nFilter out chunks.\r\n\r\n### `options.map`\r\n\r\nType: `(bundle: Bundle) => Bundle`\r\n\r\nModify chunk details before the manifest is created.\r\n\r\n### `options.sort`\r\n\r\nType: `(bundleA: Bundle, bundleB: Bundle) => number`\r\n\r\nSort chunk before they are passed to `generate`.\r\n\r\n### `options.keyValueDecorator`\r\n\r\nType: `(k: string, v: string, opt: OutputManifestParam) => {[k: string]: string}`\r\n\r\nYou can set your own rule to set key/value.\r\n\r\n### `options.generate`\r\n\r\nType: `(keyValueDecorator: KeyValueDecorator, seed: object, opt: OutputManifestParam) => (chunks: Bundle[]) => object`\r\n\r\nDefault:\r\n\r\n```typescript\r\n(keyValueDecorator: KeyValueDecorator, seed: object, opt: OutputManifestParam) => (chunks) =>\r\n  chunks.reduce(\r\n    (manifest, { name, fileName }) => ({\r\n      ...manifest,\r\n      ...keyValueDecorator(name, fileName, opt),\r\n    }),\r\n    seed\r\n  );\r\n```\r\n\r\nCreate the manifest. It can return anything as long as it's serialisable by `JSON.stringify`.\r\n\r\n### `options.serialize`\r\n\r\nType: `(manifest: object) => string`\r\n\r\nDefault: `(manifest) => JSON.stringify(manifest, null, 2)`\r\n\r\nOutput manifest file in different format then json (e.g. yaml).\r\n\r\n## Contribution\r\n\r\n```shell\r\n$ git clone https://github.com/shuizhongyueming/rollup-plugin-output-manifest.git\r\n$ cd packages/main\r\n$ yarn install\r\n$ yarn build # for build\r\n$ yarn test # for test\r\n```\r\n\r\n## License\r\n\r\nMIT\r\n\r\n[1]: https://github.com/rollup/rollup/blob/e66d7be5e736e7b47c6e8ac5cb7c6365903baeff/src/rollup/types.d.ts#L497\r\n[2]: https://github.com/rollup/rollup/blob/e66d7be5e736e7b47c6e8ac5cb7c6365903baeff/src/rollup/types.d.ts#L469\r\n","readmeFilename":"README.md"}