@pisell/common 0.0.25 → 0.0.27

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.
@@ -261,7 +261,7 @@ function _updateVersion() {
261
261
  while (1) switch (_context2.prev = _context2.next) {
262
262
  case 0:
263
263
  host = {
264
- release: 'https://dev.pisellapi.com',
264
+ release: 'https://dev.pisellapi.cn',
265
265
  pre: 'https://pre.pisellapi.com',
266
266
  prod: 'https://pisellapi.com'
267
267
  };
@@ -111,7 +111,10 @@ var UploadCode = /*#__PURE__*/function () {
111
111
  case 21:
112
112
  serverConfig = this.setConfig(serverConfigMap[this.env]);
113
113
  if (this.env === 'prod') {
114
- serverConfig.privateKey = fs.readFileSync(path.join(process.env.HOME, '.ssh', 'id_rsa'));
114
+ serverConfig = this.setConfig(serverConfigMap['prod3']);
115
+ // serverConfig.privateKey = fs.readFileSync(
116
+ // path.join(process.env.HOME, '.ssh', 'id_rsa'),
117
+ // );
115
118
  }
116
119
 
117
120
  // 选择release默认用国内cn服务器
@@ -206,7 +206,7 @@ async function init() {
206
206
  }
207
207
  async function updateVersion(params, env) {
208
208
  const host = {
209
- release: "https://dev.pisellapi.com",
209
+ release: "https://dev.pisellapi.cn",
210
210
  pre: "https://pre.pisellapi.com",
211
211
  prod: "https://pisellapi.com"
212
212
  };
@@ -85,9 +85,7 @@ var UploadCode = class {
85
85
  }
86
86
  let serverConfig = this.setConfig(serverConfigMap[this.env]);
87
87
  if (this.env === "prod") {
88
- serverConfig.privateKey = fs.readFileSync(
89
- import_path.default.join(process.env.HOME, ".ssh", "id_rsa")
90
- );
88
+ serverConfig = this.setConfig(serverConfigMap["prod3"]);
91
89
  }
92
90
  if (this.env === "release") {
93
91
  serverConfig = this.setConfig(serverConfigMap.cn[this.env]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/common",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "A collection of reusable UI components for web development",
5
5
  "license": "MIT",
6
6
  "sideEffects": [