Files
FixIt/packages/versioning/src/index.ts
T
Cell f5b030b4eb chore(packages): replace helpers with standalone chroma-lexers and enrich shared
- Replace helpers dispatcher pattern with standalone chroma-lexers package
- Add runCommand, fromRoot, consola re-export to shared
- Update versioning and integration to use shared utilities
- Shorten dev version format: base36 timestamp, no hash
- Rename eslint.config.js to eslint.config.ts (add jiti)
- Add README.md to each package
2026-06-11 10:35:10 +08:00

12 lines
318 B
TypeScript

import process from 'node:process'
import { consola } from '@hugo-fixit/shared'
import { updateVersion } from './update-version'
const type: string = process.argv[2]
if (type !== 'dev' && type !== 'prod') {
consola.error('Invalid argument. Please specify "dev" or "prod".')
process.exit(1)
}
updateVersion(type)