|
| 1 | +diff --git a/node_modules/release-it/config/release-it.json b/node_modules/release-it/config/release-it.json |
| 2 | +index 47d147d..b4e1794 100644 |
| 3 | +--- a/node_modules/release-it/config/release-it.json |
| 4 | ++++ b/node_modules/release-it/config/release-it.json |
| 5 | +@@ -20,13 +20,16 @@ |
| 6 | + "tagAnnotation": "Release ${version}", |
| 7 | + "tagArgs": [], |
| 8 | + "push": true, |
| 9 | +- "pushArgs": ["--follow-tags"], |
| 10 | ++ "pushArgs": [ |
| 11 | ++ "--follow-tags" |
| 12 | ++ ], |
| 13 | + "pushRepo": "" |
| 14 | + }, |
| 15 | + "npm": { |
| 16 | + "publish": true, |
| 17 | + "publishPath": ".", |
| 18 | + "publishArgs": [], |
| 19 | ++ "publishPackageManager": "npm", |
| 20 | + "tag": null, |
| 21 | + "otp": null, |
| 22 | + "ignoreVersion": false, |
| 23 | +diff --git a/node_modules/release-it/lib/plugin/npm/npm.js b/node_modules/release-it/lib/plugin/npm/npm.js |
| 24 | +index 0e7caa3..9501aa1 100644 |
| 25 | +--- a/node_modules/release-it/lib/plugin/npm/npm.js |
| 26 | ++++ b/node_modules/release-it/lib/plugin/npm/npm.js |
| 27 | +@@ -251,8 +251,10 @@ class npm extends Plugin { |
| 28 | + this.log.warn('Skip publish: package is private.'); |
| 29 | + return false; |
| 30 | + } |
| 31 | ++ |
| 32 | ++ const publishPackageManager = this.options.publishPackageManager || 'npm'; |
| 33 | + const args = [publishPath, `--tag ${tag}`, otpArg, dryRunArg, registryArg, ...fixArgs(publishArgs)].filter(Boolean); |
| 34 | +- return this.exec(`npm publish ${args.join(' ')}`, { options }) |
| 35 | ++ return this.exec(`${publishPackageManager} publish ${args.join(' ')}`, { options }) |
| 36 | + .then(() => { |
| 37 | + this.setContext({ isReleased: true }); |
| 38 | + }) |
| 39 | +diff --git a/node_modules/release-it/schema/npm.json b/node_modules/release-it/schema/npm.json |
| 40 | +index 8b6e7fb..f70dc5f 100644 |
| 41 | +--- a/node_modules/release-it/schema/npm.json |
| 42 | ++++ b/node_modules/release-it/schema/npm.json |
| 43 | +@@ -21,6 +21,10 @@ |
| 44 | + }, |
| 45 | + "default": [] |
| 46 | + }, |
| 47 | ++ "publishPackageManager": { |
| 48 | ++ "type": "string", |
| 49 | ++ "default": "npm" |
| 50 | ++ }, |
| 51 | + "tag": { |
| 52 | + "type": "string", |
| 53 | + "default": null |
0 commit comments