{"_id":"@binary-butterfly/rollup-plugin-version-file","_rev":"2-1bcc9881eb99ab286f14952b532676d9","name":"@binary-butterfly/rollup-plugin-version-file","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"@binary-butterfly/rollup-plugin-version-file","version":"0.0.1","description":"Automatically write the current version into a static file","license":"MIT","type":"module","bugs":{"url":"https://github.com/binary-butterfly/rollup-plugin-version-file/issues"},"repository":{"type":"git","url":"git+https://github.com/binary-butterfly/rollup-plugin-version-file.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"@binary-butterfly/eslint-plugin-no-new-comparisons":"^1.0.0","@types/node":"^20.11.24","@typescript-eslint/parser":"^7.1.0","@typescript-eslint/typescript-estree":"^7.1.0","@vitest/coverage-v8":"^1.3.1","eslint":"^8.57.0","eslint-plugin-testing-library":"^6.2.0","typescript":"^5.3.3","vite":"^5.1.4","vite-plugin-dts":"^3.7.3","vitest":"^1.3.1"},"scripts":{"typecheck":"tsc","test":"vitest --run","coverage":"vitest --run --coverage","build":"NODE_ENV=production vite build --ssr","prepublishOnly":"npm run build","lint":"eslint src/index.ts"},"exports":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/src/index.d.ts"},"keywords":["vite","rollup"],"_id":"@binary-butterfly/rollup-plugin-version-file@0.0.1","gitHead":"01662f3ae43adb48314d9111112faf76f1c5205c","homepage":"https://github.com/binary-butterfly/rollup-plugin-version-file#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-zCWmR342Ol9orkcsIpNvFD976n+1I7oKdN9aXbOlTd6TOLN+HOekCYx6eF+FGPZr9JRvRMIlR7FuMCB2JHejHw==","shasum":"369045aae4ecdf92551109bb0ebfb62155f0f691","tarball":"https://registry.npmjs.org/@binary-butterfly/rollup-plugin-version-file/-/rollup-plugin-version-file-0.0.1.tgz","fileCount":8,"unpackedSize":10754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDy+Xn28k/4UYI4/msidfBCV1nzifg9TDHZ6/1efWXEcAiEAxJYPAg6ew8mb35rfnfFC35lycmtEEG7YahLNmVqkMHA="}]},"_npmUser":{"name":"dysphoricunicorn","email":"npm@dysphoric.dev"},"directories":{},"maintainers":[{"name":"grufty","email":"npm@alinas-chaos.de"},{"name":"dysphoricunicorn","email":"npm@dysphoric.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-version-file_0.0.1_1709548101000_0.3678676995164174"},"_hasShrinkwrap":false},"1.0.0":{"name":"@binary-butterfly/rollup-plugin-version-file","version":"1.0.0","description":"Automatically write the current version into a static file","license":"MIT","type":"module","bugs":{"url":"https://github.com/binary-butterfly/rollup-plugin-version-file/issues"},"repository":{"type":"git","url":"git+https://github.com/binary-butterfly/rollup-plugin-version-file.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"@binary-butterfly/eslint-plugin-no-new-comparisons":"^1.0.0","@types/node":"^20.11.24","@typescript-eslint/parser":"^7.1.0","@typescript-eslint/typescript-estree":"^7.1.0","@vitest/coverage-v8":"^1.3.1","eslint":"^8.57.0","eslint-plugin-testing-library":"^6.2.0","typescript":"^5.3.3","vite":"^5.1.4","vite-plugin-dts":"^3.7.3","vitest":"^1.3.1"},"scripts":{"typecheck":"tsc","test":"vitest --run","coverage":"vitest --run --coverage","build":"NODE_ENV=production vite build --ssr","prepublishOnly":"npm run build","lint":"eslint src/index.ts"},"exports":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/src/index.d.ts"},"keywords":["vite","rollup"],"_id":"@binary-butterfly/rollup-plugin-version-file@1.0.0","gitHead":"5c4eedcb3a14af1b67d230c34f61e8560c9c58db","homepage":"https://github.com/binary-butterfly/rollup-plugin-version-file#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-NfAJObHFBL+h4fkNvvi6gS7lt3Nn4940V7EQsJjuIU+KwhSzNLkWPTGbRrMET2R3mjKDLa8wrcYr6JgPFj8CEg==","shasum":"933f60cff5750b659ff475663cfbab395bcb5375","tarball":"https://registry.npmjs.org/@binary-butterfly/rollup-plugin-version-file/-/rollup-plugin-version-file-1.0.0.tgz","fileCount":8,"unpackedSize":10966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtU6+yaKs/a6pG7VpRAYPvW1JbezhMAOw1bhm1qgt11AiBbYc97ZmuhZAWvlIc9ZF6UlkyaolmwBGuUoLEBJWAovQ=="}]},"_npmUser":{"name":"dysphoricunicorn","email":"npm@dysphoric.dev"},"directories":{},"maintainers":[{"name":"grufty","email":"npm@alinas-chaos.de"},{"name":"dysphoricunicorn","email":"npm@dysphoric.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-version-file_1.0.0_1709551698095_0.6252803275318102"},"_hasShrinkwrap":false},"1.0.1":{"name":"@binary-butterfly/rollup-plugin-version-file","version":"1.0.1","description":"Automatically write the current version into a static file","license":"MIT","type":"module","bugs":{"url":"https://github.com/binary-butterfly/rollup-plugin-version-file/issues"},"repository":{"type":"git","url":"git+https://github.com/binary-butterfly/rollup-plugin-version-file.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"@binary-butterfly/eslint-plugin-no-new-comparisons":"^1.0.0","@types/node":"^20.11.24","@typescript-eslint/parser":"^7.1.0","@typescript-eslint/typescript-estree":"^7.1.0","@vitest/coverage-v8":"^1.3.1","eslint":"^8.57.0","eslint-plugin-testing-library":"^6.2.0","typescript":"^5.3.3","vite":"^5.1.4","vite-plugin-dts":"^3.7.3","vitest":"^1.3.1"},"scripts":{"typecheck":"tsc","test":"vitest --run","coverage":"vitest --run --coverage","build":"NODE_ENV=production vite build --ssr","prepublishOnly":"npm run build","lint":"eslint src/index.ts"},"exports":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/src/index.d.ts"},"types":"./dist/src/index.d.ts","keywords":["vite","rollup"],"_id":"@binary-butterfly/rollup-plugin-version-file@1.0.1","gitHead":"cc0495d34845888fe2ee92c3a07a64df109d7215","homepage":"https://github.com/binary-butterfly/rollup-plugin-version-file#readme","_nodeVersion":"20.12.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-m988eLSQu/ucxrZtlYZDTOgI66mJqDby+UF+lQTYYAsh9WQGNx4ausk5TFd8gW3Y0idWRB4ash+Hh8KyPXOCnw==","shasum":"5396b00fbb186558803cc886a21a0710e5dbad32","tarball":"https://registry.npmjs.org/@binary-butterfly/rollup-plugin-version-file/-/rollup-plugin-version-file-1.0.1.tgz","fileCount":8,"unpackedSize":11002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDY0XQ7gZHTxyHxQ1Ou6Jiz/KRCIdF2kyuTHx8HbCdvQIgPrL0a4+VtSJI2jvTCO78ONFH6DfSkneV/BSWYSrsWtc="}]},"_npmUser":{"name":"dysphoricunicorn","email":"npm@dysphoric.dev"},"directories":{},"maintainers":[{"name":"grufty","email":"npm@alinas-chaos.de"},{"name":"dysphoricunicorn","email":"npm@dysphoric.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-version-file_1.0.1_1712062052178_0.19326201135814203"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-04T10:28:20.870Z","0.0.1":"2024-03-04T10:28:21.181Z","modified":"2024-04-02T12:47:32.543Z","1.0.0":"2024-03-04T11:28:18.243Z","1.0.1":"2024-04-02T12:47:32.327Z"},"maintainers":[{"name":"grufty","email":"npm@alinas-chaos.de"},{"name":"dysphoricunicorn","email":"npm@dysphoric.dev"}],"description":"Automatically write the current version into a static file","homepage":"https://github.com/binary-butterfly/rollup-plugin-version-file#readme","keywords":["vite","rollup"],"repository":{"type":"git","url":"git+https://github.com/binary-butterfly/rollup-plugin-version-file.git"},"bugs":{"url":"https://github.com/binary-butterfly/rollup-plugin-version-file/issues"},"license":"MIT","readme":"# rollup plugin version file\n\n[![Coverage Status](https://coveralls.io/repos/github/binary-butterfly/rollup-plugin-version-file/badge.svg)](https://coveralls.io/github/binary-butterfly/rollup-plugin-version-file)\n\nThis is a very small rollup plugin to save the current version from your package.json to a static file during the build\nprocess.\n\n## Usage\n\nFirst install the plugin `npm i --save-dev @binary-butterfly/rollup-plugin-version-file`.  \nThen, in your rollup config add it to the plugins array:\n\n```js\nimport versionFile from '@binary-butterfly/rollup-plugin-version-file';\n\nexport default {\n    // ... other config\n    plugins: [\n        // ... other plugins\n        versionFile({\n            'outputPath': './public/version',\n            'packageFilePath': './package.json',\n            'log': true,\n        })\n    ]\n    // ... other config\n}\n```\n\nThe config parameters given in that example are the defaults, so if you want to use these settings, you may forego\nproviding a value for them.\n\n## Config parameters\n\n- `outputPath`: Where to store the version file, relative to your project root directory\n- `packageFilePath`: Where to find your `package.json` file, relative to your project root directory\n- `log`: If you want the plugin to log what it wrote once it is done\n\n## Vite\n\nVite uses rollup internally for production builds.\nTo use this plugin within vite, all you have to do is add the above configuration within your vite\nconfig's `build.rollupOptions`.\n","readmeFilename":"README.md"}