pybao-xc-sdk 1.5.102 → 1.5.106
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/lib/runtime-resolver.cjs +4 -0
- package/package.json +14 -15
package/lib/runtime-resolver.cjs
CHANGED
|
@@ -113,11 +113,15 @@ function runResolvedBinary(options = {}) {
|
|
|
113
113
|
const passthroughArgs = Array.isArray(options.args) ? options.args : process.argv.slice(2)
|
|
114
114
|
const prependArgs = Array.isArray(options.prependArgs) ? options.prependArgs : []
|
|
115
115
|
const runtime = resolveRuntime(packageRoot)
|
|
116
|
+
const runtimeNodeModules = path.join(runtime.runtimeRoot, 'node_modules')
|
|
117
|
+
const pathDelimiter = process.platform === 'win32' ? ';' : ':'
|
|
118
|
+
const nodePath = process.env.NODE_PATH?.trim()
|
|
116
119
|
const env = {
|
|
117
120
|
...process.env,
|
|
118
121
|
PYB_RUNTIME_ROOT: runtime.runtimeRoot,
|
|
119
122
|
PYB_RUNTIME_EXECUTOR: runtime.source,
|
|
120
123
|
PYB_PACKAGED: process.env.PYB_PACKAGED || '1',
|
|
124
|
+
NODE_PATH: nodePath ? `${runtimeNodeModules}${pathDelimiter}${nodePath}` : runtimeNodeModules,
|
|
121
125
|
}
|
|
122
126
|
const result = spawnSync(runtime.binaryPath, [...prependArgs, ...passthroughArgs], {
|
|
123
127
|
stdio: 'inherit',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pybao-xc-sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.106",
|
|
4
4
|
"bin": {
|
|
5
5
|
"pyb": "bin/pyb.js",
|
|
6
6
|
"pyb-acp": "bin/pyb-acp.js"
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"cli-table3": "^0.6.5",
|
|
132
132
|
"commander": "^13.1.0",
|
|
133
133
|
"debug": "^4.4.1",
|
|
134
|
-
"diff": "^
|
|
134
|
+
"diff": "^8.0.4",
|
|
135
135
|
"dockerfile-language-server-nodejs": "0.15.0",
|
|
136
136
|
"dotenv": "^16.6.1",
|
|
137
137
|
"env-paths": "^3.0.0",
|
|
@@ -173,8 +173,7 @@
|
|
|
173
173
|
"which": "^6.0.0",
|
|
174
174
|
"wrap-ansi": "^9.0.0",
|
|
175
175
|
"yaml-language-server": "1.19.2",
|
|
176
|
-
"zod": "^3.
|
|
177
|
-
"zod-to-json-schema": "^3.24.6"
|
|
176
|
+
"zod": "^4.3.6"
|
|
178
177
|
},
|
|
179
178
|
"devDependencies": {
|
|
180
179
|
"@types/bun": "latest",
|
|
@@ -217,14 +216,14 @@
|
|
|
217
216
|
"parse5-htmlparser2-tree-adapter": "6.0.1"
|
|
218
217
|
},
|
|
219
218
|
"optionalDependencies": {
|
|
220
|
-
"pyb-runtime-darwin-arm64": "1.5.
|
|
221
|
-
"pyb-runtime-darwin-x64": "1.5.
|
|
222
|
-
"pyb-runtime-linux-arm64-gnu": "1.5.
|
|
223
|
-
"pyb-runtime-linux-armv7-gnueabihf": "1.5.
|
|
224
|
-
"pyb-runtime-linux-x64-gnu": "1.5.
|
|
225
|
-
"pyb-runtime-linux-x64-musl": "1.5.
|
|
226
|
-
"pyb-runtime-win32-arm64-msvc": "1.5.
|
|
227
|
-
"pyb-runtime-win32-x64-msvc": "1.5.
|
|
219
|
+
"pyb-runtime-darwin-arm64": "1.5.106",
|
|
220
|
+
"pyb-runtime-darwin-x64": "1.5.106",
|
|
221
|
+
"pyb-runtime-linux-arm64-gnu": "1.5.106",
|
|
222
|
+
"pyb-runtime-linux-armv7-gnueabihf": "1.5.106",
|
|
223
|
+
"pyb-runtime-linux-x64-gnu": "1.5.106",
|
|
224
|
+
"pyb-runtime-linux-x64-musl": "1.5.106",
|
|
225
|
+
"pyb-runtime-win32-arm64-msvc": "1.5.106",
|
|
226
|
+
"pyb-runtime-win32-x64-msvc": "1.5.106"
|
|
228
227
|
},
|
|
229
228
|
"pybRuntimePlatforms": [
|
|
230
229
|
"win32-x64-msvc",
|
|
@@ -236,9 +235,9 @@
|
|
|
236
235
|
"darwin-x64",
|
|
237
236
|
"darwin-arm64"
|
|
238
237
|
],
|
|
239
|
-
"
|
|
240
|
-
"sharp"
|
|
241
|
-
|
|
238
|
+
"pybRuntimeBundledNodeModules": {
|
|
239
|
+
"sharp": "0.35.1"
|
|
240
|
+
},
|
|
242
241
|
"pybNativeLockPlatforms": [
|
|
243
242
|
"win32-x64-msvc",
|
|
244
243
|
"win32-arm64-msvc",
|