@ukibbb/buli 0.1.0 → 0.2.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 +1 -1
- package/install.mjs +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Installs the native Buli CLI for macOS or Linux from the matching GitHub
|
|
4
4
|
Release. The installer verifies the published SHA-256 checksum before placing
|
|
5
|
-
the executable and its private ripgrep
|
|
5
|
+
the executable and its private ripgrep and fd sidecars inside this npm package.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install --global @ukibbb/buli
|
package/install.mjs
CHANGED
|
@@ -66,7 +66,12 @@ export async function installBinary(options = {}) {
|
|
|
66
66
|
const bundle = join(extractionDirectory, `buli-${target}`);
|
|
67
67
|
const executable = join(bundle, "bin", "buli");
|
|
68
68
|
const ripgrep = join(bundle, "lib", "buli", "rg");
|
|
69
|
-
|
|
69
|
+
const fd = join(bundle, "lib", "buli", "fd");
|
|
70
|
+
await Promise.all([
|
|
71
|
+
chmod(executable, 0o755),
|
|
72
|
+
chmod(ripgrep, 0o755),
|
|
73
|
+
chmod(fd, 0o755),
|
|
74
|
+
]);
|
|
70
75
|
const installedVersion = (await run(executable, ["--version"], true)).trim();
|
|
71
76
|
if (installedVersion !== version) {
|
|
72
77
|
throw new Error(
|
|
@@ -75,6 +80,7 @@ export async function installBinary(options = {}) {
|
|
|
75
80
|
);
|
|
76
81
|
}
|
|
77
82
|
await run(ripgrep, ["--version"]);
|
|
83
|
+
await run(fd, ["--version"]);
|
|
78
84
|
await readFile(join(bundle, "THIRD_PARTY_LICENSES"));
|
|
79
85
|
|
|
80
86
|
const stagedDestination = join(temporaryDirectory, "vendor");
|