@wagq/wa-cli 0.6.36 → 0.6.37-beta.0

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.
@@ -4,30 +4,30 @@ const changesetDoc = (mode) => {
4
4
  let bins = [];
5
5
  switch (mode) {
6
6
  case "dev":
7
- bins.push('echo "准备启动文档预览 `n@author: wa 1224362143@qq.com"');
8
- bins.push("dumi dev");
7
+ bins.push("echo 准备启动文档预览 `n@author: wa 1224362143@qq.com");
8
+ bins.push("npx dumi dev");
9
9
  break;
10
10
  case "doc":
11
- bins.push('echo "准备构建文档 `n@author: wa 1224362143@qq.com"');
12
- bins.push("dumi build");
11
+ bins.push("echo 准备构建文档 `n@author: wa 1224362143@qq.com");
12
+ bins.push("npx dumi build");
13
13
  break;
14
14
  case "changeset":
15
- bins.push("changeset");
15
+ bins.push("npx changeset");
16
16
  break;
17
17
  case "ver":
18
- bins.push("changeset version");
18
+ bins.push("npx changeset version");
19
19
  break;
20
20
  case "turboBuild":
21
- bins.push('echo "准备打包 `n@author: wa 1224362143@qq.com"');
22
- bins.push("turbo build");
21
+ bins.push("echo 准备打包 `n@author: wa 1224362143@qq.com");
22
+ bins.push("npx turbo build");
23
23
  break;
24
24
  case "enterBeta":
25
- bins.push('echo "进入beta模式 `n@author: wa 1224362143@qq.com"');
26
- bins.push("changeset pre enter beta");
25
+ bins.push("echo 进入beta模式 `n@author: wa 1224362143@qq.com");
26
+ bins.push("npx changeset pre enter beta");
27
27
  break;
28
28
  case "exitBeta":
29
- bins.push('echo "退出beta模式 `n@author: wa 1224362143@qq.com"');
30
- bins.push("changeset pre exit");
29
+ bins.push("echo 退出beta模式 `n@author: wa 1224362143@qq.com");
30
+ bins.push("npx changeset pre exit");
31
31
  break;
32
32
  }
33
33
 
@@ -18,7 +18,8 @@ const settingsContent = {
18
18
  },
19
19
  };
20
20
 
21
- const initVsSetting = (targetDir = process.cwd()) => {
21
+ const initVsSetting = () => {
22
+ const targetDir = process.cwd()
22
23
  try {
23
24
  const vscodeDir = path.join(targetDir, ".vscode");
24
25
  const settingsPath = path.join(vscodeDir, "settings.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wagq/wa-cli",
3
- "version": "0.6.36",
3
+ "version": "0.6.37-beta.0",
4
4
  "description": "wa的脚手架",
5
5
  "main": "index.js",
6
6
  "scripts": {