@pisell/common 0.0.49 → 0.0.51

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.
@@ -179,7 +179,7 @@ function _init() {
179
179
  case 34:
180
180
  console.log('使用本地/dist');
181
181
  case 35:
182
- if (!(res.env === 'prod' || res.env === 'pre')) {
182
+ if (!(res.env === 'prod')) {
183
183
  _context.next = 44;
184
184
  break;
185
185
  }
@@ -323,7 +323,7 @@ var UploadCode = /*#__PURE__*/function () {
323
323
  while (1) switch (_context6.prev = _context6.next) {
324
324
  case 0:
325
325
  localPath = path.resolve(this.projectAbsolutePath, "".concat(this.currentVersion, ".zip"));
326
- remotePath = "/tmp/".concat(this.currentVersion, ".zip");
326
+ remotePath = "/tmp/".concat(this.projectName, "-").concat(this.currentVersion, ".zip");
327
327
  _context6.next = 4;
328
328
  return _serverUpload(this.conn, {
329
329
  localPath: localPath,
@@ -358,7 +358,7 @@ var UploadCode = /*#__PURE__*/function () {
358
358
  return _serverUnpack(this.conn, {
359
359
  path: this.outPath,
360
360
  fileName: "".concat(this.currentVersion),
361
- fullFileName: "".concat(this.currentVersion, ".zip"),
361
+ fullFileName: "".concat(this.projectName, "-").concat(this.currentVersion, ".zip"),
362
362
  changelog: this.changelog
363
363
  });
364
364
  case 2:
@@ -155,7 +155,7 @@ async function init() {
155
155
  } else {
156
156
  console.log("使用本地/dist");
157
157
  }
158
- if (res.env === "prod" || res.env === "pre") {
158
+ if (res.env === "prod") {
159
159
  let _fileName = res.project.fileName;
160
160
  await (0, import_aws.uploadStaticToOSS)(_fileName);
161
161
  const ossRes = await inquirerOss();
@@ -176,7 +176,7 @@ var UploadCode = class {
176
176
  this.projectAbsolutePath,
177
177
  `${this.currentVersion}.zip`
178
178
  );
179
- const remotePath = `/tmp/${this.currentVersion}.zip`;
179
+ const remotePath = `/tmp/${this.projectName}-${this.currentVersion}.zip`;
180
180
  return await (0, import_utils.serverUpload)(this.conn, { localPath, remotePath });
181
181
  }
182
182
  /**
@@ -188,7 +188,7 @@ var UploadCode = class {
188
188
  return await (0, import_utils.serverUnpack)(this.conn, {
189
189
  path: this.outPath,
190
190
  fileName: `${this.currentVersion}`,
191
- fullFileName: `${this.currentVersion}.zip`,
191
+ fullFileName: `${this.projectName}-${this.currentVersion}.zip`,
192
192
  changelog: this.changelog
193
193
  });
194
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/common",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "A collection of reusable UI components for web development",
5
5
  "license": "MIT",
6
6
  "sideEffects": [