easy-soft-develop 2.1.15 → 2.1.17

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
@@ -57,7 +57,7 @@ program
57
57
  .command('publish')
58
58
  .description('publish public packages to npm')
59
59
  .option('--packages <string>', 'the packages will publish')
60
- .option('--opt <boolean>', 'use npm one-time password', false)
60
+ .option('--otp <boolean>', 'use npm one-time password', false)
61
61
  .action((a, o) => {
62
62
  publishToNpm.run(a, o);
63
63
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-develop",
3
- "version": "2.1.15",
3
+ "version": "2.1.17",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -31,7 +31,7 @@
31
31
  "test:bin:code": "node ./bin/cli.js code --dataPath ./develop/generatorCodeSource/code.json",
32
32
  "test:bin:create-assist-scripts": "node ./bin/cli.js create-assist-scripts",
33
33
  "test:bin:create-lerna-project": "node ./bin/cli.js create-lerna-project",
34
- "test:bin:publish": "node ./bin/cli.js publish --packages ss --opt true",
34
+ "test:bin:publish": "node ./bin/cli.js publish --packages ss --otp true",
35
35
  "test:bin:sleep": "node ./bin/cli.js sleep --second 2 --showInfo true",
36
36
  "test:bin:update-all-package-version": "node ./bin/cli.js update-all-package-version",
37
37
  "test:commitRefresh": "node ./test/commitRefresh.test.js",
@@ -29,13 +29,13 @@ function publishToNpm(packages, o, useOpt, opt) {
29
29
  try {
30
30
  promptInfo(
31
31
  `package ${name}: npm publish --registry https://registry.npmjs.org/${
32
- useOpt ? ` --opt ${opt}` : ''
32
+ useOpt ? ` --otp ${opt}` : ''
33
33
  }`,
34
34
  );
35
35
 
36
36
  exec(
37
37
  `npm publish --registry https://registry.npmjs.org/${
38
- useOpt ? ` --opt ${opt}` : ''
38
+ useOpt ? ` --otp ${opt}` : ''
39
39
  }`,
40
40
  );
41
41
 
@@ -127,7 +127,7 @@ function adjustMainPackageJsonScript({ scripts }) {
127
127
  'z:build:all': 'echo please supplement build all packages commend',
128
128
  'z:publish:npm-all': `easy-soft-develop publish --packages ${publishPackageNameList.join(
129
129
  ',',
130
- )}${publishWithOpt ? ' --opt' : ''}`,
130
+ )}${publishWithOpt ? ' --otp true' : ''}`,
131
131
  },
132
132
  globalScript,
133
133
  originalScript || {},