@zuke-build/cli 2.9.0 → 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 +4 -3
- package/mod.js +15 -14
- package/package.json +1 -1
- package/src/deno_path.js +3 -3
- package/src/deno_pin.d.ts +4 -1
- package/src/deno_pin.js +11 -8
- package/src/upgrade.js +3 -2
- package/src/version.js +1 -1
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
|
-
|
|
8
|
-
zuke
|
|
9
|
-
zuke setup
|
|
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
|
|
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 (
|
|
309
|
-
upgrade [<version>] Reinstall
|
|
310
|
-
(Homebrew
|
|
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
|
|
313
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
657
|
-
//
|
|
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
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:
|
|
135
|
-
`${tried.join(", ")}. Install Deno (${DENO_INSTALL_DOCS})
|
|
136
|
-
`
|
|
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/deno_pin.d.ts
CHANGED
|
@@ -27,7 +27,10 @@ export interface DenoPin {
|
|
|
27
27
|
/** Lowercase hex SHA-256 of `deno-<target>.zip` for each supported target. */
|
|
28
28
|
readonly checksums: Readonly<Record<DenoTarget, string>>;
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* The Deno release the launchers bootstrap, with its verified checksums: the
|
|
32
|
+
* newest patch on Deno's 2.9 LTS line.
|
|
33
|
+
*/
|
|
31
34
|
export declare const DENO_PIN: DenoPin;
|
|
32
35
|
/** The release tag the pin downloads, e.g. `v2.8.3`. */
|
|
33
36
|
export declare function denoReleaseTag(pin: DenoPin): string;
|
package/src/deno_pin.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
// Copyright (c) 2026 the Zuke contributors
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
/* cspell:disable */
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* The Deno release the launchers bootstrap, with its verified checksums: the
|
|
6
|
+
* newest patch on Deno's 2.9 LTS line.
|
|
7
|
+
*/
|
|
5
8
|
export const DENO_PIN = {
|
|
6
|
-
version: "2.8
|
|
9
|
+
version: "2.9.8",
|
|
7
10
|
checksums: {
|
|
8
|
-
"x86_64-unknown-linux-gnu": "
|
|
9
|
-
"aarch64-unknown-linux-gnu": "
|
|
10
|
-
"x86_64-apple-darwin": "
|
|
11
|
-
"aarch64-apple-darwin": "
|
|
12
|
-
"x86_64-pc-windows-msvc": "
|
|
13
|
-
"aarch64-pc-windows-msvc": "
|
|
11
|
+
"x86_64-unknown-linux-gnu": "e890975bc2549807bbcc0b584ffafda72cc7c93349dd99c80483dd784f6c4609",
|
|
12
|
+
"aarch64-unknown-linux-gnu": "d49596c20b9788cf8f5d8ddf644103d4bde56ed239753f0bdb92ba9361d51905",
|
|
13
|
+
"x86_64-apple-darwin": "4b2f5edd2639b7470f034238b321d7002d8dfb4726d8558f52c17afac370eb2c",
|
|
14
|
+
"aarch64-apple-darwin": "9f0bf660393da2eaff044cdc7444cb08c73f235849b61d224d825a194ce7c98e",
|
|
15
|
+
"x86_64-pc-windows-msvc": "cba84b26e0df5ae7f74fc66b86a95b866872a86292ebd84fa1e959927edd93bf",
|
|
16
|
+
"aarch64-pc-windows-msvc": "b413b92b735b50c198e8fe3b85af1aa50e29d5f72e229aab701d132286e14cef",
|
|
14
17
|
},
|
|
15
18
|
};
|
|
16
19
|
/* cspell:enable */
|
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)
|
|
280
|
-
|
|
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