@zuke-build/cli 2.9.1 → 2.10.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.
package/README.md CHANGED
@@ -4,9 +4,10 @@ The `zuke` command-line tool — scaffold
4
4
  [Zuke](https://github.com/zuke-build/zuke#readme) into any project.
5
5
 
6
6
  ```sh
7
- deno install -A -g -n zuke jsr:@zuke/cli
8
- zuke setup
9
- zuke setup --runtime node # a Node project: package.json and Node launchers, no Deno
7
+ npm install -g @zuke-build/cli
8
+ # or, on Deno: deno install -A -g -n zuke jsr:@zuke/cli
9
+ zuke setup # a Node project (default)
10
+ zuke setup --runtime deno # a Deno project
10
11
  zuke setup --sdk python # a build.py, with launchers that run the zuke binary: no Deno
11
12
  zuke upgrade # later: move the installed CLI to the latest release
12
13
  zuke upgrade --engine # or move a Python project to the latest zuke release
package/mod.js CHANGED
@@ -291,7 +291,7 @@ function printBanner(host) {
291
291
  *
292
292
  * Headed so a reader can tell it apart from the build's half, which is printed
293
293
  * after it when there is a project here. The two are different surfaces — this
294
- * one is the installed `zuke`, that one is whatever `zuke.ts` declares — and
294
+ * one is the installed `zuke`, that one is whatever the build file declares — and
295
295
  * showing them unlabelled under one heading was what made them look like one
296
296
  * inconsistent command.
297
297
  */
@@ -305,12 +305,13 @@ Usage:
305
305
  Zuke commands (available anywhere):
306
306
  setup [options] Scaffold Zuke into a directory
307
307
  import [options] Generate a build from package.json scripts, a Makefile or pyproject.toml tasks
308
- doc <package> Show a @zuke/* package's API docs (isolated resolution)
309
- upgrade [<version>] Reinstall this CLI at the latest (or given) JSR release
310
- (Homebrew installs: brew upgrade zuke)
308
+ doc <package> Show a @zuke/* package's API docs (runs deno doc, so needs Deno)
309
+ upgrade [<version>] Reinstall a JSR-installed CLI at the latest (or given) release
310
+ (npm: npm install -g @zuke-build/cli; Homebrew: brew upgrade zuke)
311
311
  upgrade --engine [<v>] Move a Python project's launchers to the latest (or given) zuke release
312
- add <package...> Add packages to this project's deno.json (docker = @zuke/docker)
313
- remove <package...> Remove packages from this project's deno.json
312
+ add <package...> Add packages to this project's package.json, or deno.json on Deno
313
+ (docker = @zuke/docker)
314
+ remove <package...> Remove packages from this project's package.json, or deno.json on Deno
314
315
  cache [<entry>...] Fetch everything the build imports, keeping the lock
315
316
  relock [<entry>...] Regenerate this project's lock from scratch
316
317
  --help Show this help
@@ -328,7 +329,7 @@ Setup options:
328
329
  --mcp Also write .mcp.json registering the build's MCP server
329
330
  --allow-run …with --allow-run, so an agent may execute targets (implies --mcp)
330
331
  --bootstrap Launchers download their pinned, checksum-verified runtime when missing (default):
331
- Deno for a zuke.ts build, the zuke binary for a Python one
332
+ Node or Deno for a TypeScript build, the zuke binary for a Python one
332
333
  --no-bootstrap Launchers require that runtime on PATH and fail closed without it
333
334
  --force, -f Overwrite existing files
334
335
  --yes, -y Accept defaults without prompting
@@ -338,11 +339,11 @@ Import options:
338
339
  --name <Class> Build class name (default: MyBuild)
339
340
  --from <source> Force a source: package.json, makefile or pyproject (default: auto-detect)
340
341
  --zuke <version> The zuke release a pyproject.toml import's launchers run (default: this one)
341
- --runtime deno|node Runtime of a generated zuke.ts (default: node, or the project's own)
342
+ --runtime deno|node Runtime of a generated build file (default: node, or the project's own)
342
343
  --mcp Also write .mcp.json registering the build's MCP server
343
344
  --allow-run …with --allow-run, so an agent may execute targets (implies --mcp)
344
345
  --bootstrap Launchers download their pinned, checksum-verified runtime when missing (default):
345
- Deno for a zuke.ts build, the zuke binary for a Python one
346
+ Node or Deno for a TypeScript build, the zuke binary for a Python one
346
347
  --no-bootstrap Launchers require that runtime on PATH and fail closed without it
347
348
  --force, -f Overwrite existing files
348
349
  --yes, -y Accept defaults without prompting
@@ -393,7 +394,7 @@ function buildHelpHeading(location, paint, engine) {
393
394
  * found but did not describe itself — it failed to spawn, or its own `--help`
394
395
  * exited non-zero. The heading is already printed by then (the build inherits
395
396
  * stdio, so there is nothing to buffer and inspect first), which would
396
- * otherwise leave a heading over an empty section with only Deno's own error
397
+ * otherwise leave a heading over an empty section with only the runtime's own error
397
398
  * to explain it. Named on stderr so stdout stays the help.
398
399
  */
399
400
  const BUILD_HELP_FAILED = "The build was found but could not describe itself, so the section above " +
@@ -401,7 +402,7 @@ const BUILD_HELP_FAILED = "The build was found but could not describe itself, so
401
402
  /** What to say when the build was found but could not report its version. */
402
403
  const BUILD_VERSION_FAILED = "The build was found but could not report its version: a build on " +
403
404
  "@zuke/core older than 1.60.0 cannot answer --version, and this project " +
404
- "has no deno.lock naming its core to read instead. The CLI's own version " +
405
+ "has no lockfile naming its core to read instead. The CLI's own version " +
405
406
  "above is unaffected.";
406
407
  /** What to say where the build's half would be, when there is no project. */
407
408
  const NO_BUILD_NOTICE = `\n${"─".repeat(72)}\nNo zuke.json in this directory or any parent, so ` +
@@ -653,10 +654,10 @@ async function forwardToBuild(args, probe, runner, engine) {
653
654
  output.error(DENO_SUPPORT_NOTICE);
654
655
  }
655
656
  // Only the bare `deno run` a launcher stands in for is this notice's.
656
- // A hosted build has no Deno config for Deno to write a lock into, so
657
- // the launchers say nothing there, and neither does this.
657
+ // A hosted build has no Deno config for Deno to write a lock into, and a
658
+ // Node build never writes a deno.lock, so neither is told.
658
659
  if (location.launcher === null && !location.frozen &&
659
- location.engine === null) {
660
+ location.engine === null && location.runtime === "deno") {
660
661
  output.error(NO_LOCK_NOTICE);
661
662
  }
662
663
  return await runBuild(runner, location, args, undefined, engine);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuke-build/cli",
3
- "version": "2.9.1",
3
+ "version": "2.10.0",
4
4
  "description": "The zuke command-line tool — scaffold a Zuke project with `zuke setup`, including a starter build, launchers, and tasks.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/deno_path.js CHANGED
@@ -131,9 +131,9 @@ export class DenoNotFoundError extends Error {
131
131
  * @param tried The executables that were spawned and not found.
132
132
  */
133
133
  constructor(tried) {
134
- super(`zuke: running a build needs Deno, and none was found — tried ` +
135
- `${tried.join(", ")}. Install Deno (${DENO_INSTALL_DOCS}), or run the ` +
136
- `project's own ./zuke launcher, which installs a pinned Deno itself.`);
134
+ super(`zuke: this needs Deno, and none was found — tried ` +
135
+ `${tried.join(", ")}. Install Deno (${DENO_INSTALL_DOCS}); a Deno project's own ./zuke ` +
136
+ `launcher installs a pinned Deno itself.`);
137
137
  this.tried = tried;
138
138
  }
