mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
f5b030b4eb
- 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
16 lines
532 B
Markdown
16 lines
532 B
Markdown
# @hugo-fixit/versioning
|
|
|
|
Updates the FixIt version string in `layouts/_partials/init/index.html`.
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
pnpm -F versioning start dev # Development version (pre-commit hook)
|
|
pnpm -F versioning start prod # Production version (release)
|
|
```
|
|
|
|
## How it works
|
|
|
|
- **dev**: builds a version like `v0.3.21-mq7veaoa` (next patch + base36 timestamp), runs on pre-commit for `dev`/`main` branches only when theme files change
|
|
- **prod**: uses the version from `package.json`, also cleans up the `nextVersion` field if present
|