-
Notifications
You must be signed in to change notification settings - Fork 13
feat: arcanetmpl cli tool #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,24 +1,39 @@ | ||||||||||||||||||||
| { | ||||||||||||||||||||
| "name": "arcane-templates", | ||||||||||||||||||||
| "private": true, | ||||||||||||||||||||
| "private": false, | ||||||||||||||||||||
| "bin": { | ||||||||||||||||||||
| "arcane-templates": "./dist/scripts/cli.js", | ||||||||||||||||||||
| "arcanetmpl": "./dist/scripts/cli.js" | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| "files": [ | ||||||||||||||||||||
| "dist", | ||||||||||||||||||||
| "README.md" | ||||||||||||||||||||
| ], | ||||||||||||||||||||
| "packageManager": "pnpm@11.0.0+sha512.5bd187500e49cc6c3d891d973b432c02b844a5eb7209172c90a517a3ef4f579ed5c23d409b699e6a9dc418ff7b2b1890e63f6d74f1d3fc49848f37779c89c84c", | ||||||||||||||||||||
| "engines": { | ||||||||||||||||||||
| "node": ">=25" | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| "scripts": { | ||||||||||||||||||||
| "preinstall": "npx only-allow pnpm", | ||||||||||||||||||||
| "build": "tsc --project tsconfig.json", | ||||||||||||||||||||
| "prepare": "pnpm run build", | ||||||||||||||||||||
| "format": "prettier . --write", | ||||||||||||||||||||
| "format:check": "prettier . --check", | ||||||||||||||||||||
| "lint": "pnpm run type-check && pnpm run generate && pnpm run format:check && pnpm run validate", | ||||||||||||||||||||
| "type-check": "tsc --noEmit", | ||||||||||||||||||||
| "test": "tsx scripts/test-build-registry.ts", | ||||||||||||||||||||
| "validate": "tsx scripts/validate.ts", | ||||||||||||||||||||
| "generate": "tsx scripts/build-registry.ts", | ||||||||||||||||||||
| "validate": "tsx scripts/cli.ts validate", | ||||||||||||||||||||
| "generate": "tsx scripts/cli.ts generate", | ||||||||||||||||||||
| "ci": "pnpm run lint && pnpm run test && pnpm run generate", | ||||||||||||||||||||
| "stage": "rm -rf build && mkdir -p build/templates && cp -v registry.json build/ && cp -v schema.json build/ && if [ -d public ]; then rsync -a public/ build/; fi && rsync -a --delete templates/ build/templates/", | ||||||||||||||||||||
| "stage": "tsx scripts/cli.ts stage", | ||||||||||||||||||||
| "create:template": "tsx scripts/cli.ts create", | ||||||||||||||||||||
| "cli": "tsx scripts/cli.ts", | ||||||||||||||||||||
| "deploy": "pnpm run stage && wrangler version deploy", | ||||||||||||||||||||
| "dev": "pnpm run generate && pnpm run stage && wrangler dev" | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| "dependencies": { | ||||||||||||||||||||
| "ajv": "^8.18.0", | ||||||||||||||||||||
| "ajv-formats": "^3.0.1" | ||||||||||||||||||||
| }, | ||||||||||||||||||||
|
Comment on lines
+33
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Published CLI will crash because
Suggested change
Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||||||||||||||||
| "devDependencies": { | ||||||||||||||||||||
| "@types/node": "^25.6.0", | ||||||||||||||||||||
| "ajv": "^8.20.0", | ||||||||||||||||||||
|
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preparescript hard-codespnpm run buildNow that
preinstall: only-allow pnpmwas removed (intentionally for public publishing), contributors whonpm installoryarn installwill hit a cryptic error becauseprepareinvokespnpm run build. Consider usingtsc --project tsconfig.jsondirectly inprepareso it works regardless of the package manager:Prompt To Fix With AI