easy-soft-develop 2.1.116 → 2.1.118

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-develop",
3
- "version": "2.1.116",
3
+ "version": "2.1.118",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -3,6 +3,7 @@ const {
3
3
  readJsonFileSync,
4
4
  existFileSync,
5
5
  mkdirSync,
6
+ isArray,
6
7
  } = require('../tools/meta');
7
8
 
8
9
  const developSubPathVersionNcu = {
@@ -12,14 +13,21 @@ const developSubPathVersionNcu = {
12
13
  const developSubPathVersionNcuConfigFilePath =
13
14
  './develop/config/develop.subPath.version.ncu.json';
14
15
 
15
- function createDevelopSubPathVersionNcuConfigFile() {
16
+ function createDevelopSubPathVersionNcuConfigFile(paths = []) {
16
17
  mkdirSync(`./develop`);
17
18
 
18
19
  mkdirSync(`./develop/config`);
19
20
 
21
+ let pathsAdjust = [
22
+ ...developSubPathVersionNcu.paths,
23
+ ...(isArray(paths) ? paths : []),
24
+ ];
25
+
20
26
  writeJsonFileSync(
21
27
  developSubPathVersionNcuConfigFilePath,
22
- developSubPathVersionNcu,
28
+ {
29
+ paths: pathsAdjust,
30
+ },
23
31
  {
24
32
  coverFile: false,
25
33
  },
@@ -32,7 +40,7 @@ function getDevelopSubPathVersionNcuConfig() {
32
40
  );
33
41
 
34
42
  if (!developSubPathVersionNcuConfigFileExist) {
35
- createDevelopSubPathVersionNcuConfigFile();
43
+ createDevelopSubPathVersionNcuConfigFile([]);
36
44
  }
37
45
 
38
46
  return {
@@ -203,7 +203,7 @@ function initialEnvironment() {
203
203
 
204
204
  createDevelopInitialEnvironmentConfigFile();
205
205
 
206
- createDevelopSubPathVersionNcuConfigFile();
206
+ createDevelopSubPathVersionNcuConfigFile(['packages']);
207
207
 
208
208
  promptSuccess(`step *: config environment`);
209
209
 
@@ -43,7 +43,7 @@ function loopPackage(callback = ({ name, absolutePath, relativePath }) => {}) {
43
43
  callback({
44
44
  name: file,
45
45
  absolutePath: itemPath,
46
- relativePath: `./packages/${file}`,
46
+ relativePath: `./${paths}/${file}`,
47
47
  });
48
48
  }
49
49
  });
@@ -1,2 +1,2 @@
1
- export function createDevelopSubPathVersionNcuConfigFile(): void;
1
+ export function createDevelopSubPathVersionNcuConfigFile(paths?: any[]): void;
2
2
  export function getDevelopSubPathVersionNcuConfig(): any;