139
139
  }
package/src/upgrade.js CHANGED
@@ -276,8 +276,9 @@ export async function runUpgrade(args, log, host, paint) {
276
276
  throw new Error(`zuke upgrade: this zuke is a standalone binary (${source.location}), ` +
277
277
  "so reinstalling from JSR would not update it. Replace it with the " +
278
278
  `binary from ${RELEASES_URL}, or install with Homebrew (brew install ` +
279
- "zuke-build/tap/zuke), with Chocolatey (choco install zuke) or from " +
280
- `JSR (deno install -A -g -n zuke ${PACKAGE}).`);
279
+ "zuke-build/tap/zuke), with Chocolatey (choco install zuke), from npm " +
280
+ "(npm install -g @zuke-build/cli) or from JSR " +
281
+ `(deno install -A -g -n zuke ${PACKAGE}).`);
281
282
  }
282
283
  if (source.kind === "npm") {
283
284
  log("This zuke was installed from npm. Update it with: " +
package/src/version.js CHANGED
@@ -10,4 +10,4 @@
10
10
  * reads it — the annotation is what keeps that from mattering if it is ever
11
11
  * exported.
12
12
  */
13
- export const VERSION = "2.9.1"; // x-release-please-version
13
+ export const VERSION = "2.10.0"; // x-release-please-version