binzo-cli 0.0.1 → 0.0.3
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 +18 -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
|
|
@@ -173,6 +173,16 @@ The tag supplies the binary’s version, with a leading `v` removed from numeric
|
|
|
173
173
|
|
|
174
174
|
Publishing uses the built-in `GITHUB_TOKEN`; no additional secret is needed. Failed runs can be rerun from GitHub Actions: an unfinished draft is resumed, and an already published release is left intact.
|
|
175
175
|
|
|
176
|
+
### Rebuilding a release from main
|
|
177
|
+
|
|
178
|
+
To use the current `main` branch for an existing release tag, open **Actions → Release → Run workflow**, choose **main**, and enter the tag (for example, `v0.0.2`). Or run:
|
|
179
|
+
|
|
180
|
+
```sh
|
|
181
|
+
gh workflow run release.yml --ref main -f tag=v0.0.2
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
The manual trigger must first be committed and pushed to `main`. It checks and builds one fixed commit from `main`, uses the supplied tag as the binary version, and creates or updates that tag’s GitHub Release. Existing mutable release assets are replaced. The release notes record the actual build commit; the Git tag itself is not moved.
|
|
185
|
+
|
|
176
186
|
### Publishing to npm manually
|
|
177
187
|
|
|
178
188
|
npm publishing is separate from GitHub Actions. The eight binary packages live in `npm/` as npm workspaces. Keep their versions and the root package’s exact `optionalDependencies` versions aligned with the root `version`.
|
|
@@ -186,7 +196,7 @@ npm publish --workspaces
|
|
|
186
196
|
npm publish
|
|
187
197
|
```
|
|
188
198
|
|
|
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.
|
|
199
|
+
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
200
|
|
|
191
201
|
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
202
|
|
|
@@ -203,4 +213,8 @@ npm pack --dry-run
|
|
|
203
213
|
npm pack --workspace binzo-darwin-arm64 --dry-run
|
|
204
214
|
```
|
|
205
215
|
|
|
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).
|
|
216
|
+
`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).
|
|
217
|
+
|
|
218
|
+
## License
|
|
219
|
+
|
|
220
|
+
[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.3",
|
|
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.3",
|
|
50
|
+
"binzo-darwin-x64": "0.0.3",
|
|
51
|
+
"binzo-linux-arm64-gnu": "0.0.3",
|
|
52
|
+
"binzo-linux-arm64-musl": "0.0.3",
|
|
53
|
+
"binzo-linux-x64-gnu": "0.0.3",
|
|
54
|
+
"binzo-linux-x64-musl": "0.0.3",
|
|
55
|
+
"binzo-windows-arm64": "0.0.3",
|
|
56
|
+
"binzo-windows-x64": "0.0.3"
|
|
56
57
|
},
|
|
57
58
|
"engines": {
|
|
58
59
|
"node": ">=20"
|