@oj-bin/oj 0.1.13 → 0.1.16
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/package.json +4 -4
- package/postinstall.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oj-bin/oj",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "only-js (oj): low-code backend framework embedding a JS/TS runtime (V8) in Rust. Prebuilt binaries; install drops ./bin/oj + plugins + devkit into your project.",
|
|
5
5
|
"keywords": ["only-js", "oj", "low-code", "backend", "v8", "deno", "typescript"],
|
|
6
6
|
"homepage": "https://github.com/everpan/only-js",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"engines": { "node": ">=16" },
|
|
9
9
|
"scripts": { "postinstall": "node postinstall.js" },
|
|
10
10
|
"optionalDependencies": {
|
|
11
|
-
"@oj-bin/oj-x86_64-unknown-linux-gnu": "0.1.
|
|
12
|
-
"@oj-bin/oj-aarch64-apple-darwin": "0.1.
|
|
13
|
-
"@oj-bin/oj-x86_64-pc-windows-msvc": "0.1.
|
|
11
|
+
"@oj-bin/oj-x86_64-unknown-linux-gnu": "0.1.16",
|
|
12
|
+
"@oj-bin/oj-aarch64-apple-darwin": "0.1.16",
|
|
13
|
+
"@oj-bin/oj-x86_64-pc-windows-msvc": "0.1.16"
|
|
14
14
|
},
|
|
15
15
|
"files": ["postinstall.js", "README.md"]
|
|
16
16
|
}
|
package/postinstall.js
CHANGED
|
@@ -107,7 +107,9 @@ function installTree(srcDir, rel) {
|
|
|
107
107
|
|
|
108
108
|
let copied = 0;
|
|
109
109
|
try {
|
|
110
|
-
|
|
110
|
+
// Linux glibc 发行包额外带来 oj.bin(真实 ELF,由 oj 启动器调用)与 lib/(跟随发布的
|
|
111
|
+
// glibc 运行时);macOS / Windows 子包不含这两项,existsSync 为 false 时自动跳过。
|
|
112
|
+
for (const entry of ['oj', 'oj.bin', 'oj.exe', 'plugins', 'devkit', 'lib']) {
|
|
111
113
|
const s = path.join(subRoot, entry);
|
|
112
114
|
if (!fs.existsSync(s)) continue;
|
|
113
115
|
if (fs.statSync(s).isDirectory()) installTree(s, entry);
|