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
|
@@ -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
|
-
|
|
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
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function createDevelopSubPathVersionNcuConfigFile(): void;
|
|
1
|
+
export function createDevelopSubPathVersionNcuConfigFile(paths?: any[]): void;
|
|
2
2
|
export function getDevelopSubPathVersionNcuConfig(): any;
|