@storm-software/git-tools 2.104.20 → 2.104.22
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/README.md +1 -1
- package/bin/{chunk-JAFROF2D.js → chunk-BJKNCMMM.js} +12 -6
- package/bin/{chunk-ZMBKNBZ3.cjs → chunk-V6NLMXSV.cjs} +12 -6
- package/bin/git.cjs +117 -114
- package/bin/git.js +46 -43
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/package.json +4 -4
package/bin/git.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkV6NLMXSVcjs = require('./chunk-V6NLMXSV.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkDKTCGII6cjs = require('./chunk-DKTCGII6.cjs');
|
|
@@ -3264,7 +3264,7 @@ var require_wrap_ansi = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
3264
3264
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
3265
3265
|
var stringWidth = require_string_width();
|
|
3266
3266
|
var stripAnsi2 = require_strip_ansi();
|
|
3267
|
-
var ansiStyles2 =
|
|
3267
|
+
var ansiStyles2 = _chunkV6NLMXSVcjs.require_ansi_styles.call(void 0, );
|
|
3268
3268
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
3269
3269
|
"\x1B",
|
|
3270
3270
|
"\x9B"
|
|
@@ -15606,7 +15606,7 @@ var require_node = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
15606
15606
|
1
|
|
15607
15607
|
];
|
|
15608
15608
|
try {
|
|
15609
|
-
const supportsColor2 =
|
|
15609
|
+
const supportsColor2 = _chunkV6NLMXSVcjs.require_supports_color.call(void 0, );
|
|
15610
15610
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15611
15611
|
exports.colors = [
|
|
15612
15612
|
20,
|
|
@@ -47927,9 +47927,9 @@ var init_tslib_es6 = _chunkUQVAG5OCcjs.__esm.call(void 0, {
|
|
|
47927
47927
|
}
|
|
47928
47928
|
});
|
|
47929
47929
|
|
|
47930
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
47930
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/format-files.js
|
|
47931
47931
|
var require_format_files = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
47932
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
47932
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/format-files.js"(exports) {
|
|
47933
47933
|
"use strict";
|
|
47934
47934
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
47935
47935
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -47949,6 +47949,9 @@ var require_format_files = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
47949
47949
|
let prettier;
|
|
47950
47950
|
try {
|
|
47951
47951
|
prettier = await Promise.resolve().then(() => _chunkUQVAG5OCcjs.__require.call(void 0, "prettier"));
|
|
47952
|
+
if (!(0, devkit_internals_1.isUsingPrettierInTree)(tree)) {
|
|
47953
|
+
return;
|
|
47954
|
+
}
|
|
47952
47955
|
} catch (e2) {
|
|
47953
47956
|
}
|
|
47954
47957
|
if (options.sortRootTsconfigPaths) {
|
|
@@ -48030,9 +48033,9 @@ var require_format_files = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
48030
48033
|
}
|
|
48031
48034
|
});
|
|
48032
48035
|
|
|
48033
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
48036
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/binary-extensions.js
|
|
48034
48037
|
var require_binary_extensions = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
48035
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
48038
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/binary-extensions.js"(exports) {
|
|
48036
48039
|
"use strict";
|
|
48037
48040
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
48038
48041
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -49076,9 +49079,9 @@ var require_ejs = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
49076
49079
|
}
|
|
49077
49080
|
});
|
|
49078
49081
|
|
|
49079
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
49082
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/generate-files.js
|
|
49080
49083
|
var require_generate_files = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
49081
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
49084
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/generate-files.js"(exports) {
|
|
49082
49085
|
"use strict";
|
|
49083
49086
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
49084
49087
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -49172,9 +49175,9 @@ var require_generate_files = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
49172
49175
|
}
|
|
49173
49176
|
});
|
|
49174
49177
|
|
|
49175
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
49178
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/versions.js
|
|
49176
49179
|
var require_versions = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
49177
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
49180
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/versions.js"(exports) {
|
|
49178
49181
|
"use strict";
|
|
49179
49182
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
49180
49183
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -49185,9 +49188,9 @@ var require_versions = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
49185
49188
|
}
|
|
49186
49189
|
});
|
|
49187
49190
|
|
|
49188
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
49191
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/tasks/install-packages-task.js
|
|
49189
49192
|
var require_install_packages_task = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
49190
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
49193
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/tasks/install-packages-task.js"(exports) {
|
|
49191
49194
|
"use strict";
|
|
49192
49195
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
49193
49196
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -49221,9 +49224,9 @@ var require_install_packages_task = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
49221
49224
|
}
|
|
49222
49225
|
});
|
|
49223
49226
|
|
|
49224
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
49227
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/package-json.js
|
|
49225
49228
|
var require_package_json = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
49226
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
49229
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/package-json.js"(exports) {
|
|
49227
49230
|
"use strict";
|
|
49228
49231
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
49229
49232
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -49545,9 +49548,9 @@ var require_package_json = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
49545
49548
|
}
|
|
49546
49549
|
});
|
|
49547
49550
|
|
|
49548
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
49551
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/to-js.js
|
|
49549
49552
|
var require_to_js = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
49550
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
49553
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/to-js.js"(exports) {
|
|
49551
49554
|
"use strict";
|
|
49552
49555
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
49553
49556
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -49579,9 +49582,9 @@ var require_to_js = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
49579
49582
|
}
|
|
49580
49583
|
});
|
|
49581
49584
|
|
|
49582
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
49585
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js
|
|
49583
49586
|
var require_update_ts_configs_to_js = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
49584
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
49587
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js"(exports) {
|
|
49585
49588
|
"use strict";
|
|
49586
49589
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
49587
49590
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -49636,9 +49639,9 @@ var require_update_ts_configs_to_js = _chunkUQVAG5OCcjs.__commonJS.call(void 0,
|
|
|
49636
49639
|
}
|
|
49637
49640
|
});
|
|
49638
49641
|
|
|
49639
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
49642
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js
|
|
49640
49643
|
var require_run_tasks_in_serial = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
49641
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
49644
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js"(exports) {
|
|
49642
49645
|
"use strict";
|
|
49643
49646
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
49644
49647
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -50023,9 +50026,9 @@ var require_ignore = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
50023
50026
|
}
|
|
50024
50027
|
});
|
|
50025
50028
|
|
|
50026
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
50029
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js
|
|
50027
50030
|
var require_visit_not_ignored_files = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
50028
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
50031
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js"(exports) {
|
|
50029
50032
|
"use strict";
|
|
50030
50033
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
50031
50034
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -50069,9 +50072,9 @@ var require_visit_not_ignored_files = _chunkUQVAG5OCcjs.__commonJS.call(void 0,
|
|
|
50069
50072
|
}
|
|
50070
50073
|
});
|
|
50071
50074
|
|
|
50072
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
50075
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/executors/parse-target-string.js
|
|
50073
50076
|
var require_parse_target_string = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
50074
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
50077
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/executors/parse-target-string.js"(exports) {
|
|
50075
50078
|
"use strict";
|
|
50076
50079
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
50077
50080
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -50114,9 +50117,9 @@ var require_parse_target_string = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
50114
50117
|
}
|
|
50115
50118
|
});
|
|
50116
50119
|
|
|
50117
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
50120
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/executors/read-target-options.js
|
|
50118
50121
|
var require_read_target_options = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
50119
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
50122
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/executors/read-target-options.js"(exports) {
|
|
50120
50123
|
"use strict";
|
|
50121
50124
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
50122
50125
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -50146,9 +50149,9 @@ var require_read_target_options = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
50146
50149
|
}
|
|
50147
50150
|
});
|
|
50148
50151
|
|
|
50149
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
50152
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/names.js
|
|
50150
50153
|
var require_names = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
50151
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
50154
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/names.js"(exports) {
|
|
50152
50155
|
"use strict";
|
|
50153
50156
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
50154
50157
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -50189,9 +50192,9 @@ var require_names = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
50189
50192
|
}
|
|
50190
50193
|
});
|
|
50191
50194
|
|
|
50192
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
50195
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/get-workspace-layout.js
|
|
50193
50196
|
var require_get_workspace_layout = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
50194
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
50197
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/get-workspace-layout.js"(exports) {
|
|
50195
50198
|
"use strict";
|
|
50196
50199
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
50197
50200
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -50247,9 +50250,9 @@ var require_get_workspace_layout = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
50247
50250
|
}
|
|
50248
50251
|
});
|
|
50249
50252
|
|
|
50250
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
50253
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/string-change.js
|
|
50251
50254
|
var require_string_change = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
50252
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
50255
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/string-change.js"(exports) {
|
|
50253
50256
|
"use strict";
|
|
50254
50257
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
50255
50258
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -50333,9 +50336,9 @@ var require_string_change = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
50333
50336
|
}
|
|
50334
50337
|
});
|
|
50335
50338
|
|
|
50336
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
50339
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/offset-from-root.js
|
|
50337
50340
|
var require_offset_from_root = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
50338
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
50341
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/offset-from-root.js"(exports) {
|
|
50339
50342
|
"use strict";
|
|
50340
50343
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
50341
50344
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -50358,9 +50361,9 @@ var require_offset_from_root = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
50358
50361
|
}
|
|
50359
50362
|
});
|
|
50360
50363
|
|
|
50361
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
50364
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js
|
|
50362
50365
|
var require_invoke_nx_generator = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
50363
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
50366
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js"(exports) {
|
|
50364
50367
|
"use strict";
|
|
50365
50368
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
50366
50369
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -61732,9 +61735,9 @@ var require_cjs = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
61732
61735
|
}
|
|
61733
61736
|
});
|
|
61734
61737
|
|
|
61735
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
61738
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/convert-nx-executor.js
|
|
61736
61739
|
var require_convert_nx_executor = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
61737
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
61740
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/convert-nx-executor.js"(exports) {
|
|
61738
61741
|
"use strict";
|
|
61739
61742
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
61740
61743
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -61821,9 +61824,9 @@ var require_convert_nx_executor = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
61821
61824
|
}
|
|
61822
61825
|
});
|
|
61823
61826
|
|
|
61824
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
61827
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/move-dir.js
|
|
61825
61828
|
var require_move_dir = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
61826
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
61829
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/src/utils/move-dir.js"(exports) {
|
|
61827
61830
|
"use strict";
|
|
61828
61831
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
61829
61832
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -61852,9 +61855,9 @@ var require_move_dir = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
61852
61855
|
}
|
|
61853
61856
|
});
|
|
61854
61857
|
|
|
61855
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
61858
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/public-api.js
|
|
61856
61859
|
var require_public_api = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
61857
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
61860
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/public-api.js"(exports) {
|
|
61858
61861
|
"use strict";
|
|
61859
61862
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
61860
61863
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -62025,9 +62028,9 @@ var require_public_api = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
62025
62028
|
}
|
|
62026
62029
|
});
|
|
62027
62030
|
|
|
62028
|
-
// ../../node_modules/.pnpm/@nx+devkit@20.
|
|
62031
|
+
// ../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/index.js
|
|
62029
62032
|
var require_devkit = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
62030
|
-
"../../node_modules/.pnpm/@nx+devkit@20.
|
|
62033
|
+
"../../node_modules/.pnpm/@nx+devkit@20.8.0_nx@20.8.0_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_bd20000ef4ff80f47109509163a3e134/node_modules/@nx/devkit/index.js"(exports) {
|
|
62031
62034
|
"use strict";
|
|
62032
62035
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
62033
62036
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -67097,12 +67100,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0,
|
|
|
67097
67100
|
// src/commitlint/run.ts
|
|
67098
67101
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
67099
67102
|
var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (config, params) => {
|
|
67100
|
-
|
|
67103
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
67101
67104
|
let commitMessage;
|
|
67102
67105
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
67103
67106
|
commitMessage = params.message;
|
|
67104
67107
|
} else {
|
|
67105
|
-
const commitFile =
|
|
67108
|
+
const commitFile = _chunkV6NLMXSVcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
67106
67109
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
67107
67110
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
|
|
67108
67111
|
}
|
|
@@ -67114,19 +67117,19 @@ var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async
|
|
|
67114
67117
|
if (upstreamRemote) {
|
|
67115
67118
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
|
|
67116
67119
|
if (!upstreamRemoteIdentifier) {
|
|
67117
|
-
|
|
67120
|
+
_chunkV6NLMXSVcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
67118
67121
|
return;
|
|
67119
67122
|
}
|
|
67120
|
-
|
|
67123
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
67121
67124
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
67122
67125
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
67123
67126
|
} else {
|
|
67124
|
-
|
|
67127
|
+
_chunkV6NLMXSVcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
67125
67128
|
return;
|
|
67126
67129
|
}
|
|
67127
67130
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
67128
67131
|
if (!commitMessage) {
|
|
67129
|
-
|
|
67132
|
+
_chunkV6NLMXSVcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
67130
67133
|
return;
|
|
67131
67134
|
}
|
|
67132
67135
|
}
|
|
@@ -67144,7 +67147,7 @@ var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async
|
|
|
67144
67147
|
helpUrl: commitlintConfig.helpUrl
|
|
67145
67148
|
});
|
|
67146
67149
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
67147
|
-
|
|
67150
|
+
_chunkV6NLMXSVcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
67148
67151
|
} else {
|
|
67149
67152
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
67150
67153
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -68338,7 +68341,7 @@ var createState = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (c
|
|
|
68338
68341
|
answers: {}
|
|
68339
68342
|
};
|
|
68340
68343
|
} else {
|
|
68341
|
-
|
|
68344
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
68342
68345
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
68343
68346
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
|
|
68344
68347
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
|
|
@@ -68379,7 +68382,7 @@ var createState = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (c
|
|
|
68379
68382
|
}
|
|
68380
68383
|
if (project) {
|
|
68381
68384
|
let description = `${project.name} - ${project.root}`;
|
|
68382
|
-
const packageJsonPath =
|
|
68385
|
+
const packageJsonPath = _chunkV6NLMXSVcjs.joinPaths.call(void 0, project.root, "package.json");
|
|
68383
68386
|
if (await hfs.isFile(packageJsonPath)) {
|
|
68384
68387
|
const packageJson = await hfs.json(packageJsonPath);
|
|
68385
68388
|
description = packageJson.description || description;
|
|
@@ -68453,10 +68456,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
68453
68456
|
|
|
68454
68457
|
// src/commit/run.ts
|
|
68455
68458
|
var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
68456
|
-
const config = await
|
|
68459
|
+
const config = await _chunkV6NLMXSVcjs.getConfig.call(void 0, );
|
|
68457
68460
|
const state = await createState(config, commitizenFile);
|
|
68458
68461
|
if (dryRun) {
|
|
68459
|
-
|
|
68462
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
68460
68463
|
}
|
|
68461
68464
|
console.log(chalk_template_default`
|
|
68462
68465
|
{bold.#999999 ----------------------------------------}
|
|
@@ -68466,7 +68469,7 @@ var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (com
|
|
|
68466
68469
|
`);
|
|
68467
68470
|
state.answers = await askQuestions(state);
|
|
68468
68471
|
const message2 = formatCommitMessage(state);
|
|
68469
|
-
const commitMsgFile =
|
|
68472
|
+
const commitMsgFile = _chunkV6NLMXSVcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
68470
68473
|
console.log(chalk_template_default`
|
|
68471
68474
|
{bold.#999999 ----------------------------------------}
|
|
68472
68475
|
|
|
@@ -68490,8 +68493,8 @@ var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (com
|
|
|
68490
68493
|
]);
|
|
68491
68494
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
68492
68495
|
if (dryRun) {
|
|
68493
|
-
|
|
68494
|
-
|
|
68496
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
68497
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
68495
68498
|
} else {
|
|
68496
68499
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
68497
68500
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, command);
|
|
@@ -80884,7 +80887,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
|
|
|
80884
80887
|
|
|
80885
80888
|
// src/release/changelog.ts
|
|
80886
80889
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
80887
|
-
var chalk2 = _chunkUQVAG5OCcjs.__toESM.call(void 0,
|
|
80890
|
+
var chalk2 = _chunkUQVAG5OCcjs.__toESM.call(void 0, _chunkV6NLMXSVcjs.require_source.call(void 0, ), 1);
|
|
80888
80891
|
var import_enquirer = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_enquirer(), 1);
|
|
80889
80892
|
var import_semver2 = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_semver2(), 1);
|
|
80890
80893
|
var import_tmp = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_tmp2(), 1);
|
|
@@ -84524,7 +84527,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84524
84527
|
super(config);_class13.prototype.__init27.call(this);;
|
|
84525
84528
|
}
|
|
84526
84529
|
async render() {
|
|
84527
|
-
this.workspaceConfig = await
|
|
84530
|
+
this.workspaceConfig = await _chunkV6NLMXSVcjs.getWorkspaceConfig.call(void 0, );
|
|
84528
84531
|
return await super.render();
|
|
84529
84532
|
}
|
|
84530
84533
|
preprocessChanges() {
|
|
@@ -84698,7 +84701,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84698
84701
|
// src/release/changelog.ts
|
|
84699
84702
|
function createAPI(overrideReleaseConfig) {
|
|
84700
84703
|
return /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async function releaseChangelog(args) {
|
|
84701
|
-
const workspaceConfig = await
|
|
84704
|
+
const workspaceConfig = await _chunkV6NLMXSVcjs.getWorkspaceConfig.call(void 0, );
|
|
84702
84705
|
const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, {
|
|
84703
84706
|
exitOnError: true
|
|
84704
84707
|
});
|
|
@@ -85248,7 +85251,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
85248
85251
|
}
|
|
85249
85252
|
_chunkUQVAG5OCcjs.__name.call(void 0, applyChangesAndExit, "applyChangesAndExit");
|
|
85250
85253
|
async function generateChangelogForWorkspace({ tree, args, projectGraph, nxReleaseConfig, workspaceChangelogVersion, changes, commits }) {
|
|
85251
|
-
const workspaceConfig = await
|
|
85254
|
+
const workspaceConfig = await _chunkV6NLMXSVcjs.getWorkspaceConfig.call(void 0, );
|
|
85252
85255
|
if (!workspaceConfig) {
|
|
85253
85256
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85254
85257
|
}
|
|
@@ -85338,7 +85341,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
|
|
|
85338
85341
|
}
|
|
85339
85342
|
_chunkUQVAG5OCcjs.__name.call(void 0, generateChangelogForWorkspace, "generateChangelogForWorkspace");
|
|
85340
85343
|
async function generateChangelogForProjects({ tree, args, changes, projectsVersionData, releaseGroup, projects, nxReleaseConfig, projectToAdditionalDependencyBumps }) {
|
|
85341
|
-
const workspaceConfig = await
|
|
85344
|
+
const workspaceConfig = await _chunkV6NLMXSVcjs.getWorkspaceConfig.call(void 0, );
|
|
85342
85345
|
if (!workspaceConfig) {
|
|
85343
85346
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85344
85347
|
}
|
|
@@ -85644,13 +85647,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
85644
85647
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
85645
85648
|
async function releaseVersion(config, args) {
|
|
85646
85649
|
try {
|
|
85647
|
-
|
|
85650
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Running release version command", config);
|
|
85648
85651
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
85649
85652
|
exitOnError: true
|
|
85650
85653
|
});
|
|
85651
85654
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
85652
85655
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85653
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => (
|
|
85656
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => ( _chunkV6NLMXSVcjs.findWorkspaceRoot.call(void 0, )));
|
|
85654
85657
|
if (args.verbose) {
|
|
85655
85658
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
85656
85659
|
}
|
|
@@ -85665,10 +85668,10 @@ async function releaseVersion(config, args) {
|
|
|
85665
85668
|
]);
|
|
85666
85669
|
throw new Error(`The "release.git" property in nx.json may not be used with the "nx release version" subcommand or programmatic API. Instead, configure git options for subcommands directly with "release.version.git" and "release.changelog.git".`);
|
|
85667
85670
|
}
|
|
85668
|
-
|
|
85671
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
85669
85672
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
85670
85673
|
if (filterError) {
|
|
85671
|
-
|
|
85674
|
+
_chunkV6NLMXSVcjs.writeError.call(void 0, filterError.title, config);
|
|
85672
85675
|
throw new Error(filterError.title);
|
|
85673
85676
|
}
|
|
85674
85677
|
const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
|
|
@@ -85677,10 +85680,10 @@ async function releaseVersion(config, args) {
|
|
|
85677
85680
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
85678
85681
|
const generatorCallbacks = [];
|
|
85679
85682
|
if (_optionalChain([args, 'access', _248 => _248.projects, 'optionalAccess', _249 => _249.length])) {
|
|
85680
|
-
|
|
85683
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
85681
85684
|
for (const releaseGroup of releaseGroups) {
|
|
85682
85685
|
const releaseGroupName = releaseGroup.name;
|
|
85683
|
-
|
|
85686
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
85684
85687
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
85685
85688
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
85686
85689
|
projectGraph,
|
|
@@ -85689,7 +85692,7 @@ async function releaseVersion(config, args) {
|
|
|
85689
85692
|
releaseGroupProjectNames
|
|
85690
85693
|
);
|
|
85691
85694
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
85692
|
-
|
|
85695
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
85693
85696
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
85694
85697
|
const generatorData = resolveGeneratorData({
|
|
85695
85698
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -85742,7 +85745,7 @@ async function releaseVersion(config, args) {
|
|
|
85742
85745
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _256 => _256.version, 'access', _257 => _257.git, 'access', _258 => _258.commitArgs])
|
|
85743
85746
|
});
|
|
85744
85747
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _259 => _259.version, 'access', _260 => _260.git, 'access', _261 => _261.stageChanges])))) {
|
|
85745
|
-
|
|
85748
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85746
85749
|
await _gitjs.gitAdd.call(void 0, {
|
|
85747
85750
|
changedFiles: changedFiles2,
|
|
85748
85751
|
dryRun: args.dryRun,
|
|
@@ -85750,7 +85753,7 @@ async function releaseVersion(config, args) {
|
|
|
85750
85753
|
});
|
|
85751
85754
|
}
|
|
85752
85755
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _262 => _262.version, 'access', _263 => _263.git, 'access', _264 => _264.tag])))) {
|
|
85753
|
-
|
|
85756
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85754
85757
|
for (const tag of gitTagValues2) {
|
|
85755
85758
|
await gitTag({
|
|
85756
85759
|
tag,
|
|
@@ -85837,7 +85840,7 @@ async function releaseVersion(config, args) {
|
|
|
85837
85840
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _280 => _280.version, 'access', _281 => _281.git, 'access', _282 => _282.commitArgs])
|
|
85838
85841
|
});
|
|
85839
85842
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _283 => _283.version, 'access', _284 => _284.git, 'access', _285 => _285.stageChanges])))) {
|
|
85840
|
-
|
|
85843
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85841
85844
|
await _gitjs.gitAdd.call(void 0, {
|
|
85842
85845
|
changedFiles,
|
|
85843
85846
|
dryRun: args.dryRun,
|
|
@@ -85845,7 +85848,7 @@ async function releaseVersion(config, args) {
|
|
|
85845
85848
|
});
|
|
85846
85849
|
}
|
|
85847
85850
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _286 => _286.version, 'access', _287 => _287.git, 'access', _288 => _288.tag])))) {
|
|
85848
|
-
|
|
85851
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85849
85852
|
for (const tag of gitTagValues) {
|
|
85850
85853
|
await gitTag({
|
|
85851
85854
|
tag,
|
|
@@ -85861,8 +85864,8 @@ async function releaseVersion(config, args) {
|
|
|
85861
85864
|
projectsVersionData: versionData
|
|
85862
85865
|
};
|
|
85863
85866
|
} catch (error) {
|
|
85864
|
-
|
|
85865
|
-
|
|
85867
|
+
_chunkV6NLMXSVcjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
|
|
85868
|
+
_chunkV6NLMXSVcjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
|
|
85866
85869
|
- Details: ${error.message}
|
|
85867
85870
|
- Stacktrace: ${error.stack}`, config);
|
|
85868
85871
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -85873,7 +85876,7 @@ async function releaseVersion(config, args) {
|
|
|
85873
85876
|
}
|
|
85874
85877
|
_chunkUQVAG5OCcjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
85875
85878
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
85876
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => (
|
|
85879
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => ( _chunkV6NLMXSVcjs.findWorkspaceRoot.call(void 0, )));
|
|
85877
85880
|
const generatorOptions = {
|
|
85878
85881
|
// Always ensure a string to avoid generator schema validation errors
|
|
85879
85882
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -85892,7 +85895,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
85892
85895
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
85893
85896
|
}
|
|
85894
85897
|
appendVersionData(versionData, versionResult.data);
|
|
85895
|
-
|
|
85898
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
85896
85899
|
return versionResult.callback;
|
|
85897
85900
|
}
|
|
85898
85901
|
_chunkUQVAG5OCcjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -85900,10 +85903,10 @@ function printAndFlushChanges2(config, tree, isDryRun) {
|
|
|
85900
85903
|
const changes = tree.listChanges();
|
|
85901
85904
|
for (const f of changes) {
|
|
85902
85905
|
if (f.type === "CREATE") {
|
|
85903
|
-
|
|
85906
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85904
85907
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _296 => _296.content, 'optionalAccess', _297 => _297.toString, 'call', _298 => _298()]) || "");
|
|
85905
85908
|
} else if (f.type === "UPDATE") {
|
|
85906
|
-
|
|
85909
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85907
85910
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
85908
85911
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _299 => _299.content, 'optionalAccess', _300 => _300.toString, 'call', _301 => _301()]) || "");
|
|
85909
85912
|
} else if (f.type === "DELETE") {
|
|
@@ -85975,12 +85978,12 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
85975
85978
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85976
85979
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85977
85980
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
85978
|
-
|
|
85981
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
85979
85982
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85980
|
-
|
|
85983
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
85981
85984
|
const to = options.head || process.env.NX_HEAD;
|
|
85982
85985
|
const from = options.base || process.env.NX_BASE;
|
|
85983
|
-
|
|
85986
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
85984
85987
|
- From: ${from}
|
|
85985
85988
|
- To: ${to}
|
|
85986
85989
|
`, config);
|
|
@@ -85992,14 +85995,14 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
85992
85995
|
}, {});
|
|
85993
85996
|
}
|
|
85994
85997
|
const nxReleaseConfig = _chunkDKTCGII6cjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
85995
|
-
|
|
85996
|
-
|
|
85998
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
85999
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
85997
86000
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
85998
86001
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
85999
|
-
|
|
86002
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
86000
86003
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
86001
86004
|
dryRun: false,
|
|
86002
|
-
verbose:
|
|
86005
|
+
verbose: _chunkV6NLMXSVcjs.isVerbose.call(void 0, config.logLevel),
|
|
86003
86006
|
preid: config.preid,
|
|
86004
86007
|
deleteVersionPlans: false,
|
|
86005
86008
|
stageChanges: true,
|
|
@@ -86011,25 +86014,25 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
86011
86014
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _307 => _307.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
86012
86015
|
versionData: projectsVersionData,
|
|
86013
86016
|
dryRun: false,
|
|
86014
|
-
verbose:
|
|
86017
|
+
verbose: _chunkV6NLMXSVcjs.isVerbose.call(void 0, config.logLevel),
|
|
86015
86018
|
to,
|
|
86016
86019
|
from,
|
|
86017
86020
|
gitCommit: true,
|
|
86018
86021
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
86019
86022
|
});
|
|
86020
|
-
|
|
86023
|
+
_chunkV6NLMXSVcjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
86021
86024
|
if (options.skipPublish) {
|
|
86022
|
-
|
|
86025
|
+
_chunkV6NLMXSVcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
86023
86026
|
} else {
|
|
86024
86027
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _308 => _308[key], 'optionalAccess', _309 => _309.newVersion]));
|
|
86025
86028
|
if (changedProjects.length > 0) {
|
|
86026
|
-
|
|
86029
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
86027
86030
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
86028
86031
|
`, config);
|
|
86029
86032
|
const result2 = await releasePublish({
|
|
86030
86033
|
...options,
|
|
86031
86034
|
dryRun: !!options.dryRun,
|
|
86032
|
-
verbose:
|
|
86035
|
+
verbose: _chunkV6NLMXSVcjs.isVerbose.call(void 0, config.logLevel)
|
|
86033
86036
|
});
|
|
86034
86037
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _310 => _310[key], 'optionalAccess', _311 => _311.code]) && _optionalChain([result2, 'access', _312 => _312[key], 'optionalAccess', _313 => _313.code]) > 0);
|
|
86035
86038
|
if (failedProjects.length > 0) {
|
|
@@ -86040,18 +86043,18 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
86040
86043
|
`);
|
|
86041
86044
|
}
|
|
86042
86045
|
} else {
|
|
86043
|
-
|
|
86046
|
+
_chunkV6NLMXSVcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
86044
86047
|
}
|
|
86045
86048
|
}
|
|
86046
|
-
|
|
86049
|
+
_chunkV6NLMXSVcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
86047
86050
|
}, "runRelease");
|
|
86048
86051
|
|
|
86049
86052
|
// src/cli/index.ts
|
|
86050
86053
|
var _config = {};
|
|
86051
86054
|
function createProgram(config) {
|
|
86052
86055
|
_config = config;
|
|
86053
|
-
|
|
86054
|
-
const root2 =
|
|
86056
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
86057
|
+
const root2 = _chunkV6NLMXSVcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
86055
86058
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
86056
86059
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
86057
86060
|
if (root2) {
|
|
@@ -86081,14 +86084,14 @@ function createProgram(config) {
|
|
|
86081
86084
|
_chunkUQVAG5OCcjs.__name.call(void 0, createProgram, "createProgram");
|
|
86082
86085
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
86083
86086
|
try {
|
|
86084
|
-
|
|
86087
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
86085
86088
|
await runCommit(config, dryRun);
|
|
86086
|
-
|
|
86089
|
+
_chunkV6NLMXSVcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
86087
86090
|
|
|
86088
86091
|
Note: Please run "pnpm push" to upload these changes to the remote ${_config.name ? _config.name : _config.namespace ? _config.namespace : _config.organization ? _config.organization : "Storm-Software"} Git repository at ${_config.repository}
|
|
86089
86092
|
`, _config);
|
|
86090
86093
|
} catch (error) {
|
|
86091
|
-
|
|
86094
|
+
_chunkV6NLMXSVcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
86092
86095
|
|
|
86093
86096
|
${error.message}`, _config);
|
|
86094
86097
|
throw new Error(error.message, {
|
|
@@ -86099,11 +86102,11 @@ ${error.message}`, _config);
|
|
|
86099
86102
|
_chunkUQVAG5OCcjs.__name.call(void 0, commitAction, "commitAction");
|
|
86100
86103
|
async function readmeAction(options) {
|
|
86101
86104
|
try {
|
|
86102
|
-
|
|
86105
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
86103
86106
|
await runReadme(options);
|
|
86104
|
-
|
|
86107
|
+
_chunkV6NLMXSVcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
86105
86108
|
} catch (error) {
|
|
86106
|
-
|
|
86109
|
+
_chunkV6NLMXSVcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
86107
86110
|
|
|
86108
86111
|
${error.message}`);
|
|
86109
86112
|
throw new Error(error.message, {
|
|
@@ -86114,16 +86117,16 @@ ${error.message}`);
|
|
|
86114
86117
|
_chunkUQVAG5OCcjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
86115
86118
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
86116
86119
|
try {
|
|
86117
|
-
|
|
86120
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
86118
86121
|
await runRelease(_config, {
|
|
86119
86122
|
dryRun,
|
|
86120
86123
|
project,
|
|
86121
86124
|
base,
|
|
86122
86125
|
head
|
|
86123
86126
|
});
|
|
86124
|
-
|
|
86127
|
+
_chunkV6NLMXSVcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
86125
86128
|
} catch (error) {
|
|
86126
|
-
|
|
86129
|
+
_chunkV6NLMXSVcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
86127
86130
|
|
|
86128
86131
|
${error.message} ${error.stack ? `
|
|
86129
86132
|
|
|
@@ -86137,15 +86140,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
|
|
|
86137
86140
|
_chunkUQVAG5OCcjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
86138
86141
|
async function commitLintAction({ config, message: message2, file }) {
|
|
86139
86142
|
try {
|
|
86140
|
-
|
|
86143
|
+
_chunkV6NLMXSVcjs.writeInfo.call(void 0, `\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : _config.organization ? _config.organization : "Storm-Software"} repository's commit messages.`, _config);
|
|
86141
86144
|
await runCommitLint(_config, {
|
|
86142
86145
|
config,
|
|
86143
86146
|
message: message2,
|
|
86144
86147
|
file
|
|
86145
86148
|
});
|
|
86146
|
-
|
|
86149
|
+
_chunkV6NLMXSVcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
86147
86150
|
} catch (error) {
|
|
86148
|
-
|
|
86151
|
+
_chunkV6NLMXSVcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
86149
86152
|
|
|
86150
86153
|
${error.message}`, _config);
|
|
86151
86154
|
throw new Error(error.message, {
|
|
@@ -86157,15 +86160,15 @@ _chunkUQVAG5OCcjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
86157
86160
|
|
|
86158
86161
|
// bin/git.ts
|
|
86159
86162
|
void (async () => {
|
|
86160
|
-
const config = await
|
|
86163
|
+
const config = await _chunkV6NLMXSVcjs.getConfig.call(void 0, );
|
|
86161
86164
|
try {
|
|
86162
|
-
|
|
86165
|
+
_chunkV6NLMXSVcjs.handleProcess.call(void 0, config);
|
|
86163
86166
|
const program2 = createProgram(config);
|
|
86164
86167
|
await program2.parseAsync(process.argv);
|
|
86165
|
-
|
|
86166
|
-
|
|
86168
|
+
_chunkV6NLMXSVcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
86169
|
+
_chunkV6NLMXSVcjs.exitWithSuccess.call(void 0, config);
|
|
86167
86170
|
} catch (error) {
|
|
86168
|
-
|
|
86171
|
+
_chunkV6NLMXSVcjs.exitWithError.call(void 0, config);
|
|
86169
86172
|
process.exit(1);
|
|
86170
86173
|
}
|
|
86171
86174
|
})();
|