@cloudbase/lowcode-builder 1.10.12-private.1.3.0-0 → 1.10.12-private.1.3.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.
@@ -280,7 +280,7 @@ async function installDependencies(targetDir, options = {}) {
280
280
  // TODO: install 失败 应该终止进程
281
281
  if (yarnExists && (options === null || options === void 0 ? void 0 : options.runtime) !== types_1.RUNTIME.CI) {
282
282
  const addPackage = packageName ? ['add', packageName] : [];
283
- installprocess = cross_spawn_1.default.sync('yarn', [...addPackage, registry], installProcessOptions);
283
+ installprocess = cross_spawn_1.default.sync('yarn', addPackage.concat(process.env.DRONE ? ['--prefer-offline'] : []).concat([registry]), installProcessOptions);
284
284
  }
285
285
  else {
286
286
  installprocess = cross_spawn_1.default.sync('npm', ['install', packageName, ...npmOptions], installProcessOptions);