pybao-xc-sdk 1.5.102 → 1.5.105

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.
@@ -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.102",
3
+ "version": "1.5.105",
4
4
  "bin": {
5
5
  "pyb": "bin/pyb.js",
6
6
  "pyb-acp": "bin/pyb-acp.js"
@@ -217,14 +217,14 @@
217
217
  "parse5-htmlparser2-tree-adapter": "6.0.1"
218
218
  },
219
219
  "optionalDependencies": {
220
- "pyb-runtime-darwin-arm64": "1.5.102",
221
- "pyb-runtime-darwin-x64": "1.5.102",
222
- "pyb-runtime-linux-arm64-gnu": "1.5.102",
223
- "pyb-runtime-linux-armv7-gnueabihf": "1.5.102",
224
- "pyb-runtime-linux-x64-gnu": "1.5.102",
225
- "pyb-runtime-linux-x64-musl": "1.5.102",
226
- "pyb-runtime-win32-arm64-msvc": "1.5.102",
227
- "pyb-runtime-win32-x64-msvc": "1.5.102"
220
+ "pyb-runtime-darwin-arm64": "1.5.105",
221
+ "pyb-runtime-darwin-x64": "1.5.105",
222
+ "pyb-runtime-linux-arm64-gnu": "1.5.105",
223
+ "pyb-runtime-linux-armv7-gnueabihf": "1.5.105",
224
+ "pyb-runtime-linux-x64-gnu": "1.5.105",
225
+ "pyb-runtime-linux-x64-musl": "1.5.105",
226
+ "pyb-runtime-win32-arm64-msvc": "1.5.105",
227
+ "pyb-runtime-win32-x64-msvc": "1.5.105"
228
228
  },
229
229
  "pybRuntimePlatforms": [
230
230
  "win32-x64-msvc",
@@ -236,9 +236,9 @@
236
236
  "darwin-x64",
237
237
  "darwin-arm64"
238
238
  ],
239
- "pybOptionalRuntimeExternalModules": [
240
- "sharp"
241
- ],
239
+ "pybRuntimeBundledNodeModules": {
240
+ "sharp": "0.35.1"
241
+ },
242
242
  "pybNativeLockPlatforms": [
243
243
  "win32-x64-msvc",
244
244
  "win32-arm64-msvc",