autorel 2.2.8-next.4 → 2.2.8-next.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/dist/index.js +3 -14
- package/dist/lib/sh.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -104,10 +104,7 @@ async function autorel(args) {
|
|
|
104
104
|
if (args.dryRun)
|
|
105
105
|
return;
|
|
106
106
|
if (args.preRun) {
|
|
107
|
-
output_1.default.log('Running pre-release bash script
|
|
108
|
-
output_1.default.log('----------------------------');
|
|
109
|
-
output_1.default.log(args.preRun);
|
|
110
|
-
output_1.default.log('----------------------------');
|
|
107
|
+
output_1.default.log('Running pre-release bash script...');
|
|
111
108
|
(0, sh_1.bash)(args.preRun);
|
|
112
109
|
}
|
|
113
110
|
git.createAndPushTag(nextTag);
|
|
@@ -129,10 +126,7 @@ async function autorel(args) {
|
|
|
129
126
|
process.env.NEXT_TAG = nextTag;
|
|
130
127
|
// run post-release bash script
|
|
131
128
|
if (args.run) {
|
|
132
|
-
output_1.default.log('Running post-release bash script
|
|
133
|
-
output_1.default.log('----------------------------');
|
|
134
|
-
output_1.default.log(args.run);
|
|
135
|
-
output_1.default.log('----------------------------');
|
|
129
|
+
output_1.default.log('Running post-release bash script...');
|
|
136
130
|
(0, sh_1.bash)(args.run);
|
|
137
131
|
}
|
|
138
132
|
else if (args.runScript) {
|
|
@@ -141,12 +135,7 @@ async function autorel(args) {
|
|
|
141
135
|
output_1.default.warn('🚨 The "runScript" option is deprecated. Please use "run" instead. 🚨');
|
|
142
136
|
output_1.default.warn('🚨 The "runScript" option will be removed in the next major version. 🚨');
|
|
143
137
|
output_1.default.warn('----------------------------');
|
|
144
|
-
output_1.default.log('Running post-release bash script
|
|
145
|
-
output_1.default.log('');
|
|
146
|
-
output_1.default.log('----------------------------');
|
|
147
|
-
output_1.default.log(args.runScript);
|
|
148
|
-
output_1.default.log('----------------------------');
|
|
149
|
-
output_1.default.log('');
|
|
138
|
+
output_1.default.log('Running post-release bash script...');
|
|
150
139
|
(0, sh_1.bash)(args.runScript);
|
|
151
140
|
}
|
|
152
141
|
return nextTag.replace('v', '');
|
package/dist/lib/sh.js
CHANGED
|
@@ -30,7 +30,7 @@ exports.$ = $;
|
|
|
30
30
|
*/
|
|
31
31
|
function bash(cmd) {
|
|
32
32
|
const escapedCommand = cmd.replace(/(["$`\\])/g, '\\$1');
|
|
33
|
-
(0, child_process_1.execSync)(`bash -c "${escapedCommand}"`, { encoding: 'utf8', stdio: 'inherit' });
|
|
33
|
+
(0, child_process_1.execSync)(`bash -e -c "${escapedCommand}"`, { encoding: 'utf8', stdio: 'inherit' });
|
|
34
34
|
}
|
|
35
35
|
exports.bash = bash;
|
|
36
36
|
//# sourceMappingURL=sh.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autorel",
|
|
3
|
-
"version": "2.2.8-next.
|
|
3
|
+
"version": "2.2.8-next.6",
|
|
4
4
|
"description": "Automate semantic releases based on conventional commits. Similar to semantic-release but much simpler.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc H. Weiner <mhweiner234@gmail.com> (https://mhweiner.com)",
|