{"_id":"@37bytes/vite-build-time-environment","_rev":"7-cca030de9169680e1b7d698c6ba690d4","name":"@37bytes/vite-build-time-environment","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@37bytes/vite-build-time-environment","version":"0.0.1","keywords":["vite","vite-plugin","build-time","versioning","environment-variables","ci-cd","build-info","build-variables"],"author":{"name":"37bytes"},"license":"MIT","_id":"@37bytes/vite-build-time-environment@0.0.1","maintainers":[{"name":"arhonist-37b","email":"naushev@37bytes.com"},{"name":"rispaev","email":"rispaev@37bytes.com"},{"name":"yar_vav","email":"yavavilin@37bytes.com"},{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"}],"homepage":"https://github.com/37bytes/public-packages/tree/master#readme","bugs":{"url":"https://github.com/37bytes/public-packages/issues"},"dist":{"shasum":"04beba72d2a4f34caf9079eec3b5856744d4038c","tarball":"https://registry.npmjs.org/@37bytes/vite-build-time-environment/-/vite-build-time-environment-0.0.1.tgz","fileCount":9,"integrity":"sha512-VS8WV+EGu6S0V8x63HpFVnpOpFKJHxxaWUmeoJdRLpfmG3W0GYbSOraYDk5bKoJgXTtvkIgZotDM+66vL25lZg==","signatures":[{"sig":"MEUCIQDt7gvUtFSfJXH+NEgrgDMgppVYncZ/hNjPzSuUpnEpDwIgLA8L+TeYZf7PvFg61jir0zlepMLmvW2qsH3SuyAMWWs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11410},"main":"./build/buildTimeEnvironmentSupport.js","types":"./build/buildTimeEnvironmentSupport.d.ts","module":"./build/buildTimeEnvironmentSupport.mjs","gitHead":"3b37498b444d69f8c74ea9527b4d71d6fc8ca5b6","scripts":{"build":"rimraf build && tsup","npm-packlist":"npm run build && npx -y npm-packlist@6.0.1"},"_npmUser":{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},"repository":{"url":"git+https://github.com/37bytes/public-packages.git#master","type":"git"},"_npmVersion":"10.2.3","description":"Vite plugin for integrating build-time environment variables like Git branch and commit hash.","directories":{},"_nodeVersion":"20.8.0","dependencies":{"tsup":"^8.0.1","rimraf":"5.0.5","typescript":"^5.3.3"},"typesVersions":{"*":{"./build/index.mjs":["./build/buildTimeEnvironmentSupport.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.0.0"},"peerDependencies":{"vite":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-build-time-environment_0.0.1_1705398355807_0.8757488649083798","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@37bytes/vite-build-time-environment","version":"0.0.2","keywords":["vite","vite-plugin","build-time","versioning","environment-variables","ci-cd","build-info","build-variables"],"author":{"name":"37bytes"},"license":"MIT","_id":"@37bytes/vite-build-time-environment@0.0.2","maintainers":[{"name":"arhonist-37b","email":"naushev@37bytes.com"},{"name":"rispaev","email":"rispaev@37bytes.com"},{"name":"yar_vav","email":"yavavilin@37bytes.com"},{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"}],"homepage":"https://github.com/37bytes/public-packages/tree/master#readme","bugs":{"url":"https://github.com/37bytes/public-packages/issues"},"dist":{"shasum":"af51f8e51c5ff3389f3f24584d6eadbac9eee3cb","tarball":"https://registry.npmjs.org/@37bytes/vite-build-time-environment/-/vite-build-time-environment-0.0.2.tgz","fileCount":9,"integrity":"sha512-3fXDPxDRKMPdCFdPxpTssQjVqZciCjsIv2Mptq85V4eBC+L8g6zy1oIas0gvi+RhPabNtz14tUy4PPFUqrBaRA==","signatures":[{"sig":"MEYCIQCFWn39XVc1TcJsxRjhvdz4/8s7fg1tHXgwmyGLNbVAtQIhAKU0J4CoAMnd6re8xOcqzhSlS8xLfrHhAou0YmxUp7nV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11420},"main":"./build/buildTimeEnvironmentSupport.js","types":"./build/buildTimeEnvironmentSupport.d.ts","module":"./build/buildTimeEnvironmentSupport.mjs","gitHead":"3b37498b444d69f8c74ea9527b4d71d6fc8ca5b6","scripts":{"build":"rimraf build && tsup","npm-packlist":"npm run build && npx -y npm-packlist@6.0.1"},"_npmUser":{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},"repository":{"url":"git+https://github.com/37bytes/public-packages.git#master","type":"git"},"_npmVersion":"10.2.3","description":"Vite plugin for integrating build-time environment variables like Git branch and commit hash.","directories":{},"_nodeVersion":"20.8.0","dependencies":{"tsup":"^8.0.1","rimraf":"5.0.5","typescript":"^5.3.3"},"typesVersions":{"*":{"./build/index.mjs":["./build/buildTimeEnvironmentSupport.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.0.0"},"peerDependencies":{"vite":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-build-time-environment_0.0.2_1705398443879_0.697431171445251","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@37bytes/vite-build-time-environment","version":"0.0.3","keywords":["vite","vite-plugin","build-time","versioning","environment-variables","ci-cd","build-info","build-variables"],"author":{"name":"37bytes"},"license":"MIT","_id":"@37bytes/vite-build-time-environment@0.0.3","maintainers":[{"name":"arhonist-37b","email":"naushev@37bytes.com"},{"name":"rispaev","email":"rispaev@37bytes.com"},{"name":"yar_vav","email":"yavavilin@37bytes.com"},{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"}],"homepage":"https://github.com/37bytes/public-packages/tree/master#readme","bugs":{"url":"https://github.com/37bytes/public-packages/issues"},"dist":{"shasum":"19940f242afe1a2e7815a928acb665fe46fa39c5","tarball":"https://registry.npmjs.org/@37bytes/vite-build-time-environment/-/vite-build-time-environment-0.0.3.tgz","fileCount":9,"integrity":"sha512-ydI79CokvV9i5Gd6RU2yKeLEWCC8CSj+P6LJ99FDjERG0Rdv1ceWo+yCRVnAWCTyS8x/GJdFI3nMqF299lUgxw==","signatures":[{"sig":"MEQCIDouExXRcqOlT426+BM9K9SSEYVvPXDt+SUmOz6eAKo+AiAyhLxGJtOO/meX3COdtU1OrCbJs5csFhX/CGNqRJY3ZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11414},"main":"./build/buildTimeEnvironmentSupport.cjs","type":"module","types":"./build/buildTimeEnvironmentSupport.d.cts","module":"./build/buildTimeEnvironmentSupport.js","gitHead":"3b37498b444d69f8c74ea9527b4d71d6fc8ca5b6","scripts":{"build":"rimraf build && tsup","npm-packlist":"npm run build && npx -y npm-packlist@6.0.1"},"_npmUser":{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},"repository":{"url":"git+https://github.com/37bytes/public-packages.git#master","type":"git"},"_npmVersion":"10.2.3","description":"Vite plugin for integrating build-time environment variables like Git branch and commit hash.","directories":{},"_nodeVersion":"20.8.0","typesVersions":{"*":{"./build/index.mjs":["./build/buildTimeEnvironmentSupport.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vite":"^4.0.0","rimraf":"5.0.5","typescript":"^5.3.3"},"peerDependencies":{"vite":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-build-time-environment_0.0.3_1705399929526_0.7252619100525721","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@37bytes/vite-build-time-environment","version":"0.0.4","keywords":["vite","vite-plugin","build-time","versioning","environment-variables","ci-cd","build-info","build-variables"],"author":{"name":"37bytes"},"license":"MIT","_id":"@37bytes/vite-build-time-environment@0.0.4","maintainers":[{"name":"arhonist-37b","email":"naushev@37bytes.com"},{"name":"rispaev","email":"rispaev@37bytes.com"},{"name":"yar_vav","email":"yavavilin@37bytes.com"},{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"}],"homepage":"https://github.com/37bytes/public-packages/tree/master#readme","bugs":{"url":"https://github.com/37bytes/public-packages/issues"},"dist":{"shasum":"0aeb87365aafbeaeca82879aece6f25bf14415d7","tarball":"https://registry.npmjs.org/@37bytes/vite-build-time-environment/-/vite-build-time-environment-0.0.4.tgz","fileCount":5,"integrity":"sha512-O3nU/sby/Z+tHoat3+XlUOqE6+lYx59Kp9MNleNtNVQq35Q2Hh+onlMtr8TiiXyIYO+tPLRkhH7OzUfrXKUW0w==","signatures":[{"sig":"MEUCICcOgQThV6J629Lpfclz4sPFSOTP1l5FdLr8tLZqtkRWAiEAjtrjKncEa+a3kdei0TxT4tFJbX/D/CqrymD8yQZifEs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3257},"type":"module","types":"./build/buildTimeEnvironmentSupport.d.js","module":"./build/buildTimeEnvironmentSupport.js","gitHead":"3b37498b444d69f8c74ea9527b4d71d6fc8ca5b6","scripts":{"build":"rimraf build && tsup","npm-packlist":"npm run build && npx -y npm-packlist@6.0.1"},"_npmUser":{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},"repository":{"url":"git+https://github.com/37bytes/public-packages.git#master","type":"git"},"_npmVersion":"10.2.3","description":"Vite plugin for integrating build-time environment variables like Git branch and commit hash.","directories":{},"_nodeVersion":"20.8.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vite":"^4.0.0","rimraf":"5.0.5","typescript":"^5.3.3"},"peerDependencies":{"vite":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-build-time-environment_0.0.4_1705400823627_0.20464546714339638","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@37bytes/vite-build-time-environment","version":"0.0.5","keywords":["vite","vite-plugin","build-time","versioning","environment-variables","ci-cd","build-info","build-variables"],"author":{"name":"37bytes"},"license":"MIT","_id":"@37bytes/vite-build-time-environment@0.0.5","maintainers":[{"name":"arhonist-37b","email":"naushev@37bytes.com"},{"name":"rispaev","email":"rispaev@37bytes.com"},{"name":"yar_vav","email":"yavavilin@37bytes.com"},{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"}],"homepage":"https://github.com/37bytes/public-packages/tree/master#readme","bugs":{"url":"https://github.com/37bytes/public-packages/issues"},"dist":{"shasum":"c4d033b26ac563f745e5631ca4fb9c889dd0a64e","tarball":"https://registry.npmjs.org/@37bytes/vite-build-time-environment/-/vite-build-time-environment-0.0.5.tgz","fileCount":7,"integrity":"sha512-HKDab5iw7RdeevqOe628B0yrBvyUJL7hMJaYeTayJFepv8Jv34W1LOPeE/HasPrbICbYoIREWCJPzi0Swvfykg==","signatures":[{"sig":"MEQCIFkuaq1Q9msHILVuWPyJf4V/uQBbYv6Hc7pGCVre5QNWAiAMbWAsB8DtJZg+NtNg+/yZmmVEeHJch1kuZcrJe0bZww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6403},"main":"./build/buildTimeEnvironmentSupport.cjs","type":"module","types":"./build/buildTimeEnvironmentSupport.d.cts","module":"./build/buildTimeEnvironmentSupport.js","exports":{".":{"import":"./build/buildTimeEnvironmentSupport.js","require":"./build/buildTimeEnvironmentSupport.cjs"}},"gitHead":"3b37498b444d69f8c74ea9527b4d71d6fc8ca5b6","scripts":{"build":"rimraf build && tsup","npm-packlist":"npm run build && npx -y npm-packlist@6.0.1"},"_npmUser":{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},"repository":{"url":"git+https://github.com/37bytes/public-packages.git#master","type":"git"},"_npmVersion":"10.2.3","description":"Vite plugin for integrating build-time environment variables like Git branch and commit hash.","directories":{},"_nodeVersion":"20.8.0","typesVersions":{"*":{"./build/buildTimeEnvironmentSupport.js":["./build/buildTimeEnvironmentSupport.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vite":"^4.0.0","rimraf":"5.0.5","typescript":"^5.3.3"},"peerDependencies":{"vite":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-build-time-environment_0.0.5_1705401106526_0.13717479707577263","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@37bytes/vite-build-time-environment","version":"0.0.6","keywords":["vite","vite-plugin","build-time","versioning","environment-variables","ci-cd","build-info","build-variables"],"author":{"name":"37bytes"},"license":"MIT","_id":"@37bytes/vite-build-time-environment@0.0.6","maintainers":[{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"arhonist-37b","email":"naushev@37bytes.com"},{"name":"yar_vav","email":"yavavilin@37bytes.com"},{"name":"rispaev","email":"rispaev@37bytes.com"}],"homepage":"https://github.com/37bytes/public-packages/tree/master#readme","bugs":{"url":"https://github.com/37bytes/public-packages/issues"},"dist":{"shasum":"629e064509bd248b4143ee6dd01b7b0c1e830e3a","tarball":"https://registry.npmjs.org/@37bytes/vite-build-time-environment/-/vite-build-time-environment-0.0.6.tgz","fileCount":8,"integrity":"sha512-bRbSpkA9hFLXMYEPa2MKhN0f6+pvpZH6z7onjNM6OdyzcO0LcDx6dy97YFmBfKGk1tw8DvU5lfI5WDTS2+CfFQ==","signatures":[{"sig":"MEUCIFMV3appXVUtg0ZOf7Hu8NOBjnYEsOFvb4lT3DNZgpOBAiEArcZ3S+h2iHt2Vm/w3VYPydLkESXWqvFM92wkRug32IA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15436},"main":"./build/buildTimeEnvironmentSupport.cjs","type":"module","types":"./build/buildTimeEnvironmentSupport.d.cts","module":"./build/buildTimeEnvironmentSupport.js","exports":{".":{"import":"./build/buildTimeEnvironmentSupport.js","require":"./build/buildTimeEnvironmentSupport.cjs"}},"gitHead":"c25c633aa7e1bc1c9ec95227a2d1f0434c7bdc96","scripts":{"build":"rimraf build && tsup","prepublish":"npm run build","npm-packlist":"npm run build && npx -y npm-packlist@6.0.1"},"_npmUser":{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},"repository":{"url":"git+https://github.com/37bytes/public-packages.git#master","type":"git"},"_npmVersion":"11.0.0","description":"Vite plugin for integrating build-time environment variables like Git branch and commit hash.","directories":{},"_nodeVersion":"20.17.0","typesVersions":{"*":{"./build/buildTimeEnvironmentSupport.js":["./build/buildTimeEnvironmentSupport.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vite":"^4.0.0","rimraf":"5.0.5","typescript":"^5.3.3"},"peerDependencies":{"vite":"^4.0.0 || ^5.0.0 || ^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-build-time-environment_0.0.6_1737800387704_0.3071095855088437","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@37bytes/vite-build-time-environment","version":"0.1.0","description":"Vite plugin for integrating build-time environment variables like Git branch and commit hash.","license":"MIT","author":{"name":"37bytes"},"type":"module","sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/37bytes/public-packages.git","directory":"packages/vite-build-time-environment"},"keywords":["vite","vite-plugin","build-time","versioning","environment-variables","ci-cd","build-info","build-variables"],"exports":{".":{"import":{"types":"./build/index.d.mts","default":"./build/index.mjs"},"require":{"types":"./build/index.d.cts","default":"./build/index.cjs"}}},"main":"./build/index.cjs","module":"./build/index.mjs","types":"./build/index.d.mts","peerDependencies":{"vite":"^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-beta.0"},"devDependencies":{"eslint":"9.39.2","tsdown":"0.20.3","typescript":"5.8.3","@37bytes/bundler":"0.0.0","@37bytes/code-style":"0.0.1"},"scripts":{"build":"tsdown","lint:typescript":"tsc --noEmit","lint:eslint":"eslint --fix --max-warnings 0 .","lint":"pnpm lint:typescript && pnpm lint:eslint"},"_id":"@37bytes/vite-build-time-environment@0.1.0","bugs":{"url":"https://github.com/37bytes/public-packages/issues"},"homepage":"https://github.com/37bytes/public-packages#readme","_integrity":"sha512-CAogQepdQl6dz/TsH8fMRoFb0GLw8e/tdzyvd7wDmEiQMuCaOwF9R3IXjfHq3SZYcnJ4fbIBaWYizacMkeUWnw==","_resolved":"/private/var/folders/5t/b72kl4gn5fs7rnfrhvh9l6sc0000gn/T/2421a539c19f5bc32e344b92ef6301c0/37bytes-vite-build-time-environment-0.1.0.tgz","_from":"file:37bytes-vite-build-time-environment-0.1.0.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-CAogQepdQl6dz/TsH8fMRoFb0GLw8e/tdzyvd7wDmEiQMuCaOwF9R3IXjfHq3SZYcnJ4fbIBaWYizacMkeUWnw==","shasum":"01321d1a6c33197519f9ab7bfba2b45e25477914","tarball":"https://registry.npmjs.org/@37bytes/vite-build-time-environment/-/vite-build-time-environment-0.1.0.tgz","fileCount":11,"unpackedSize":20352,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCI39F7qnjGimppQSZCD+aPEeFNRMv6qt6sdBMRk8OWygIgQDHSf4BCGic7uTd4GtNzZOtUwIPO5RDwhcDmF/huH/Y="}]},"_npmUser":{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},"directories":{},"maintainers":[{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"arhonist-37b","email":"naushev@37bytes.com"},{"name":"yar_vav","email":"yavavilin@37bytes.com"},{"name":"rispaev","email":"rispaev@37bytes.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite-build-time-environment_0.1.0_1773171560175_0.6907782945904806"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-16T09:45:55.673Z","modified":"2026-03-10T19:39:20.527Z","0.0.1":"2024-01-16T09:45:55.981Z","0.0.2":"2024-01-16T09:47:24.055Z","0.0.3":"2024-01-16T10:12:09.691Z","0.0.4":"2024-01-16T10:27:03.785Z","0.0.5":"2024-01-16T10:31:46.670Z","0.0.6":"2025-01-25T10:19:47.886Z","0.1.0":"2026-03-10T19:39:20.319Z"},"bugs":{"url":"https://github.com/37bytes/public-packages/issues"},"author":{"name":"37bytes"},"license":"MIT","homepage":"https://github.com/37bytes/public-packages#readme","keywords":["vite","vite-plugin","build-time","versioning","environment-variables","ci-cd","build-info","build-variables"],"repository":{"type":"git","url":"git+https://github.com/37bytes/public-packages.git","directory":"packages/vite-build-time-environment"},"description":"Vite plugin for integrating build-time environment variables like Git branch and commit hash.","maintainers":[{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"arhonist-37b","email":"naushev@37bytes.com"},{"name":"yar_vav","email":"yavavilin@37bytes.com"},{"name":"rispaev","email":"rispaev@37bytes.com"}],"readme":"[[English](./README.md)] | [Русский](./README_RU.md)\n\n# @37bytes/vite-build-time-environment\n\nThis plugin allows injecting version, branch, and commit information into code during build time. This is particularly useful for:\n- Version tracking in production environment\n- Debugging issues across different builds\n- Automating release process\n\n## Installation\n\n```shell\nnpm install @37bytes/vite-build-time-environment\n```\n\n## Usage\n\n```typescript\n// vite.config.ts\nimport { defineConfig } from 'vite';\nimport createBuildTimeIdentifiersSupportPlugin from '@37bytes/vite-build-time-environment';\nimport packageInfo from '../package.json';\n\n// Other parameters are pulled from environment variables\nconst buildTimeIdentifiersSupportPlugin = createBuildTimeIdentifiersSupportPlugin({\n    packageName: packageInfo.name,\n    packageVersion: packageInfo.version\n});\n\nexport default defineConfig({\n    // ...\n    plugins: [\n        buildTimeIdentifiersSupportPlugin,\n        // ...\n    ]\n    // ...\n});\n```\n\n## Environment Variables\n\nThe plugin uses the following environment variables:\n\n| Environment Variable | Description | Default Value When Missing |\n|---------------------|-------------|---------------------------|\n| `VERSION` | Build version | `[unknown build version]` |\n| `BRANCH` | Current Git branch | `[unknown git branch]` |\n| `COMMIT_HASH` | Current commit hash | `[unknown commit hash]` |\n\nEnvironment variable names can be changed using the `aliases` parameter (see \"Optional Parameters\" section).\n\n## Parameters\n\n### Required Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `packageName` | `string` | Package name |\n| `packageVersion` | `string` | Package version |\n\n### Optional Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `aliases.VERSION_FIELD_NAME` | `string` | `'VERSION'` | Environment variable name for build version |\n| `aliases.BRANCH_FIELD_NAME` | `string` | `'BRANCH'` | Environment variable name for Git branch |\n| `aliases.COMMIT_HASH_FIELD_NAME` | `string` | `'COMMIT_HASH'` | Environment variable name for commit hash |\n\n## Available Variables\n\nAfter configuring the plugin, the following global variables will be available in your code:\n\n| Variable | Description |\n|----------|-------------|\n| `PACKAGE_INFO_FIELD_NAME` | Package name |\n| `PACKAGE_INFO_FIELD_VERSION` | Package version |\n| `BUILD_TIME_VARIABLES_VERSION` | Build version (from environment variable) |\n| `BUILD_TIME_VARIABLES_BRANCH` | Current Git branch |\n| `BUILD_TIME_VARIABLES_COMMIT_HASH` | Current commit hash |\n| `BUILD_TIME_VARIABLES_RELEASE_NAME` | Full release name in format `packageName@packageVersion+version` |\n\n### Build Example\n\n```shell\nVERSION=1.0.0-beta BRANCH=feature/new-plugin COMMIT_HASH=abc123 vite build\n```\n\n## Code Usage Example\n\nvite-end.d.ts:\n```typescript\n// ...\n/// <reference types=\"@37bytes/vite-build-time-environment/client\" />\n// ...\n```\n\n```typescript\nexport const packageInfo = {\n    name: PACKAGE_INFO_FIELD_NAME,\n    version: PACKAGE_INFO_FIELD_VERSION\n};\n\nexport const buildTimeVariables = {\n    version: BUILD_TIME_VARIABLES_VERSION,\n    branch: BUILD_TIME_VARIABLES_BRANCH,\n    commitHash: BUILD_TIME_VARIABLES_COMMIT_HASH,\n    releaseName: BUILD_TIME_VARIABLES_RELEASE_NAME\n};\n```\n\n## Aliases Configuration Example\n\n```typescript\nbuildTimeIdentifiersPlugin({\n    packageName: 'my-app',\n    packageVersion: '1.0.0',\n    aliases: {\n        VERSION_FIELD_NAME: 'MY_APP_VERSION',\n        BRANCH_FIELD_NAME: 'MY_APP_BRANCH',\n        COMMIT_HASH_FIELD_NAME: 'MY_APP_COMMIT'\n    }\n})\n```\n\n## Default Values\n\nWhen corresponding environment variables are not set, the plugin uses these default values:\n\n- For `BUILD_TIME_VARIABLES_BRANCH`: `[unknown git branch]`\n- For `BUILD_TIME_VARIABLES_COMMIT_HASH`: `[unknown commit hash]`\n- For `BUILD_TIME_VARIABLES_VERSION`: `[unknown build version]`\n","readmeFilename":"README.md"}