@widget-js/cli 1.2.4 → 1.2.5

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/index.js CHANGED
@@ -26,7 +26,7 @@ program.command("init").description("Initialize widget-js project").action(async
26
26
  var typeOption = new Option("-t, --type <type>").choices(["ftp", "oss"]);
27
27
  var fileOption = new Option("-f, --file <file>");
28
28
  program.command("release").description("\u901A\u8FC7FTP/OSS\u53D1\u5E03\u6587\u4EF6\uFF0C\u4EC5\u5185\u90E8\u4F7F\u7528").addOption(typeOption).addOption(fileOption).action(async (options, command) => {
29
- let release = await import("./release-NJG7IUNP.js");
29
+ let release = await import("./release-XUYU5WNC.js");
30
30
  await release.default(options);
31
31
  });
32
32
  program.parse(process.argv);
@@ -198,14 +198,14 @@ var release = async (options) => {
198
198
  updateWindowsApi: false,
199
199
  downloadLink: ""
200
200
  };
201
- let installerPath = path2.join(`./packaged/widgets-${version}-setup-win-x64.exe`);
201
+ let installerPath = path2.join(`./dist/widgets-${version}-setup-win-x64.exe`);
202
202
  if (!fs4.existsSync(installerPath)) {
203
- installerPath = path2.join(`./packaged/electron-${version}-setup-win-x64.exe`);
203
+ installerPath = path2.join(`./dist/electron-${version}-setup-win-x64.exe`);
204
204
  }
205
205
  if (!fs4.existsSync(installerPath)) {
206
- installerPath = path2.join(`./packaged/app-${version}-setup-win-x64.exe`);
206
+ installerPath = path2.join(`./dist/app-${version}-setup-win-x64.exe`);
207
207
  }
208
- const updateZipPath = path2.join(`./packaged/update.zip`);
208
+ const updateZipPath = path2.join(`./dist/update.zip`);
209
209
  console.log(chalk2.blue("\u538B\u7F29\u66F4\u65B0\u6587\u4EF6\u4E2D"));
210
210
  await update_zip_default("./release", updateZipPath);
211
211
  console.log(chalk2.blue("\u4E0A\u4F20installer.exe\u5230OSS"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widget-js/cli",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "main": "lib/index.js",
5
5
  "author": "Neo Fu",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "shelljs": "^0.8.5",
40
40
  "ssh2-sftp-client": "^9.1.0",
41
41
  "ws": "^8.11.0",
42
- "@widget-js/utils": "0.7.19"
42
+ "@widget-js/utils": "0.10.21"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/ali-oss": "^6.16.7",
@@ -62,7 +62,7 @@
62
62
  "vitest": "^0.34.6",
63
63
  "webpack": "^5.75.0",
64
64
  "webpack-cli": "^5.0.0",
65
- "@widget-js/core": "0.10.19"
65
+ "@widget-js/core": "0.11.12"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "rimraf ./lib/ && tsup-node src/index.ts --format esm",
@@ -73,6 +73,6 @@
73
73
  "widget:init": "node ./lib/index.js init",
74
74
  "widget:create": "npm run build && node ./lib/index.js create",
75
75
  "widget:local": "npm run build && node ./lib/index.js dependencies -t local",
76
- "pnpm:publish": "pnpm publish --no-git-checks"
76
+ "pnpm:publish": "npm run build && pnpm publish --no-git-checks"
77
77
  }
78
78
  }
@@ -45,14 +45,14 @@ const release = async (options: any) => {
45
45
  downloadLink: '',
46
46
  }
47
47
 
48
- let installerPath = path.join(`./packaged/widgets-${version}-setup-win-x64.exe`)
48
+ let installerPath = path.join(`./dist/widgets-${version}-setup-win-x64.exe`)
49
49
  if (!fs.existsSync(installerPath)) {
50
- installerPath = path.join(`./packaged/electron-${version}-setup-win-x64.exe`)
50
+ installerPath = path.join(`./dist/electron-${version}-setup-win-x64.exe`)
51
51
  }
52
52
  if (!fs.existsSync(installerPath)) {
53
- installerPath = path.join(`./packaged/app-${version}-setup-win-x64.exe`)
53
+ installerPath = path.join(`./dist/app-${version}-setup-win-x64.exe`)
54
54
  }
55
- const updateZipPath = path.join(`./packaged/update.zip`)
55
+ const updateZipPath = path.join(`./dist/update.zip`)
56
56
 
57
57
  console.log(chalk.blue('压缩更新文件中'))
58
58
  await zipDirectory('./release', updateZipPath)