lightshortcuts 1.0.5 → 1.0.6

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/bin/lsc.js CHANGED
@@ -10,13 +10,16 @@ const { merge, getZipFileList } = require("../lib/utils");
10
10
  const fileExists = require("../lib/helpers/file-exists");
11
11
 
12
12
  // 读取发布配置文件
13
- const lscrcPath = path.join(process.env.HOME||process.env.USERPROFILE, ".lscrc.json");
13
+ const lscrcPath = path.join(
14
+ process.env.HOME || process.env.USERPROFILE,
15
+ ".lscrc.json"
16
+ );
14
17
  const defaultConfig = require("../lib/defaults");
15
18
  const { checkSession, initAxiosConfig } = require("../lib/core/API");
16
19
  // 主目录下登录配置文件
17
20
  let confPath = path.join(process.cwd(), "./lsc.config.json");
18
21
 
19
- program.version("0.0.4");
22
+ program.version("0.0.5");
20
23
 
21
24
  // 登录并保存token
22
25
  let lightBaseURL = "";
@@ -25,7 +28,7 @@ let loginQuestions = [
25
28
  type: "input",
26
29
  message: "请输入API前缀地址:",
27
30
  name: "lightBaseURL",
28
- default: lightBaseURL || defaultConfig.lightBaseURL,
31
+ default: ()=>lightBaseURL || defaultConfig.lightBaseURL,
29
32
  validate: async (url) => {
30
33
  lightBaseURL = url;
31
34
  return true;
@@ -55,6 +58,7 @@ const loginAction = async function () {
55
58
  if (!res) {
56
59
  // 已有API链接
57
60
  // loginQuestions.shift();
61
+ console.log(lscRc)
58
62
  } else {
59
63
  // token仍有效
60
64
  console.log("已登录");
package/index.js CHANGED
File without changes
package/lib/defaults.js CHANGED
File without changes
package/lib/shortcuts.js CHANGED
File without changes
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "inquirer": "^8.2.0",
10
10
  "qs": "^6.10.3"
11
11
  },
12
- "version": "1.0.5",
12
+ "version": "1.0.6",
13
13
  "description": "Light离线包自动发布工具",
14
14
  "main": "index.js",
15
15
  "devDependencies": {},