@pisell/common 3.0.5 → 3.0.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @pisell/common
2
2
 
3
+ ## 3.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 6c5bc9634: update
8
+
9
+ ## 3.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - f5ad04b73: saas_admin saas_shop 不上传 cdn
14
+
3
15
  ## 3.0.5
4
16
 
5
17
  ### Patch Changes
@@ -173,7 +173,7 @@ function _init() {
173
173
  if (_fileName === 'admin') {
174
174
  _fileName = 'my_pisell_v2';
175
175
  }
176
- if (!(_fileName !== 'xzero')) {
176
+ if (['xzero', 'saas_admin', 'saas_shop'].includes(_fileName)) {
177
177
  _context.next = 42;
178
178
  break;
179
179
  }
@@ -107,7 +107,7 @@ var UploadCode = /*#__PURE__*/function () {
107
107
  // );
108
108
  }
109
109
 
110
- if (this.env === 'prod' && this.projectName === 'xzero') {
110
+ if (this.env === 'prod' && ['xzero', 'saas_admin', 'saas_shop'].includes(this.projectName)) {
111
111
  serverConfig = serverConfigMap.aws.service[this.env];
112
112
  serverConfig.privateKey = fs.readFileSync(serverConfig.privateKey);
113
113
  }
@@ -153,7 +153,7 @@ async function init() {
153
153
  if (_fileName === "admin") {
154
154
  _fileName = "my_pisell_v2";
155
155
  }
156
- if (_fileName !== "xzero") {
156
+ if (!["xzero", "saas_admin", "saas_shop"].includes(_fileName)) {
157
157
  await (0, import_aws.uploadStaticToOSS)(_fileName);
158
158
  }
159
159
  }
@@ -85,7 +85,7 @@ var UploadCode = class {
85
85
  if (this.env === "prod") {
86
86
  serverConfig = this.setConfig(serverConfigMap["prod3"]);
87
87
  }
88
- if (this.env === "prod" && this.projectName === "xzero") {
88
+ if (this.env === "prod" && ["xzero", "saas_admin", "saas_shop"].includes(this.projectName)) {
89
89
  serverConfig = serverConfigMap.aws.service[this.env];
90
90
  serverConfig.privateKey = fs.readFileSync(serverConfig.privateKey);
91
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/common",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "sideEffects": [
5
5
  "*.less"
6
6
  ],
@@ -146,7 +146,7 @@ async function init() {
146
146
  if (_fileName === 'admin') {
147
147
  _fileName = 'my_pisell_v2'
148
148
  }
149
- if (_fileName !== 'xzero') {
149
+ if (!['xzero','saas_admin','saas_shop'].includes(_fileName)) {
150
150
  // 上传oss
151
151
  await uploadStaticToOSS(_fileName);
152
152
  }
@@ -86,7 +86,7 @@ class UploadCode {
86
86
  // );
87
87
  }
88
88
 
89
- if (this.env === 'prod' && this.projectName === 'xzero') {
89
+ if (this.env === 'prod' && ['xzero','saas_admin','saas_shop'].includes(this.projectName)) {
90
90
  serverConfig = serverConfigMap.aws.service[this.env];
91
91
  serverConfig.privateKey = fs.readFileSync(serverConfig.privateKey);
92
92
  }