@salang/sa 0.1.2 → 0.1.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/bin/sa.js +6 -0
- package/package.json +7 -7
package/bin/sa.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// optionalDependencies and exec its `sa` binary with inherited stdio.
|
|
5
5
|
// No runtime dependencies; works on Node >= 16.
|
|
6
6
|
const path = require('path');
|
|
7
|
+
const fs = require('fs');
|
|
7
8
|
const { spawnSync } = require('child_process');
|
|
8
9
|
|
|
9
10
|
const PLATFORMS = {
|
|
@@ -36,6 +37,11 @@ function main() {
|
|
|
36
37
|
);
|
|
37
38
|
process.exit(1);
|
|
38
39
|
}
|
|
40
|
+
// Tarballs packed on Windows lose the Unix exec bit (binaries land as
|
|
41
|
+
// 0644). Restore it before exec; harmless no-op where it doesn't apply.
|
|
42
|
+
try {
|
|
43
|
+
fs.chmodSync(binPath, 0o755);
|
|
44
|
+
} catch {}
|
|
39
45
|
const r = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
40
46
|
if (r.error) {
|
|
41
47
|
console.error(`@salang/sa: failed to run ${binPath}: ${r.error.message}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salang/sa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "SA (Safe ASM) toolchain: compiler, runtime and package manager for the SLA language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"LICENSE"
|
|
28
28
|
],
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@salang/sa-darwin-arm64": "0.1.
|
|
31
|
-
"@salang/sa-darwin-x64": "0.1.
|
|
32
|
-
"@salang/sa-freebsd-x64": "0.1.
|
|
33
|
-
"@salang/sa-linux-arm64": "0.1.
|
|
34
|
-
"@salang/sa-linux-x64": "0.1.
|
|
35
|
-
"@salang/sa-win32-x64": "0.1.
|
|
30
|
+
"@salang/sa-darwin-arm64": "0.1.3",
|
|
31
|
+
"@salang/sa-darwin-x64": "0.1.3",
|
|
32
|
+
"@salang/sa-freebsd-x64": "0.1.3",
|
|
33
|
+
"@salang/sa-linux-arm64": "0.1.3",
|
|
34
|
+
"@salang/sa-linux-x64": "0.1.3",
|
|
35
|
+
"@salang/sa-win32-x64": "0.1.3"
|
|
36
36
|
}
|
|
37
37
|
}
|