@min-pack/qjs-ng 0.0.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 +3 -0
- package/bin.js +16 -0
- package/bin.qjsc.js +4 -0
- package/package.json +13 -0
- package/qjs-linux-amd64 +0 -0
- package/qjs-linux-x64 +0 -0
- package/qjs-ng.info +5 -0
- package/qjsc-linux-amd64 +0 -0
- package/qjsc-linux-x64 +0 -0
package/README.md
ADDED
package/bin.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const RUNTIME = `${process.platform}-${process.arch}`
|
|
4
|
+
if (![ 'linux-x64', 'linux-amd64' ].includes(RUNTIME)) {
|
|
5
|
+
console.error(`bad RUNTIME: ${RUNTIME}`)
|
|
6
|
+
process.exit(-1)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const { resolve } = require('node:path')
|
|
10
|
+
const { spawnSync } = require('node:child_process')
|
|
11
|
+
const [
|
|
12
|
+
, // node
|
|
13
|
+
, // script
|
|
14
|
+
...extraArgs
|
|
15
|
+
] = process.argv
|
|
16
|
+
spawnSync(resolve(__dirname, `${global.QJS_NG_BIN || 'qjs'}-${RUNTIME}`), extraArgs, { stdio: 'inherit' })
|
package/bin.qjsc.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@min-pack/qjs-ng",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Latest 'qjs' & 'qjsc' binaries from 'quickjs-ng'",
|
|
5
|
+
"bin": {
|
|
6
|
+
"qjs-ng": "bin.js",
|
|
7
|
+
"qjs": "bin.js",
|
|
8
|
+
"qjsc": "bin.qjsc.js"
|
|
9
|
+
},
|
|
10
|
+
"config": {
|
|
11
|
+
"RELEASE_NAME": "v0.12.1"
|
|
12
|
+
}
|
|
13
|
+
}
|
package/qjs-linux-amd64
ADDED
|
Binary file
|
package/qjs-linux-x64
ADDED
|
Binary file
|
package/qjs-ng.info
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
v0.12.1
|
|
2
|
+
https://github.com/quickjs-ng/quickjs/releases/download/v0.12.1/qjs-linux-aarch64
|
|
3
|
+
https://github.com/quickjs-ng/quickjs/releases/download/v0.12.1/qjs-linux-x86_64
|
|
4
|
+
https://github.com/quickjs-ng/quickjs/releases/download/v0.12.1/qjsc-linux-aarch64
|
|
5
|
+
https://github.com/quickjs-ng/quickjs/releases/download/v0.12.1/qjsc-linux-x86_64
|
package/qjsc-linux-amd64
ADDED
|
Binary file
|
package/qjsc-linux-x64
ADDED
|
Binary file
|