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
This commit is contained in:
Cell
2026-06-10 17:53:58 +08:00
parent 03ca90b49f
commit f5b030b4eb
27 changed files with 269 additions and 211 deletions
+15
View File
@@ -0,0 +1,15 @@
# @hugo-fixit/integration
Post-build script that merges `apps/demo` and `apps/test` build outputs into a unified `public/` directory.
## Usage
```bash
pnpm -F integration start
```
## How it works
1. Removes the existing `public/` directory
2. Copies `apps/demo/public/` into `public/`
3. Copies `apps/test/public/` into `public/test/`
+4 -5
View File
@@ -1,9 +1,8 @@
import path from 'node:path'
import { workspaceRoot } from '@hugo-fixit/shared'
import { fromRoot } from '@hugo-fixit/shared'
import fsExtra from 'fs-extra'
const { copySync, removeSync } = fsExtra
removeSync(path.join(workspaceRoot, 'public'))
copySync(path.join(workspaceRoot, 'apps/demo/public'), path.join(workspaceRoot, 'public'), { overwrite: true })
copySync(path.join(workspaceRoot, 'apps/test/public'), path.join(workspaceRoot, 'public/test'), { overwrite: true })
removeSync(fromRoot('public'))
copySync(fromRoot('apps/demo/public'), fromRoot('public'), { overwrite: true })
copySync(fromRoot('apps/test/public'), fromRoot('public/test'), { overwrite: true })