feat(cli): implement modular command architecture with build config
Publish to Gitea Registry / publish (push) Failing after 19m9s

- Refactor CLI entry point to use modular command structure
- Add list command with placeholder implementation
- Set up type definitions for command interface
- Configure TypeScript build and package files for distribution
- Add dist output to .gitignore
This commit is contained in:
yangzhaohan
2026-06-22 16:23:22 +08:00
parent c6f4311360
commit a258407fae
9 changed files with 338 additions and 4 deletions
+17 -2
View File
@@ -7,16 +7,31 @@
"bin": {
"brick": "./dist/index.js"
},
"files": [
"dist/"
],
"scripts": {
"build": "tsc",
"dev": "tsc --watch"
"dev": "tsc --watch",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "https://gitea.synoth.com/synoth/brick-cli.git"
},
"publishConfig": {
"registry": "https://gitea.synoth.com/api/packages/synoth/npm/"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.0.0",
"typescript": "^5.7.0"
},
"license": "MIT"
"license": "MIT",
"dependencies": {
"js-yaml": "^5.0.0"
}
}