Files
nextlevelbuilder-ui-ux-pro-…/cli/package.json
Alexander b4d33beada fix CLI asset sync (#355)
* fix CLI asset sync

* fix(cli): normalize line endings in asset sync/check

check:assets hashed raw bytes, so identical CSV/JSON/py content with
CRLF vs LF (git autocrlf on checkout) was reported as stale drift,
blocking the release guard on Windows/mixed checkouts.

- fileHash now normalizes CRLF->LF before hashing, so check:assets
  compares content, not line endings.
- sync:assets writes LF-normalized copies instead of a raw byte copy,
  so re-syncing is deterministic across platforms.

All synced assets are text (csv/json/md/py); no binaries affected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* ci: enforce CLI asset sync on PRs

Adds a Check asset sync workflow that runs `npm run check:assets` on any
PR touching src/ui-ux-pro-max/** or cli/assets/**, so the bundled CLI
assets can't silently drift from the source of truth.

The check uses only node builtins (no install step) and normalizes
line endings before hashing, so it hard-fails on real content drift
without the CRLF/LF soft-fail hack other approaches needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 12:54:58 +07:00

52 lines
1.1 KiB
JSON
Executable File

{
"name": "uipro-cli",
"version": "2.5.0",
"description": "CLI to install UI/UX Pro Max skill for AI coding assistants",
"type": "module",
"bin": {
"uipro": "./dist/index.js"
},
"files": [
"dist",
"assets"
],
"scripts": {
"build": "bun build src/index.ts --outdir dist --target node",
"dev": "bun run src/index.ts",
"sync:assets": "node scripts/sync-assets.mjs",
"check:assets": "node scripts/sync-assets.mjs --check",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run sync:assets && npm run typecheck && bun run build"
},
"keywords": [
"ui",
"ux",
"design",
"claude",
"cursor",
"windsurf",
"copilot",
"kiro",
"trae",
"roocode",
"codex",
"qoder",
"ai",
"skill"
],
"author": "",
"license": "MIT",
"dependencies": {
"commander": "^12.1.0",
"chalk": "^5.3.0",
"ora": "^8.1.1",
"prompts": "^2.4.2"
},
"devDependencies": {
"@types/bun": "^1.1.14",
"@types/node": "^22.10.1",
"@types/prompts": "^2.4.9",
"typescript": "^5.7.2"
}
}