{"_id":"rollup-plugin-mv","_rev":"2-f3e4b4448ccda112ae273a51647bc181","name":"rollup-plugin-mv","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"rollup-plugin-mv","version":"0.0.1","description":"A Rollup plugin to move around generated files and directories","main":"dist/index.js","module":"dist/index.es.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Lazyuki/rollup-plugin-mv.git"},"keywords":["rollup","plugin","rollup-plugin","mv","move"],"author":{"name":"Lazyuki"},"license":"MIT","bugs":{"url":"https://github.com/Lazyuki/rollup-plugin-mv/issues"},"homepage":"https://github.com/Lazyuki/rollup-plugin-mv#readme","dependencies":{"fs-extra":"^9.0.1"},"devDependencies":{"@types/fs-extra":"^9.0.1","@types/jest":"^26.0.14","jest":"^26.4.2","husky":"^4.3.0","prettier":"^2.1.2","pretty-quick":"^3.0.2","rimraf":"^3.0.2","rollup":"^2.28.2","rollup-plugin-typescript2":"^0.27.3","ts-jest":"^26.4.0","tslib":"^2.0.1","typescript":"^3.9.7"},"scripts":{"test":"jest","prebuild":"rimraf dist","build":"rollup -c","prepack":"npm run build"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"19a67f7c00a5c0443c835df5f6bb5fcee268ddce","_id":"rollup-plugin-mv@0.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-g3YeG7mum3Qqyk7Opik5w0viah/1lpU63+UsD0KK/BqaqZFDGX122QUo0QG9qR1HopktiL1AnDd6+ZfFmvqqOg==","shasum":"faf59377e322353bcfb37b36079107c2b4f131c3","tarball":"https://registry.npmjs.org/rollup-plugin-mv/-/rollup-plugin-mv-0.0.1.tgz","fileCount":6,"unpackedSize":5696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcr5rCRA9TVsSAnZWagAARp8P/19hHcngOOWubJ6++Tcc\nH0rvNsIf7bW6oXwLUXNAiUc0nB9GCzzdexL+GCyAJjV5IBNMBffGOIqnj1RW\nZbP3WQsxCOqOz1RdhDbW13/nEYu071xZlTwL4aztL6x+oHb5fqOJ1SxtTqHo\nF4vhdr3upjj7aOle5TV1X+jM7JyPeSgGGnP2g5/Lnn5mcF+SMBDHSVCPZO6m\n3K67otXmjQ9WOeD6TOacpYvcb2hIqOkNRXeyF/WESOGBOROUJ6eKACqm/yU6\nBOuPuBZ5d6KilevLXr0vnqaWFj6ogOC8kdYtUZu0Mur8eXQFgQBuodR5aRBP\ng8r6QiEJg7LkiM0Pq+V7W7HUtksHCnybfAzMAZKZT0/bo27PAt7LZVN1UpWN\nPFEjiefdbt4FRcKwEt6hsMELQj5T2AlRq1ZU106yg6TE4k+6pGNSvwFDWCMC\nCKxTsN/rX0Kys0poroQkmkxJTWr6Y0hKCirqV8SswqzSgvhRUv+IqLNVK6zi\nj2htuc4bMnlExDsiomYnJeflrkk2eXZ1UjrMukIrDrgAK2Dr6ITiulNQnAJu\nCs++yoD2O1zb51b+7UGSHQ2/te6g6AO7SFUjZcPc44MnekMLzGPoOz6omWBh\nXLd/kXSoOke+vFvZR2rE0J0UaZrCR3O4d4DwUYfBwwe02VeG+k7gl3pdceR4\nj7cS\r\n=yquZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLQYdlJZlquGemntpO3Vf9ScFqpK4DnzZAnDkgNI4v6AiBE+Ks7w9augu2ISSbeSd173UtY8bMooCSlW+PWluw3NA=="}]},"maintainers":[{"name":"lazyuki","email":"layzuki@gmail.com"}],"_npmUser":{"name":"lazyuki","email":"layzuki@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-mv_0.0.1_1601355371009_0.3118069680161186"},"_hasShrinkwrap":false},"0.0.2":{"name":"rollup-plugin-mv","version":"0.0.2","description":"A Rollup plugin to move around generated files and directories","main":"dist/index.js","module":"dist/index.es.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Lazyuki/rollup-plugin-mv.git"},"keywords":["rollup","plugin","rollup-plugin","mv","move"],"author":{"name":"Lazyuki"},"license":"MIT","bugs":{"url":"https://github.com/Lazyuki/rollup-plugin-mv/issues"},"homepage":"https://github.com/Lazyuki/rollup-plugin-mv#readme","dependencies":{"fs-extra":"^9.0.1"},"devDependencies":{"@types/fs-extra":"^9.0.1","@types/jest":"^26.0.14","jest":"^26.4.2","husky":"^4.3.0","prettier":"^2.1.2","pretty-quick":"^3.0.2","rimraf":"^3.0.2","rollup":"^2.28.2","rollup-plugin-typescript2":"^0.27.3","ts-jest":"^26.4.0","tslib":"^2.0.1","typescript":"^3.9.7"},"scripts":{"test":"jest","prebuild":"rimraf dist","build":"rollup -c","prepack":"npm run build"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"75e945a761b22facd1e930344290099e139820c5","_id":"rollup-plugin-mv@0.0.2","_nodeVersion":"17.1.0","_npmVersion":"8.1.2","dist":{"integrity":"sha512-QareI4ipd41g5g0kifhdDyxlaA2c2r9dbAKWzlaaDR0cL+L4ZBnLJFxoHD4pl6weYxIm/UBsKGTL0cJKIfBPlQ==","shasum":"58b8dcc23b997bc08bf4d2a791e173e35f41f617","tarball":"https://registry.npmjs.org/rollup-plugin-mv/-/rollup-plugin-mv-0.0.2.tgz","fileCount":6,"unpackedSize":5696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh31XrCRA9TVsSAnZWagAA7G4QAKJPBCF7EGO9JFpMEYZ+\nqfSDFF2nRjiSAqWXkZqB9/zVcNVBRPBAVDIctEab81+fsohHmjYAVMptkeHv\nucU4foR8OIfA39xn/0zcKJvVin0V6CH37rRzFYN+mN6pBtSFDSoEvcylYZyI\nWdGwcJvW3f2P/ZhijWKjdiFjkWpklFQh5w9QroSbAt7txwblFLdQaKy9e8fp\nB1tNGcnn4qnlUwjSI8ZVckSiCqnJQN5+rACp4L61m9HsTTnx+6ePoDN+ErzF\n1kCJ4b9ERj72B1vowy1zLKOoD4bd/RSvKaTla1b3OGphIXSvFhjgm5QDrNmE\noq1o2FVZiYMRSVHJLUGdnZn0xK9sjzF8AcpwbbDa57QIg3grJHmrQ+llmNtc\nv1W5zij5wuwUu/6WUNTxVdnumlYn8VTCpgaQ+5WlVzcQBICKfHK8L3FV1WEB\nQACosj5LrXpkLL6XXqAqzIfqjY9Cy2TeyOD3Vr3hshGVakOl8ml3K9ons29x\nWRLqjidV4OZW8A53VRyeNtPftCYCzURuJum4T08ovV2YWJYoDo95RPfIDy35\nXHol1gWBoRlG9fQ89nRnncwCEZBuoktoaWl2DZnbmOJHDbGje2M2cLVKbUzG\neW1ao5z1EXqV/aoqhptqsFZys6GZcjHJ7tnOkdAcs89hWzBf9JFgOPNfDi6t\nP/TJ\r\n=rVNd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGsYd6/RkgyrZFmfEAgxVaSyg1UFcTh3FE51KLHJG3IMAiAVaMu6F/FO1MSAWqouPmE+d6cHXaGLb5Zq6v6ojhE2qw=="}]},"_npmUser":{"name":"lazyuki","email":"layzuki@gmail.com"},"directories":{},"maintainers":[{"name":"lazyuki","email":"layzuki@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-mv_0.0.2_1642026475479_0.8784509923879396"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-29T04:56:11.009Z","0.0.1":"2020-09-29T04:56:11.215Z","modified":"2022-05-16T04:30:58.808Z","0.0.2":"2022-01-12T22:27:55.701Z"},"maintainers":[{"name":"lazyuki","email":"layzuki@gmail.com"}],"description":"A Rollup plugin to move around generated files and directories","homepage":"https://github.com/Lazyuki/rollup-plugin-mv#readme","keywords":["rollup","plugin","rollup-plugin","mv","move"],"repository":{"type":"git","url":"git+https://github.com/Lazyuki/rollup-plugin-mv.git"},"author":{"name":"Lazyuki"},"bugs":{"url":"https://github.com/Lazyuki/rollup-plugin-mv/issues"},"license":"MIT","readme":"# rollup-plugin-mv\n\n🍣 A Rollup plugin to move around generated files and directories\n\n## Requirements\n\nThis plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup\n\n## Install\n\nUsing npm:\n\n```bash\nnpm install rollup-plugin-mv --save-dev\n```\n\n## Usage\n\nCreate a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files) and import the plugin:\n\n```js\nimport mv from \"rollup-plugin-mv\";\n\nexport default {\n  input: \"src/index.js\",\n  output: {\n    dir: \"output\",\n    format: \"cjs\",\n  },\n  plugins: [\n    mv(\n      [\n        { src: \"dist/file\", dest: \"dist/assets/file\" },\n        {\n          src: \"dist/folder\",\n          dest: \"dist/assets/dir\",\n          overwrite: true,\n        },\n      ],\n      {\n        overwrite: false,\n      }\n    ),\n  ],\n};\n```\n\nThe first argument accepts an object or an array of objects with the following shape:\n\n```ts\n{\n  /**\n   * Source file or directory\n   */\n  src: string;\n  /**\n   * Destination file or directory\n   */\n  dest: string;\n  /**\n   * Overwrite existing file or directory.\n   */\n  overwrite?: boolean;\n}\n```\n\n## Options\n\n### `overwrite`\n\nType: `boolean`<br />\nDefault: `false`\n\nOverwrite existing file or directory.\n\n### `once`\n\nType: `boolean`<br />\nDefault: `false`\n\nExecutes the move command only once even if there are multiple outputs.\n","readmeFilename":"README.md"}