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.
- package/lib/index.js +15 -13
- 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
|
-
|
|
96
|
+
if (version) {
|
|
97
|
+
config.setContext(parseVersion(version));
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
if (config.isPromptOnlyVersion) {
|
|
100
|
+
config.setCI(true);
|
|
101
|
+
}
|
|
101
102
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
110
|
+
plugins = [...internal, ...external];
|
|
110
111
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
|