easy-soft-develop 2.1.130 → 2.1.135

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.130",
3
+ "version": "2.1.135",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -34,13 +34,15 @@ function createDevelopSubPathVersionNcuConfigFile(paths = []) {
34
34
  );
35
35
  }
36
36
 
37
- function getDevelopSubPathVersionNcuConfig() {
37
+ function getDevelopSubPathVersionNcuConfig(createFileWhenNoExist = false) {
38
38
  const developSubPathVersionNcuConfigFileExist = existFileSync(
39
39
  developSubPathVersionNcuConfigFilePath,
40
40
  );
41
41
 
42
42
  if (!developSubPathVersionNcuConfigFileExist) {
43
- createDevelopSubPathVersionNcuConfigFile([]);
43
+ if (createFileWhenNoExist) {
44
+ createDevelopSubPathVersionNcuConfigFile([]);
45
+ }
44
46
  }
45
47
 
46
48
  return {
@@ -114,7 +114,7 @@ function adjustMainPackageJsonScript({ scripts }) {
114
114
 
115
115
  const { paths = [] } = {
116
116
  paths: [],
117
- ...getDevelopSubPathVersionNcuConfig(),
117
+ ...getDevelopSubPathVersionNcuConfig(true),
118
118
  };
119
119
 
120
120
  loopPackage(paths, ({ name, path }) => {
@@ -1,2 +1,4 @@
1
1
  export function createDevelopSubPathVersionNcuConfigFile(paths?: any[]): void;
2
- export function getDevelopSubPathVersionNcuConfig(): any;
2
+ export function getDevelopSubPathVersionNcuConfig(
3
+ createFileWhenNoExist?: boolean,
4
+ ): any;