nuwaxcode 1.1.30 → 1.1.32
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/nuwaxcode +6 -4
- package/package.json +6 -6
- package/script/build.ts +2 -2
package/bin/nuwaxcode
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import childProcess from "child_process"
|
|
4
|
+
import fs from "fs"
|
|
5
|
+
import path from "path"
|
|
6
|
+
import os from "os"
|
|
7
|
+
import { fileURLToPath } from "url"
|
|
7
8
|
|
|
8
9
|
function run(target) {
|
|
9
10
|
const result = childProcess.spawnSync(target, process.argv.slice(2), {
|
|
@@ -22,6 +23,7 @@ if (envPath) {
|
|
|
22
23
|
run(envPath)
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
25
27
|
const scriptPath = fs.realpathSync(__filename)
|
|
26
28
|
const scriptDir = path.dirname(scriptPath)
|
|
27
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.32",
|
|
4
4
|
"name": "nuwaxcode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
"zod-to-json-schema": "3.24.5"
|
|
117
117
|
},
|
|
118
118
|
"optionalDependencies": {
|
|
119
|
-
"nuwaxcode-darwin-arm64": "1.1.
|
|
120
|
-
"nuwaxcode-darwin-x64": "1.1.
|
|
121
|
-
"nuwaxcode-linux-arm64": "1.1.
|
|
122
|
-
"nuwaxcode-linux-x64": "1.1.
|
|
123
|
-
"nuwaxcode-windows-x64": "1.1.
|
|
119
|
+
"nuwaxcode-darwin-arm64": "1.1.32",
|
|
120
|
+
"nuwaxcode-darwin-x64": "1.1.32",
|
|
121
|
+
"nuwaxcode-linux-arm64": "1.1.32",
|
|
122
|
+
"nuwaxcode-linux-x64": "1.1.32",
|
|
123
|
+
"nuwaxcode-windows-x64": "1.1.32"
|
|
124
124
|
}
|
|
125
125
|
}
|
package/script/build.ts
CHANGED
|
@@ -145,7 +145,7 @@ for (const item of targets) {
|
|
|
145
145
|
},
|
|
146
146
|
entrypoints: ["./src/index.ts", parserWorker, workerPath],
|
|
147
147
|
define: {
|
|
148
|
-
OPENCODE_VERSION: `'${
|
|
148
|
+
OPENCODE_VERSION: `'${pkg.version}'`,
|
|
149
149
|
OTUI_TREE_SITTER_WORKER_PATH: bunfsRoot + workerRelativePath,
|
|
150
150
|
OPENCODE_WORKER_PATH: workerPath,
|
|
151
151
|
OPENCODE_CHANNEL: `'${Script.channel}'`,
|
|
@@ -158,7 +158,7 @@ for (const item of targets) {
|
|
|
158
158
|
JSON.stringify(
|
|
159
159
|
{
|
|
160
160
|
name,
|
|
161
|
-
version:
|
|
161
|
+
version: pkg.version,
|
|
162
162
|
os: [item.os],
|
|
163
163
|
cpu: [item.arch],
|
|
164
164
|
},
|