xshell 1.0.153 → 1.0.154

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.
Files changed (2) hide show
  1. package/builder.js +1 -1
  2. package/package.json +1 -1
package/builder.js CHANGED
@@ -528,7 +528,7 @@ export class Bundler {
528
528
  async copy_files({ dependencies = this.dependencies, production = this.production, assets = this.assets, fpd_root = this.fpd_root, fpd_out = this.fpd_out, print = { info: true, files: false } } = {}) {
529
529
  if (print.info)
530
530
  console.log(`复制 ${this.name} 项目文件及依赖 -> ${this.fpd_out}`);
531
- if (dependencies)
531
+ if (dependencies.length)
532
532
  await fmkdir(`${fpd_out}vendors/`, { print: false });
533
533
  // 输出路径 -> 原路径,用来保证只复制一次且是同样的映射
534
534
  let records = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.153",
3
+ "version": "1.0.154",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {