release-it 15.0.0-esm.5 → 15.0.0-esm.6

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.
Files changed (2) hide show
  1. package/lib/index.js +15 -13
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -93,24 +93,26 @@ const runTasks = async (opts, di) => {
93
93
  process.exit(0);
94
94
  }
95
95
 
96
- config.setContext(parseVersion(version));
96
+ if (version) {
97
+ config.setContext(parseVersion(version));
97
98
 
98
- if (config.isPromptOnlyVersion) {
99
- config.setCI(true);
100
- }
99
+ if (config.isPromptOnlyVersion) {
100
+ config.setCI(true);
101
+ }
101
102
 
102
- for (const hook of ['beforeBump', 'bump', 'beforeRelease']) {
103
- for (const plugin of plugins) {
104
- const args = hook === 'bump' ? [version] : [];
105
- await runLifeCycleHook(plugin, hook, ...args);
103
+ for (const hook of ['beforeBump', 'bump', 'beforeRelease']) {
104
+ for (const plugin of plugins) {
105
+ const args = hook === 'bump' ? [version] : [];
106
+ await runLifeCycleHook(plugin, hook, ...args);
107
+ }
106
108
  }
107
- }
108
109
 
109
- plugins = [...internal, ...external];
110
+ plugins = [...internal, ...external];
110
111
 
111
- for (const hook of ['release', 'afterRelease']) {
112
- for (const plugin of plugins) {
113
- await runLifeCycleHook(plugin, hook);
112
+ for (const hook of ['release', 'afterRelease']) {
113
+ for (const plugin of plugins) {
114
+ await runLifeCycleHook(plugin, hook);
115
+ }
114
116
  }
115
117
  }
116
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-it",
3
- "version": "15.0.0-esm.5",
3
+ "version": "15.0.0-esm.6",
4
4
  "description": "Generic CLI tool to automate versioning and package publishing related tasks.",
5
5
  "keywords": [
6
6
  "build",