@zerolith/cli 0.1.0-alpha.5 → 0.1.0-alpha.5.canary.20261031.g3c0e1fb
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @zerolith/cli
|
|
2
2
|
|
|
3
|
-
The `zerolith` command line from npm: `new`, `dev`, which serves a project with its packages resolved from `node_modules` and forwards its API to a backend, `serve`, `build`, which bundles and minifies an application with Rolldown compiled into the binary, `preview`, `importmap`, and `doctor`. The binary is written in Rust; this package carries none itself and depends optionally on one package per platform, so npm installs only the binary that matches the machine.
|
|
3
|
+
The `zerolith` command line from npm: `new`, `dev`, which serves a project with its packages resolved from `node_modules` and forwards its API to a backend, `serve`, `build`, which bundles and minifies an application with Rolldown compiled into the binary, `preview`, `skill`, which writes the zerolith skill for coding agents into a project, `importmap`, and `doctor`. The binary is written in Rust; this package carries none itself and depends optionally on one package per platform, so npm installs only the binary that matches the machine.
|
|
4
4
|
|
|
5
5
|
Install it once and start a project. `new` asks a few questions, each with a default, writes the starter, and installs its dependencies, this package among them:
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ export function locate(host) {
|
|
|
37
37
|
return host.resolve(`${name}/${binaryName(host.platform)}`);
|
|
38
38
|
}
|
|
39
39
|
catch {
|
|
40
|
-
throw new Error(`${name}, the package that carries the zerolith binary for this platform, is not installed. Install @zerolith/cli without --omit=optional (its optional dependencies hold the binaries), or install ${name} directly. ${CARGO_HINT}`);
|
|
40
|
+
throw new Error(`${name}, the package that carries the zerolith binary for this platform, is not installed. Install @zerolith/cli without --omit=optional (its optional dependencies hold the binaries), or install ${name} directly. When npx ran this from a copy it cached before ${name} reached the registry, that copy lacks it: delete the _npx folder in npm's cache, which \`npm config get cache\` prints, and run the command again. ${CARGO_HINT}`);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,kFAAkF;AAClF,MAAM,CAAC,MAAM,SAAS,GAAqC;IACvD,cAAc,EAAE,4BAA4B;IAC5C,YAAY,EAAE,0BAA0B;IACxC,aAAa,EAAE,2BAA2B;IAC1C,WAAW,EAAE,yBAAyB;IACtC,aAAa,EAAE,2BAA2B;IAC1C,WAAW,EAAE,yBAAyB;CACzC,CAAC;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,UAAU,GACnB,6GAA6G,CAAC;AAelH,4CAA4C;AAC5C,MAAM,UAAU,UAAU,CAAC,QAAgB;IAEvC,OAAO,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC;AAC9D,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,eAAe,CAAC,QAAgB,EAAE,IAAY;IAE1D,OAAO,SAAS,CAAC,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,MAAM,CAAC,IAAU;IAE7B,IAAI,IAAI,CAAC,QAAQ,EACjB,CAAC;QACG,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,MAAM,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,EACnC,CAAC;QACG,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC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IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,EACnC,CAAC;QACG,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACzE,MAAM,IAAI,KAAK,CAAC,uCAAuC,GAAG,KAAK,UAAU,EAAE,CAAC,CAAC;IACjF,CAAC;IACD,IACA,CAAC;QACG,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,MACA,CAAC;QACG,MAAM,IAAI,KAAK,CACX,GAAG,IAAI,+LAA+L,IAAI,6DAA6D,IAAI,uJAAuJ,UAAU,EAAE,CACjb,CAAC;IACN,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerolith/cli",
|
|
3
|
-
"version": "0.1.0-alpha.5",
|
|
3
|
+
"version": "0.1.0-alpha.5.canary.20261031.g3c0e1fb",
|
|
4
4
|
"description": "The zerolith command line from npm: a production build that bundles and minifies, a dev server that serves TypeScript and JSX without a build step, import maps with integrity hashes, project checks, and the scaffold, as a prebuilt native binary for the platform npm installs on",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "molexxxx",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"build": "tsc -p tsconfig.build.json"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@zerolith/cli-darwin-arm64": "0.1.0-alpha.5",
|
|
46
|
-
"@zerolith/cli-darwin-x64": "0.1.0-alpha.5",
|
|
47
|
-
"@zerolith/cli-linux-arm64": "0.1.0-alpha.5",
|
|
48
|
-
"@zerolith/cli-linux-x64": "0.1.0-alpha.5",
|
|
49
|
-
"@zerolith/cli-win32-arm64": "0.1.0-alpha.5",
|
|
50
|
-
"@zerolith/cli-win32-x64": "0.1.0-alpha.5"
|
|
45
|
+
"@zerolith/cli-darwin-arm64": "0.1.0-alpha.5.canary.20261031.g3c0e1fb",
|
|
46
|
+
"@zerolith/cli-darwin-x64": "0.1.0-alpha.5.canary.20261031.g3c0e1fb",
|
|
47
|
+
"@zerolith/cli-linux-arm64": "0.1.0-alpha.5.canary.20261031.g3c0e1fb",
|
|
48
|
+
"@zerolith/cli-linux-x64": "0.1.0-alpha.5.canary.20261031.g3c0e1fb",
|
|
49
|
+
"@zerolith/cli-win32-arm64": "0.1.0-alpha.5.canary.20261031.g3c0e1fb",
|
|
50
|
+
"@zerolith/cli-win32-x64": "0.1.0-alpha.5.canary.20261031.g3c0e1fb"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/src/index.ts
CHANGED
|
@@ -64,7 +64,7 @@ export function locate(host: Host): string
|
|
|
64
64
|
catch
|
|
65
65
|
{
|
|
66
66
|
throw new Error(
|
|
67
|
-
`${name}, the package that carries the zerolith binary for this platform, is not installed. Install @zerolith/cli without --omit=optional (its optional dependencies hold the binaries), or install ${name} directly. ${CARGO_HINT}`,
|
|
67
|
+
`${name}, the package that carries the zerolith binary for this platform, is not installed. Install @zerolith/cli without --omit=optional (its optional dependencies hold the binaries), or install ${name} directly. When npx ran this from a copy it cached before ${name} reached the registry, that copy lacks it: delete the _npx folder in npm's cache, which \`npm config get cache\` prints, and run the command again. ${CARGO_HINT}`,
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
}
|