@gjsify/cli 0.16.8 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,6 +46,18 @@ export const runCommand = {
46
46
  type: 'string',
47
47
  description: 'Run <target> as a script in the named workspace (by name or path), like `npm run <script> -w <name>`.',
48
48
  })
49
+ // Pass-through runner: the TARGET owns its whole flag namespace, so
50
+ // disable gjsify's own `--version` / `--help` for THIS command. Without
51
+ // this, `gjsify run <target> --help` / `--version` are KNOWN options →
52
+ // yargs prints the gjsify CLI's help/version instead of forwarding them
53
+ // to the target (e.g. `gjsify run start --version` printed gjsify's
54
+ // version, not the run script's). Disabled → they become "unknown" and
55
+ // `unknown-options-as-args` (below) routes them into `[args..]` → child.
56
+ // Same pattern as the `tsc` pass-through command. (`gjsify run --help`
57
+ // with no target now errors "target required" rather than showing this
58
+ // command's help — the accepted pass-through trade-off, as with `tsc`.)
59
+ .version(false)
60
+ .help(false)
49
61
  .parserConfiguration({
50
62
  // Preserve `--` as args['--'] so callers can write
51
63
  // gjsify run ./server.mjs -- --port 8080
@@ -58,8 +70,9 @@ export const runCommand = {
58
70
  // Without this, the top-level `.strict()` (cli-app.ts) rejects
59
71
  // --port/--year as "unknown arguments" before they reach the
60
72
  // target. Treating unknown options as positional args routes
61
- // them into the `[args..]` positional (then to the child).
62
- // Known options (--help / --version) are still handled by gjsify.
73
+ // them into the `[args..]` positional (then to the child). With
74
+ // `.version(false).help(false)` above, `--help` / `--version`
75
+ // are unknown too, so they forward to the target like any flag.
63
76
  'unknown-options-as-args': true,
64
77
  }),
65
78
  handler: async (args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/cli",
3
- "version": "0.16.8",
3
+ "version": "0.17.0",
4
4
  "description": "CLI for Gjsify",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -122,19 +122,19 @@
122
122
  "cli"
123
123
  ],
124
124
  "dependencies": {
125
- "@gjsify/buffer": "^0.16.8",
126
- "@gjsify/create-app": "^0.16.8",
127
- "@gjsify/node-globals": "^0.16.8",
128
- "@gjsify/node-polyfills": "^0.16.8",
129
- "@gjsify/npm-registry": "^0.16.8",
130
- "@gjsify/resolve-npm": "^0.16.8",
131
- "@gjsify/rolldown-plugin-gjsify": "^0.16.8",
132
- "@gjsify/rolldown-plugin-pnp": "^0.16.8",
133
- "@gjsify/semver": "^0.16.8",
134
- "@gjsify/tar": "^0.16.8",
135
- "@gjsify/tsc": "^0.16.8",
136
- "@gjsify/web-polyfills": "^0.16.8",
137
- "@gjsify/workspace": "^0.16.8",
125
+ "@gjsify/buffer": "^0.17.0",
126
+ "@gjsify/create-app": "^0.17.0",
127
+ "@gjsify/node-globals": "^0.17.0",
128
+ "@gjsify/node-polyfills": "^0.17.0",
129
+ "@gjsify/npm-registry": "^0.17.0",
130
+ "@gjsify/resolve-npm": "^0.17.0",
131
+ "@gjsify/rolldown-plugin-gjsify": "^0.17.0",
132
+ "@gjsify/rolldown-plugin-pnp": "^0.17.0",
133
+ "@gjsify/semver": "^0.17.0",
134
+ "@gjsify/tar": "^0.17.0",
135
+ "@gjsify/tsc": "^0.17.0",
136
+ "@gjsify/web-polyfills": "^0.17.0",
137
+ "@gjsify/workspace": "^0.17.0",
138
138
  "cosmiconfig": "^9.0.2",
139
139
  "get-tsconfig": "^4.14.0",
140
140
  "pkg-types": "^2.3.1",
@@ -142,13 +142,13 @@
142
142
  "yargs": "^18.0.0"
143
143
  },
144
144
  "devDependencies": {
145
- "@gjsify/unit": "^0.16.8",
145
+ "@gjsify/unit": "^0.17.0",
146
146
  "@types/yargs": "^17.0.35",
147
147
  "typescript": "^6.0.3"
148
148
  },
149
149
  "peerDependencies": {
150
- "@gjsify/oxfmt-native": "^0.16.8",
151
- "@gjsify/rolldown-native": "^0.16.8"
150
+ "@gjsify/oxfmt-native": "^0.17.0",
151
+ "@gjsify/rolldown-native": "^0.17.0"
152
152
  },
153
153
  "peerDependenciesMeta": {
154
154
  "@gjsify/oxfmt-native": {