Add bin entry points for standalone CLI module execution
Each CLI module package now includes a bin script and cli.ts entry point, allowing modules to be executed directly via npx without being wired into the main @backstage/cli package. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
"dist",
|
||||
"bin"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "backstage-cli package build",
|
||||
@@ -41,5 +42,6 @@
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "workspace:^",
|
||||
"@types/fs-extra": "^11.0.0"
|
||||
}
|
||||
},
|
||||
"bin": "bin/cli-module-maintenance"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user