@engramresearch/srun 0.1.0 → 0.1.1
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/package.json +1 -2
- package/npm/postinstall.js +0 -18
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ After publishing:
|
|
|
34
34
|
npm install -g @engramresearch/srun
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
Note: the npm package currently builds the Rust binary
|
|
37
|
+
Note: the npm package currently builds the Rust binary lazily on first run, so Rust/Cargo must be available on the target machine.
|
|
38
38
|
|
|
39
39
|
Or run during development:
|
|
40
40
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@engramresearch/srun",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Universal Smart Project Runner",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
7
7
|
"srun": "npm/srun.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"postinstall": "node npm/postinstall.js",
|
|
11
10
|
"build:binary": "cargo build --release",
|
|
12
11
|
"dev": "cargo run",
|
|
13
12
|
"build": "cargo build",
|
package/npm/postinstall.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const { spawnSync } = require("node:child_process");
|
|
2
|
-
const { resolve } = require("node:path");
|
|
3
|
-
|
|
4
|
-
const root = resolve(__dirname, "..");
|
|
5
|
-
|
|
6
|
-
const result = spawnSync("cargo", ["build", "--release"], {
|
|
7
|
-
cwd: root,
|
|
8
|
-
stdio: "inherit",
|
|
9
|
-
shell: process.platform === "win32",
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
if (result.error) {
|
|
13
|
-
console.error("srun: cargo is required to build the npm package binary.");
|
|
14
|
-
console.error(`srun: ${result.error.message}`);
|
|
15
|
-
process.exit(1);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
process.exit(result.status ?? 1);
|