@zwa73/dev-utils 1.0.68 → 1.0.69

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.
@@ -46,7 +46,7 @@ async function copyData() {
46
46
  return null;
47
47
  });
48
48
  await Promise.all(plist);
49
- await fs.promises.rename('./gitignore', 'gitignore');
49
+ await fs.promises.rename('./gitignore', './.gitignore');
50
50
  }
51
51
  /**对项目进行初始化 */
52
52
  const CmdInitElectron = (program) => program
@@ -58,7 +58,7 @@ const CmdInitElectron = (program) => program
58
58
  utils_1.SLogger.info(`开始初始化设置当前目录 ${RouteInterface_1.PROJECT_PATH}`);
59
59
  await Promise.all([
60
60
  copyData(),
61
- utils_1.UtilFunc.exec(`npm install --registry ${RouteInterface_1.MIRROR_SOURCE}`)
61
+ utils_1.UtilFunc.exec(`npm install`, { outlvl: 'info', errlvl: 'warn' })
62
62
  ]);
63
63
  });
64
64
  exports.CmdInitElectron = CmdInitElectron;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/dev-utils",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "编译与调试工具",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@ async function copyData() {
23
23
  return null;
24
24
  })
25
25
  await Promise.all(plist);
26
- await fs.promises.rename('./gitignore','gitignore');
26
+ await fs.promises.rename('./gitignore','./.gitignore');
27
27
  }
28
28
 
29
29
 
@@ -37,6 +37,6 @@ export const CmdInitElectron = (program:Command)=>program
37
37
  SLogger.info(`开始初始化设置当前目录 ${PROJECT_PATH}`);
38
38
  await Promise.all([
39
39
  copyData(),
40
- UtilFunc.exec(`npm install --registry ${MIRROR_SOURCE}`)
40
+ UtilFunc.exec(`npm install`,{outlvl:'info',errlvl:'warn'})
41
41
  ]);
42
42
  });