binzo-cli 0.0.1 → 0.0.2
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/LICENSE +21 -0
- package/README.md +8 -4
- package/install.cjs +2 -2
- package/package.json +10 -9
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Binzo contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -5,12 +5,12 @@ Your tools, straight from the source. Install command-line tools from release do
|
|
|
5
5
|
Install with npm (Node.js 20 or newer; Bun is not required):
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install --global binzo
|
|
8
|
+
npm install --global binzo-cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
npm selects the binary package for your OS, architecture, and Linux libc. A one-time install script places that executable at npm’s command path. Running `binzo` then starts the native executable directly, without a Node launcher or wrapper process.
|
|
12
12
|
|
|
13
|
-
The `binzo` package contains the install script, README, and package metadata; each platform package contains its executable, README, and package metadata. Application source code, tests, and development tools are excluded from the published payload.
|
|
13
|
+
The `binzo-cli` package contains the install script, README, license, and package metadata; each platform package contains its executable, README, license, and package metadata. Application source code, tests, and development tools are excluded from the published payload.
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
16
|
binzo add aaif-goose/goose
|
|
@@ -186,7 +186,7 @@ npm publish --workspaces
|
|
|
186
186
|
npm publish
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
Each binary package’s `prepack` command builds its executable directly with Bun before packing or publishing. Publishing uses your local npm authentication and requires access to `binzo` and the eight unscoped `binzo-*` names. For prereleases, add `--tag next` to both publish commands.
|
|
189
|
+
Each binary package’s `prepack` command builds its executable directly with Bun before packing or publishing. Publishing uses your local npm authentication and requires access to `binzo-cli` and the eight unscoped `binzo-*` names. For prereleases, add `--tag next` to both publish commands.
|
|
190
190
|
|
|
191
191
|
To change a published binary, increment the version and rebuild; npm versions are immutable. If a publish is interrupted, publish the remaining workspaces individually with `npm publish --workspace <package-name>`.
|
|
192
192
|
|
|
@@ -203,4 +203,8 @@ npm pack --dry-run
|
|
|
203
203
|
npm pack --workspace binzo-darwin-arm64 --dry-run
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
`bun run build:npm` builds all platforms without publishing. npm installation requires optional dependencies and install scripts to be enabled. The install script only places the downloaded binary; it does not compile code or download additional files. If scripts were disabled, enable them and run `npm rebuild binzo` (`npm rebuild --global binzo` for a global installation).
|
|
206
|
+
`bun run build:npm` builds all platforms without publishing. npm installation requires optional dependencies and install scripts to be enabled. The install script only places the downloaded binary; it does not compile code or download additional files. If scripts were disabled, enable them and run `npm rebuild binzo-cli` (`npm rebuild --global binzo-cli` for a global installation).
|
|
207
|
+
|
|
208
|
+
## License
|
|
209
|
+
|
|
210
|
+
[MIT](LICENSE).
|
package/install.cjs
CHANGED
|
@@ -31,7 +31,7 @@ function resolveBinary() {
|
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
const { version } = require("./package.json");
|
|
34
|
+
const { name: packageName, version } = require("./package.json");
|
|
35
35
|
const name = `binzo-${platform}`;
|
|
36
36
|
const executable = process.platform === "win32" ? "binzo.exe" : "binzo";
|
|
37
37
|
|
|
@@ -44,7 +44,7 @@ function resolveBinary() {
|
|
|
44
44
|
return require.resolve(`${name}/bin/${executable}`);
|
|
45
45
|
} catch (cause) {
|
|
46
46
|
throw new Error(
|
|
47
|
-
`The Binzo binary package ${name}@${version} is missing or does not match this installation.\nReinstall with optional dependencies enabled:\n\n npm install --global
|
|
47
|
+
`The Binzo binary package ${name}@${version} is missing or does not match this installation.\nReinstall with optional dependencies enabled:\n\n npm install --global ${packageName}@${version} --include=optional\n\nFor a local project, omit --global. Avoid copying node_modules between different operating systems or CPU architectures.`,
|
|
48
48
|
{ cause },
|
|
49
49
|
);
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "binzo-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Your tools, straight from the source.",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git+https://github.com/darylcecile/binzo.git"
|
|
@@ -45,14 +46,14 @@
|
|
|
45
46
|
"yauzl": "^3.4.0"
|
|
46
47
|
},
|
|
47
48
|
"optionalDependencies": {
|
|
48
|
-
"binzo-darwin-arm64": "0.0.
|
|
49
|
-
"binzo-darwin-x64": "0.0.
|
|
50
|
-
"binzo-linux-arm64-gnu": "0.0.
|
|
51
|
-
"binzo-linux-arm64-musl": "0.0.
|
|
52
|
-
"binzo-linux-x64-gnu": "0.0.
|
|
53
|
-
"binzo-linux-x64-musl": "0.0.
|
|
54
|
-
"binzo-windows-arm64": "0.0.
|
|
55
|
-
"binzo-windows-x64": "0.0.
|
|
49
|
+
"binzo-darwin-arm64": "0.0.2",
|
|
50
|
+
"binzo-darwin-x64": "0.0.2",
|
|
51
|
+
"binzo-linux-arm64-gnu": "0.0.2",
|
|
52
|
+
"binzo-linux-arm64-musl": "0.0.2",
|
|
53
|
+
"binzo-linux-x64-gnu": "0.0.2",
|
|
54
|
+
"binzo-linux-x64-musl": "0.0.2",
|
|
55
|
+
"binzo-windows-arm64": "0.0.2",
|
|
56
|
+
"binzo-windows-x64": "0.0.2"
|
|
56
57
|
},
|
|
57
58
|
"engines": {
|
|
58
59
|
"node": ">=20"
|