{"library":"rollup-plugin-build-git-version","title":"rollup-plugin-build-git-version","description":"A Rollup plugin that generates a version.json file containing git information (branch, commit id, time, message, author) and build time during the bundle process. Current version 0.0.9 is stable but likely early-stage; release cadence is unknown. Key differentiator: provides structured git metadata directly in the output, useful for CI/CD pipelines and runtime version display. Supports Node >=16 and pnpm 8.x. Ships TypeScript types. Note that the plugin uses require() in its own example, but Rollup encourages ESM imports.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-build-git-version"],"cli":null},"imports":["import { buildGitVersion } from 'rollup-plugin-build-git-version'","import buildGitVersion from 'rollup-plugin-build-git-version'","import type { BuildGitVersion } from 'rollup-plugin-build-git-version'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { buildGitVersion } from 'rollup-plugin-build-git-version';\nimport { defineConfig } from 'rollup';\n\nexport default defineConfig({\n  input: 'src/index.js',\n  output: { dir: 'dist', format: 'cjs' },\n  plugins: [buildGitVersion()]\n});","lang":"typescript","description":"This example shows how to integrate the plugin into a Rollup configuration, generating version.json in the output directory.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}