fix(cli): filter pnpm standalone -- arg and simplify dev scripts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6ef58a0cab
commit
7eb36a48d3
2 changed files with 7 additions and 6 deletions
|
|
@ -130,7 +130,8 @@ function printVersion() {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
const args = process.argv.slice(2);
|
||||
// Filter out standalone "--" (used by pnpm to pass args)
|
||||
const args = process.argv.slice(2).filter((arg) => arg !== "--");
|
||||
|
||||
// Handle global flags
|
||||
if (args.includes("--help") || args.includes("-h")) {
|
||||
|
|
|
|||
10
package.json
10
package.json
|
|
@ -11,11 +11,11 @@
|
|||
"scripts": {
|
||||
"multica": "pnpm --filter @multica/cli dev",
|
||||
"mu": "pnpm --filter @multica/cli dev",
|
||||
"dev": "pnpm --filter @multica/cli dev -- dev",
|
||||
"dev:desktop": "pnpm --filter @multica/cli dev -- dev desktop",
|
||||
"dev:gateway": "pnpm --filter @multica/cli dev -- dev gateway",
|
||||
"dev:web": "pnpm --filter @multica/cli dev -- dev web",
|
||||
"dev:all": "pnpm --filter @multica/cli dev -- dev all",
|
||||
"dev": "pnpm --filter @multica/desktop dev",
|
||||
"dev:desktop": "pnpm --filter @multica/desktop dev",
|
||||
"dev:gateway": "pnpm --filter @multica/gateway dev",
|
||||
"dev:web": "pnpm --filter @multica/web dev",
|
||||
"dev:all": "concurrently \"pnpm dev:gateway\" \"pnpm dev:web\"",
|
||||
"build": "turbo build",
|
||||
"build:sdk": "pnpm --filter @multica/sdk build",
|
||||
"build:cli": "node scripts/build-cli.js",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue