easy-soft-develop 2.1.222 → 2.1.224

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/bin/cli.js CHANGED
@@ -53,15 +53,17 @@ program
53
53
  program
54
54
  .command('update-all-package-version')
55
55
  .description('update all package version for your project')
56
- .action(() => {
57
- updateAllPackageVersion.run();
56
+ .option('--autoInstall <bool>', 'show wait second info')
57
+ .action((a, o) => {
58
+ updateAllPackageVersion.run(a, o);
58
59
  });
59
60
 
60
61
  program
61
62
  .command('update-every-package-version')
62
63
  .description('update all package version for your project')
63
- .action(() => {
64
- updateEveryPackageVersion.run();
64
+ .option('--autoInstall <bool>', 'show wait second info')
65
+ .action((a, o) => {
66
+ updateEveryPackageVersion.run(a, o);
65
67
  });
66
68
 
67
69
  program
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-develop",
3
- "version": "2.1.222",
3
+ "version": "2.1.224",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -1,5 +1,9 @@
1
1
  const { updateAllPackageVersion } = require('../tools/package.update');
2
2
 
3
- exports.run = function () {
4
- updateAllPackageVersion();
3
+ exports.run = function (s, o) {
4
+ const {
5
+ _optionValues: { autoInstall = true },
6
+ } = o;
7
+
8
+ updateAllPackageVersion({ autoInstall: autoInstall || false });
5
9
  };
@@ -1,5 +1,9 @@
1
1
  const { updateEveryPackageVersion } = require('../tools/package.update');
2
2
 
3
- exports.run = function () {
4
- updateEveryPackageVersion();
3
+ exports.run = function (s, o) {
4
+ const {
5
+ _optionValues: { autoInstall = true },
6
+ } = o;
7
+
8
+ updateEveryPackageVersion({ autoInstall: autoInstall || false });
5
9
  };
@@ -143,7 +143,7 @@ const ncuScript = {
143
143
  'z:check:all-package-version': 'npx easy-soft-develop check-all-package-version',
144
144
  'z:check:every-package-version': 'npx easy-soft-develop check-every-package-version',
145
145
  'prez:update:all-package-version': 'node ./develop/assists/install.global.develop.dependence',
146
- 'z:update:all-package-version': 'npx easy-soft-develop update-all-package-version',
146
+ 'z:update:all-package-version': 'npx easy-soft-develop update-all-package-version --autoInstall false',
147
147
  'postz:update:all-package-version': 'npm run z:reinstall',
148
148
  'prez:update:every-package-version': 'node ./develop/assists/install.global.develop.dependence',
149
149
  'z:update:every-package-version': 'npx easy-soft-develop update-every-package-version',
@@ -45,7 +45,7 @@ function updateSpecialPackageVersion(packageList) {
45
45
  promptSuccess('check success');
46
46
  }
47
47
 
48
- function updateAllPackageVersion() {
48
+ function updateAllPackageVersion({ autoInstall = true }) {
49
49
  exec('npm run z:initial:environment');
50
50
 
51
51
  const ncuCommand = `npx npm-check-updates --configFilePath ./.ncurc.js --packageFile package.json --registry https://registry.npmjs.org --workspaces --root -u`;
@@ -56,10 +56,12 @@ function updateAllPackageVersion() {
56
56
 
57
57
  promptSuccess('update success, exec install with z:install');
58
58
 
59
- exec('npm run z:install');
59
+ if (autoInstall) {
60
+ exec('npm run z:install');
61
+ }
60
62
  }
61
63
 
62
- function updateEveryPackageVersion() {
64
+ function updateEveryPackageVersion({ autoInstall = true }) {
63
65
  exec('npm run z:initial:environment');
64
66
 
65
67
  const ncuCommand = `npx npm-check-updates --configFilePath ./.ncurc.js --packageFile package.json --registry https://registry.npmjs.org -u`;
@@ -72,7 +74,9 @@ function updateEveryPackageVersion() {
72
74
 
73
75
  promptSuccess('update success, exec install with z:install');
74
76
 
75
- exec('npm run z:install');
77
+ if (autoInstall) {
78
+ exec('npm run z:install');
79
+ }
76
80
  }
77
81
 
78
82
  function checkAllPackageVersion() {
@@ -87,8 +91,6 @@ function checkAllPackageVersion() {
87
91
  adjustMainPackageJsonByCommand(ncuCommand);
88
92
 
89
93
  promptSuccess('update success, exec install with z:install');
90
-
91
- exec('npm run z:install');
92
94
  }
93
95
 
94
96
  function checkEveryPackageVersion() {
@@ -105,8 +107,6 @@ function checkEveryPackageVersion() {
105
107
  adjustChildrenPackageJsonByCommand(ncuCommand);
106
108
 
107
109
  promptSuccess('update success, exec install with z:install');
108
-
109
- exec('npm run z:install');
110
110
  }
111
111
 
112
112
  module.exports = {
@@ -1 +1 @@
1
- export function run(): void;
1
+ export function run(s: any, o: any): void;
@@ -1 +1 @@
1
- export function run(): void;
1
+ export function run(s: any, o: any): void;
@@ -1,7 +1,15 @@
1
1
  export function checkAllPackageVersion(): void;
2
2
  export function checkEveryPackageVersion(): void;
3
- export function updateAllPackageVersion(): void;
4
- export function updateEveryPackageVersion(): void;
3
+ export function updateAllPackageVersion({
4
+ autoInstall,
5
+ }: {
6
+ autoInstall?: boolean | undefined;
7
+ }): void;
8
+ export function updateEveryPackageVersion({
9
+ autoInstall,
10
+ }: {
11
+ autoInstall?: boolean | undefined;
12
+ }): void;
5
13
  /**
6
14
  * update special package version
7
15
  * @param {Array} packageList