@storm-software/git-tools 2.104.22 → 2.104.23
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/bin/{chunk-BJKNCMMM.js → chunk-E3OCSAJI.js} +14 -9
- package/bin/{chunk-V6NLMXSV.cjs → chunk-RW4Z2R6U.cjs} +14 -9
- package/bin/git.cjs +72 -72
- package/bin/git.js +1 -1
- 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 +1 -1
|
@@ -39707,7 +39707,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
39707
39707
|
"staging",
|
|
39708
39708
|
"production"
|
|
39709
39709
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
39710
|
-
workspaceRoot: z.string().trim().
|
|
39710
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
39711
39711
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
39712
39712
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
39713
39713
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -41018,7 +41018,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
41018
41018
|
}
|
|
41019
41019
|
}
|
|
41020
41020
|
}
|
|
41021
|
-
if (!config) {
|
|
41021
|
+
if (!config || Object.keys(config).length === 0) {
|
|
41022
41022
|
return void 0;
|
|
41023
41023
|
}
|
|
41024
41024
|
config.configFile = configFile;
|
|
@@ -41491,7 +41491,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
41491
41491
|
// ../config-tools/src/create-storm-config.ts
|
|
41492
41492
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
41493
41493
|
var _static_cache = void 0;
|
|
41494
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
41494
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
41495
41495
|
let result;
|
|
41496
41496
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
41497
41497
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -41499,13 +41499,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
|
|
|
41499
41499
|
_workspaceRoot = findWorkspaceRoot();
|
|
41500
41500
|
}
|
|
41501
41501
|
const configEnv = getConfigEnv();
|
|
41502
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
41503
41502
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
41504
|
-
if (!configFile
|
|
41505
|
-
|
|
41506
|
-
|
|
41507
|
-
|
|
41503
|
+
if (!configFile) {
|
|
41504
|
+
if (!skipLogs) {
|
|
41505
|
+
writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
41506
|
+
logLevel: "all"
|
|
41507
|
+
});
|
|
41508
|
+
}
|
|
41509
|
+
if (useDefault === false) {
|
|
41510
|
+
return void 0;
|
|
41511
|
+
}
|
|
41508
41512
|
}
|
|
41513
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
41509
41514
|
result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
|
|
41510
41515
|
result.workspaceRoot ??= _workspaceRoot;
|
|
41511
41516
|
} else {
|
|
@@ -41538,7 +41543,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
41538
41543
|
return extension;
|
|
41539
41544
|
}, "createConfigExtension");
|
|
41540
41545
|
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
41541
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
41546
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
|
|
41542
41547
|
setConfigEnv(config);
|
|
41543
41548
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
41544
41549
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
@@ -39707,7 +39707,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
39707
39707
|
"staging",
|
|
39708
39708
|
"production"
|
|
39709
39709
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
39710
|
-
workspaceRoot: z.string().trim().
|
|
39710
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
39711
39711
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
39712
39712
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
39713
39713
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -41021,7 +41021,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async
|
|
|
41021
41021
|
}
|
|
41022
41022
|
}
|
|
41023
41023
|
}
|
|
41024
|
-
if (!config) {
|
|
41024
|
+
if (!config || Object.keys(config).length === 0) {
|
|
41025
41025
|
return void 0;
|
|
41026
41026
|
}
|
|
41027
41027
|
config.configFile = configFile;
|
|
@@ -41494,7 +41494,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(v
|
|
|
41494
41494
|
// ../config-tools/src/create-storm-config.ts
|
|
41495
41495
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
41496
41496
|
var _static_cache = void 0;
|
|
41497
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
41497
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
41498
41498
|
let result;
|
|
41499
41499
|
if (!_optionalChain([_static_cache, 'optionalAccess', _154 => _154.data]) || !_optionalChain([_static_cache, 'optionalAccess', _155 => _155.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
41500
41500
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -41502,13 +41502,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(v
|
|
|
41502
41502
|
_workspaceRoot = findWorkspaceRoot();
|
|
41503
41503
|
}
|
|
41504
41504
|
const configEnv = getConfigEnv();
|
|
41505
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
41506
41505
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
41507
|
-
if (!configFile
|
|
41508
|
-
|
|
41509
|
-
|
|
41510
|
-
|
|
41506
|
+
if (!configFile) {
|
|
41507
|
+
if (!skipLogs) {
|
|
41508
|
+
writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
41509
|
+
logLevel: "all"
|
|
41510
|
+
});
|
|
41511
|
+
}
|
|
41512
|
+
if (useDefault === false) {
|
|
41513
|
+
return void 0;
|
|
41514
|
+
}
|
|
41511
41515
|
}
|
|
41516
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
41512
41517
|
result = await stormWorkspaceConfigSchema.parseAsync(_chunkDKTCGII6cjs.defu.call(void 0, configEnv, configFile, defaultConfig));
|
|
41513
41518
|
result.workspaceRoot ??= _workspaceRoot;
|
|
41514
41519
|
} else {
|
|
@@ -41541,7 +41546,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0
|
|
|
41541
41546
|
return extension;
|
|
41542
41547
|
}, "createConfigExtension");
|
|
41543
41548
|
var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
41544
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
41549
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
|
|
41545
41550
|
setConfigEnv(config);
|
|
41546
41551
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
41547
41552
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
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 _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.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 = _chunkRW4Z2R6Ucjs.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 = _chunkRW4Z2R6Ucjs.require_supports_color.call(void 0, );
|
|
15610
15610
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15611
15611
|
exports.colors = [
|
|
15612
15612
|
20,
|
|
@@ -67100,12 +67100,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0,
|
|
|
67100
67100
|
// src/commitlint/run.ts
|
|
67101
67101
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
67102
67102
|
var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (config, params) => {
|
|
67103
|
-
|
|
67103
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
67104
67104
|
let commitMessage;
|
|
67105
67105
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
67106
67106
|
commitMessage = params.message;
|
|
67107
67107
|
} else {
|
|
67108
|
-
const commitFile =
|
|
67108
|
+
const commitFile = _chunkRW4Z2R6Ucjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
67109
67109
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
67110
67110
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
|
|
67111
67111
|
}
|
|
@@ -67117,19 +67117,19 @@ var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async
|
|
|
67117
67117
|
if (upstreamRemote) {
|
|
67118
67118
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
|
|
67119
67119
|
if (!upstreamRemoteIdentifier) {
|
|
67120
|
-
|
|
67120
|
+
_chunkRW4Z2R6Ucjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
67121
67121
|
return;
|
|
67122
67122
|
}
|
|
67123
|
-
|
|
67123
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
67124
67124
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
67125
67125
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
67126
67126
|
} else {
|
|
67127
|
-
|
|
67127
|
+
_chunkRW4Z2R6Ucjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
67128
67128
|
return;
|
|
67129
67129
|
}
|
|
67130
67130
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
67131
67131
|
if (!commitMessage) {
|
|
67132
|
-
|
|
67132
|
+
_chunkRW4Z2R6Ucjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
67133
67133
|
return;
|
|
67134
67134
|
}
|
|
67135
67135
|
}
|
|
@@ -67147,7 +67147,7 @@ var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async
|
|
|
67147
67147
|
helpUrl: commitlintConfig.helpUrl
|
|
67148
67148
|
});
|
|
67149
67149
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
67150
|
-
|
|
67150
|
+
_chunkRW4Z2R6Ucjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
67151
67151
|
} else {
|
|
67152
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.";
|
|
67153
67153
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -68341,7 +68341,7 @@ var createState = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (c
|
|
|
68341
68341
|
answers: {}
|
|
68342
68342
|
};
|
|
68343
68343
|
} else {
|
|
68344
|
-
|
|
68344
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
68345
68345
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
68346
68346
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
|
|
68347
68347
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
|
|
@@ -68382,7 +68382,7 @@ var createState = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (c
|
|
|
68382
68382
|
}
|
|
68383
68383
|
if (project) {
|
|
68384
68384
|
let description = `${project.name} - ${project.root}`;
|
|
68385
|
-
const packageJsonPath =
|
|
68385
|
+
const packageJsonPath = _chunkRW4Z2R6Ucjs.joinPaths.call(void 0, project.root, "package.json");
|
|
68386
68386
|
if (await hfs.isFile(packageJsonPath)) {
|
|
68387
68387
|
const packageJson = await hfs.json(packageJsonPath);
|
|
68388
68388
|
description = packageJson.description || description;
|
|
@@ -68456,10 +68456,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
68456
68456
|
|
|
68457
68457
|
// src/commit/run.ts
|
|
68458
68458
|
var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
68459
|
-
const config = await
|
|
68459
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
68460
68460
|
const state = await createState(config, commitizenFile);
|
|
68461
68461
|
if (dryRun) {
|
|
68462
|
-
|
|
68462
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
68463
68463
|
}
|
|
68464
68464
|
console.log(chalk_template_default`
|
|
68465
68465
|
{bold.#999999 ----------------------------------------}
|
|
@@ -68469,7 +68469,7 @@ var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (com
|
|
|
68469
68469
|
`);
|
|
68470
68470
|
state.answers = await askQuestions(state);
|
|
68471
68471
|
const message2 = formatCommitMessage(state);
|
|
68472
|
-
const commitMsgFile =
|
|
68472
|
+
const commitMsgFile = _chunkRW4Z2R6Ucjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
68473
68473
|
console.log(chalk_template_default`
|
|
68474
68474
|
{bold.#999999 ----------------------------------------}
|
|
68475
68475
|
|
|
@@ -68493,8 +68493,8 @@ var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (com
|
|
|
68493
68493
|
]);
|
|
68494
68494
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
68495
68495
|
if (dryRun) {
|
|
68496
|
-
|
|
68497
|
-
|
|
68496
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
68497
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
68498
68498
|
} else {
|
|
68499
68499
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
68500
68500
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, command);
|
|
@@ -80887,7 +80887,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
|
|
|
80887
80887
|
|
|
80888
80888
|
// src/release/changelog.ts
|
|
80889
80889
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
80890
|
-
var chalk2 = _chunkUQVAG5OCcjs.__toESM.call(void 0,
|
|
80890
|
+
var chalk2 = _chunkUQVAG5OCcjs.__toESM.call(void 0, _chunkRW4Z2R6Ucjs.require_source.call(void 0, ), 1);
|
|
80891
80891
|
var import_enquirer = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_enquirer(), 1);
|
|
80892
80892
|
var import_semver2 = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_semver2(), 1);
|
|
80893
80893
|
var import_tmp = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_tmp2(), 1);
|
|
@@ -84527,7 +84527,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84527
84527
|
super(config);_class13.prototype.__init27.call(this);;
|
|
84528
84528
|
}
|
|
84529
84529
|
async render() {
|
|
84530
|
-
this.workspaceConfig = await
|
|
84530
|
+
this.workspaceConfig = await _chunkRW4Z2R6Ucjs.getWorkspaceConfig.call(void 0, );
|
|
84531
84531
|
return await super.render();
|
|
84532
84532
|
}
|
|
84533
84533
|
preprocessChanges() {
|
|
@@ -84701,7 +84701,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84701
84701
|
// src/release/changelog.ts
|
|
84702
84702
|
function createAPI(overrideReleaseConfig) {
|
|
84703
84703
|
return /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async function releaseChangelog(args) {
|
|
84704
|
-
const workspaceConfig = await
|
|
84704
|
+
const workspaceConfig = await _chunkRW4Z2R6Ucjs.getWorkspaceConfig.call(void 0, );
|
|
84705
84705
|
const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, {
|
|
84706
84706
|
exitOnError: true
|
|
84707
84707
|
});
|
|
@@ -85251,7 +85251,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
85251
85251
|
}
|
|
85252
85252
|
_chunkUQVAG5OCcjs.__name.call(void 0, applyChangesAndExit, "applyChangesAndExit");
|
|
85253
85253
|
async function generateChangelogForWorkspace({ tree, args, projectGraph, nxReleaseConfig, workspaceChangelogVersion, changes, commits }) {
|
|
85254
|
-
const workspaceConfig = await
|
|
85254
|
+
const workspaceConfig = await _chunkRW4Z2R6Ucjs.getWorkspaceConfig.call(void 0, );
|
|
85255
85255
|
if (!workspaceConfig) {
|
|
85256
85256
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85257
85257
|
}
|
|
@@ -85341,7 +85341,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
|
|
|
85341
85341
|
}
|
|
85342
85342
|
_chunkUQVAG5OCcjs.__name.call(void 0, generateChangelogForWorkspace, "generateChangelogForWorkspace");
|
|
85343
85343
|
async function generateChangelogForProjects({ tree, args, changes, projectsVersionData, releaseGroup, projects, nxReleaseConfig, projectToAdditionalDependencyBumps }) {
|
|
85344
|
-
const workspaceConfig = await
|
|
85344
|
+
const workspaceConfig = await _chunkRW4Z2R6Ucjs.getWorkspaceConfig.call(void 0, );
|
|
85345
85345
|
if (!workspaceConfig) {
|
|
85346
85346
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85347
85347
|
}
|
|
@@ -85647,13 +85647,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
85647
85647
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
85648
85648
|
async function releaseVersion(config, args) {
|
|
85649
85649
|
try {
|
|
85650
|
-
|
|
85650
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running release version command", config);
|
|
85651
85651
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
85652
85652
|
exitOnError: true
|
|
85653
85653
|
});
|
|
85654
85654
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
85655
85655
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85656
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => (
|
|
85656
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => ( _chunkRW4Z2R6Ucjs.findWorkspaceRoot.call(void 0, )));
|
|
85657
85657
|
if (args.verbose) {
|
|
85658
85658
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
85659
85659
|
}
|
|
@@ -85668,10 +85668,10 @@ async function releaseVersion(config, args) {
|
|
|
85668
85668
|
]);
|
|
85669
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".`);
|
|
85670
85670
|
}
|
|
85671
|
-
|
|
85671
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
85672
85672
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
85673
85673
|
if (filterError) {
|
|
85674
|
-
|
|
85674
|
+
_chunkRW4Z2R6Ucjs.writeError.call(void 0, filterError.title, config);
|
|
85675
85675
|
throw new Error(filterError.title);
|
|
85676
85676
|
}
|
|
85677
85677
|
const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
|
|
@@ -85680,10 +85680,10 @@ async function releaseVersion(config, args) {
|
|
|
85680
85680
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
85681
85681
|
const generatorCallbacks = [];
|
|
85682
85682
|
if (_optionalChain([args, 'access', _248 => _248.projects, 'optionalAccess', _249 => _249.length])) {
|
|
85683
|
-
|
|
85683
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
85684
85684
|
for (const releaseGroup of releaseGroups) {
|
|
85685
85685
|
const releaseGroupName = releaseGroup.name;
|
|
85686
|
-
|
|
85686
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
85687
85687
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
85688
85688
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
85689
85689
|
projectGraph,
|
|
@@ -85692,7 +85692,7 @@ async function releaseVersion(config, args) {
|
|
|
85692
85692
|
releaseGroupProjectNames
|
|
85693
85693
|
);
|
|
85694
85694
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
85695
|
-
|
|
85695
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
85696
85696
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
85697
85697
|
const generatorData = resolveGeneratorData({
|
|
85698
85698
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -85745,7 +85745,7 @@ async function releaseVersion(config, args) {
|
|
|
85745
85745
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _256 => _256.version, 'access', _257 => _257.git, 'access', _258 => _258.commitArgs])
|
|
85746
85746
|
});
|
|
85747
85747
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _259 => _259.version, 'access', _260 => _260.git, 'access', _261 => _261.stageChanges])))) {
|
|
85748
|
-
|
|
85748
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85749
85749
|
await _gitjs.gitAdd.call(void 0, {
|
|
85750
85750
|
changedFiles: changedFiles2,
|
|
85751
85751
|
dryRun: args.dryRun,
|
|
@@ -85753,7 +85753,7 @@ async function releaseVersion(config, args) {
|
|
|
85753
85753
|
});
|
|
85754
85754
|
}
|
|
85755
85755
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _262 => _262.version, 'access', _263 => _263.git, 'access', _264 => _264.tag])))) {
|
|
85756
|
-
|
|
85756
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85757
85757
|
for (const tag of gitTagValues2) {
|
|
85758
85758
|
await gitTag({
|
|
85759
85759
|
tag,
|
|
@@ -85840,7 +85840,7 @@ async function releaseVersion(config, args) {
|
|
|
85840
85840
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _280 => _280.version, 'access', _281 => _281.git, 'access', _282 => _282.commitArgs])
|
|
85841
85841
|
});
|
|
85842
85842
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _283 => _283.version, 'access', _284 => _284.git, 'access', _285 => _285.stageChanges])))) {
|
|
85843
|
-
|
|
85843
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85844
85844
|
await _gitjs.gitAdd.call(void 0, {
|
|
85845
85845
|
changedFiles,
|
|
85846
85846
|
dryRun: args.dryRun,
|
|
@@ -85848,7 +85848,7 @@ async function releaseVersion(config, args) {
|
|
|
85848
85848
|
});
|
|
85849
85849
|
}
|
|
85850
85850
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _286 => _286.version, 'access', _287 => _287.git, 'access', _288 => _288.tag])))) {
|
|
85851
|
-
|
|
85851
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85852
85852
|
for (const tag of gitTagValues) {
|
|
85853
85853
|
await gitTag({
|
|
85854
85854
|
tag,
|
|
@@ -85864,8 +85864,8 @@ async function releaseVersion(config, args) {
|
|
|
85864
85864
|
projectsVersionData: versionData
|
|
85865
85865
|
};
|
|
85866
85866
|
} catch (error) {
|
|
85867
|
-
|
|
85868
|
-
|
|
85867
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
|
|
85868
|
+
_chunkRW4Z2R6Ucjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
|
|
85869
85869
|
- Details: ${error.message}
|
|
85870
85870
|
- Stacktrace: ${error.stack}`, config);
|
|
85871
85871
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -85876,7 +85876,7 @@ async function releaseVersion(config, args) {
|
|
|
85876
85876
|
}
|
|
85877
85877
|
_chunkUQVAG5OCcjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
85878
85878
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
85879
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => (
|
|
85879
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => ( _chunkRW4Z2R6Ucjs.findWorkspaceRoot.call(void 0, )));
|
|
85880
85880
|
const generatorOptions = {
|
|
85881
85881
|
// Always ensure a string to avoid generator schema validation errors
|
|
85882
85882
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -85895,7 +85895,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
85895
85895
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
85896
85896
|
}
|
|
85897
85897
|
appendVersionData(versionData, versionResult.data);
|
|
85898
|
-
|
|
85898
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
85899
85899
|
return versionResult.callback;
|
|
85900
85900
|
}
|
|
85901
85901
|
_chunkUQVAG5OCcjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -85903,10 +85903,10 @@ function printAndFlushChanges2(config, tree, isDryRun) {
|
|
|
85903
85903
|
const changes = tree.listChanges();
|
|
85904
85904
|
for (const f of changes) {
|
|
85905
85905
|
if (f.type === "CREATE") {
|
|
85906
|
-
|
|
85906
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85907
85907
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _296 => _296.content, 'optionalAccess', _297 => _297.toString, 'call', _298 => _298()]) || "");
|
|
85908
85908
|
} else if (f.type === "UPDATE") {
|
|
85909
|
-
|
|
85909
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85910
85910
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
85911
85911
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _299 => _299.content, 'optionalAccess', _300 => _300.toString, 'call', _301 => _301()]) || "");
|
|
85912
85912
|
} else if (f.type === "DELETE") {
|
|
@@ -85978,12 +85978,12 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
85978
85978
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85979
85979
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85980
85980
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
85981
|
-
|
|
85981
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
85982
85982
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85983
|
-
|
|
85983
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
85984
85984
|
const to = options.head || process.env.NX_HEAD;
|
|
85985
85985
|
const from = options.base || process.env.NX_BASE;
|
|
85986
|
-
|
|
85986
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
85987
85987
|
- From: ${from}
|
|
85988
85988
|
- To: ${to}
|
|
85989
85989
|
`, config);
|
|
@@ -85995,14 +85995,14 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
85995
85995
|
}, {});
|
|
85996
85996
|
}
|
|
85997
85997
|
const nxReleaseConfig = _chunkDKTCGII6cjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
85998
|
-
|
|
85999
|
-
|
|
85998
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
85999
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
86000
86000
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
86001
86001
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
86002
|
-
|
|
86002
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
86003
86003
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
86004
86004
|
dryRun: false,
|
|
86005
|
-
verbose:
|
|
86005
|
+
verbose: _chunkRW4Z2R6Ucjs.isVerbose.call(void 0, config.logLevel),
|
|
86006
86006
|
preid: config.preid,
|
|
86007
86007
|
deleteVersionPlans: false,
|
|
86008
86008
|
stageChanges: true,
|
|
@@ -86014,25 +86014,25 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
86014
86014
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _307 => _307.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
86015
86015
|
versionData: projectsVersionData,
|
|
86016
86016
|
dryRun: false,
|
|
86017
|
-
verbose:
|
|
86017
|
+
verbose: _chunkRW4Z2R6Ucjs.isVerbose.call(void 0, config.logLevel),
|
|
86018
86018
|
to,
|
|
86019
86019
|
from,
|
|
86020
86020
|
gitCommit: true,
|
|
86021
86021
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
86022
86022
|
});
|
|
86023
|
-
|
|
86023
|
+
_chunkRW4Z2R6Ucjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
86024
86024
|
if (options.skipPublish) {
|
|
86025
|
-
|
|
86025
|
+
_chunkRW4Z2R6Ucjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
86026
86026
|
} else {
|
|
86027
86027
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _308 => _308[key], 'optionalAccess', _309 => _309.newVersion]));
|
|
86028
86028
|
if (changedProjects.length > 0) {
|
|
86029
|
-
|
|
86029
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
86030
86030
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
86031
86031
|
`, config);
|
|
86032
86032
|
const result2 = await releasePublish({
|
|
86033
86033
|
...options,
|
|
86034
86034
|
dryRun: !!options.dryRun,
|
|
86035
|
-
verbose:
|
|
86035
|
+
verbose: _chunkRW4Z2R6Ucjs.isVerbose.call(void 0, config.logLevel)
|
|
86036
86036
|
});
|
|
86037
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);
|
|
86038
86038
|
if (failedProjects.length > 0) {
|
|
@@ -86043,18 +86043,18 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
86043
86043
|
`);
|
|
86044
86044
|
}
|
|
86045
86045
|
} else {
|
|
86046
|
-
|
|
86046
|
+
_chunkRW4Z2R6Ucjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
86047
86047
|
}
|
|
86048
86048
|
}
|
|
86049
|
-
|
|
86049
|
+
_chunkRW4Z2R6Ucjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
86050
86050
|
}, "runRelease");
|
|
86051
86051
|
|
|
86052
86052
|
// src/cli/index.ts
|
|
86053
86053
|
var _config = {};
|
|
86054
86054
|
function createProgram(config) {
|
|
86055
86055
|
_config = config;
|
|
86056
|
-
|
|
86057
|
-
const root2 =
|
|
86056
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
86057
|
+
const root2 = _chunkRW4Z2R6Ucjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
86058
86058
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
86059
86059
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
86060
86060
|
if (root2) {
|
|
@@ -86084,14 +86084,14 @@ function createProgram(config) {
|
|
|
86084
86084
|
_chunkUQVAG5OCcjs.__name.call(void 0, createProgram, "createProgram");
|
|
86085
86085
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
86086
86086
|
try {
|
|
86087
|
-
|
|
86087
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
86088
86088
|
await runCommit(config, dryRun);
|
|
86089
|
-
|
|
86089
|
+
_chunkRW4Z2R6Ucjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
86090
86090
|
|
|
86091
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}
|
|
86092
86092
|
`, _config);
|
|
86093
86093
|
} catch (error) {
|
|
86094
|
-
|
|
86094
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
86095
86095
|
|
|
86096
86096
|
${error.message}`, _config);
|
|
86097
86097
|
throw new Error(error.message, {
|
|
@@ -86102,11 +86102,11 @@ ${error.message}`, _config);
|
|
|
86102
86102
|
_chunkUQVAG5OCcjs.__name.call(void 0, commitAction, "commitAction");
|
|
86103
86103
|
async function readmeAction(options) {
|
|
86104
86104
|
try {
|
|
86105
|
-
|
|
86105
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
86106
86106
|
await runReadme(options);
|
|
86107
|
-
|
|
86107
|
+
_chunkRW4Z2R6Ucjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
86108
86108
|
} catch (error) {
|
|
86109
|
-
|
|
86109
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
86110
86110
|
|
|
86111
86111
|
${error.message}`);
|
|
86112
86112
|
throw new Error(error.message, {
|
|
@@ -86117,16 +86117,16 @@ ${error.message}`);
|
|
|
86117
86117
|
_chunkUQVAG5OCcjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
86118
86118
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
86119
86119
|
try {
|
|
86120
|
-
|
|
86120
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
86121
86121
|
await runRelease(_config, {
|
|
86122
86122
|
dryRun,
|
|
86123
86123
|
project,
|
|
86124
86124
|
base,
|
|
86125
86125
|
head
|
|
86126
86126
|
});
|
|
86127
|
-
|
|
86127
|
+
_chunkRW4Z2R6Ucjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
86128
86128
|
} catch (error) {
|
|
86129
|
-
|
|
86129
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
86130
86130
|
|
|
86131
86131
|
${error.message} ${error.stack ? `
|
|
86132
86132
|
|
|
@@ -86140,15 +86140,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
|
|
|
86140
86140
|
_chunkUQVAG5OCcjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
86141
86141
|
async function commitLintAction({ config, message: message2, file }) {
|
|
86142
86142
|
try {
|
|
86143
|
-
|
|
86143
|
+
_chunkRW4Z2R6Ucjs.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);
|
|
86144
86144
|
await runCommitLint(_config, {
|
|
86145
86145
|
config,
|
|
86146
86146
|
message: message2,
|
|
86147
86147
|
file
|
|
86148
86148
|
});
|
|
86149
|
-
|
|
86149
|
+
_chunkRW4Z2R6Ucjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
86150
86150
|
} catch (error) {
|
|
86151
|
-
|
|
86151
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
86152
86152
|
|
|
86153
86153
|
${error.message}`, _config);
|
|
86154
86154
|
throw new Error(error.message, {
|
|
@@ -86160,15 +86160,15 @@ _chunkUQVAG5OCcjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
86160
86160
|
|
|
86161
86161
|
// bin/git.ts
|
|
86162
86162
|
void (async () => {
|
|
86163
|
-
const config = await
|
|
86163
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
86164
86164
|
try {
|
|
86165
|
-
|
|
86165
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
86166
86166
|
const program2 = createProgram(config);
|
|
86167
86167
|
await program2.parseAsync(process.argv);
|
|
86168
|
-
|
|
86169
|
-
|
|
86168
|
+
_chunkRW4Z2R6Ucjs.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
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
86170
86170
|
} catch (error) {
|
|
86171
|
-
|
|
86171
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
86172
86172
|
process.exit(1);
|
|
86173
86173
|
}
|
|
86174
86174
|
})();
|
package/bin/git.js
CHANGED
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.cjs');
|
|
17
17
|
require('./chunk-DKTCGII6.cjs');
|
|
18
18
|
require('./chunk-LTA6IYNE.cjs');
|
|
19
19
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
|
|
34
34
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkRW4Z2R6Ucjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.
|
|
39
39
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
40
|
-
|
|
40
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/post-checkout.js
CHANGED
package/bin/post-commit.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.cjs');
|
|
17
17
|
require('./chunk-DKTCGII6.cjs');
|
|
18
18
|
require('./chunk-LTA6IYNE.cjs');
|
|
19
19
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running post-commit hook...", config);
|
|
34
34
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkRW4Z2R6Ucjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.
|
|
39
39
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
40
|
-
|
|
40
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/post-commit.js
CHANGED
package/bin/post-merge.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.cjs');
|
|
17
17
|
require('./chunk-DKTCGII6.cjs');
|
|
18
18
|
require('./chunk-LTA6IYNE.cjs');
|
|
19
19
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
27
27
|
// bin/post-merge.ts
|
|
28
28
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running post-merge hook...", config);
|
|
34
34
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkRW4Z2R6Ucjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.
|
|
39
39
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
40
|
-
|
|
40
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/post-merge.js
CHANGED
package/bin/pre-commit.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _chunk27AR76DXcjs = require('./chunk-27AR76DX.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.cjs');
|
|
15
15
|
require('./chunk-DKTCGII6.cjs');
|
|
16
16
|
require('./chunk-LTA6IYNE.cjs');
|
|
17
17
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -25,19 +25,19 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunk27AR76DXcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
_chunkRW4Z2R6Ucjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
41
41
|
process.exit(1);
|
|
42
42
|
}
|
|
43
43
|
})();
|
package/bin/pre-commit.js
CHANGED
package/bin/pre-install.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.cjs');
|
|
13
13
|
require('./chunk-DKTCGII6.cjs');
|
|
14
14
|
require('./chunk-LTA6IYNE.cjs');
|
|
15
15
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -23,19 +23,19 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
39
39
|
process.exit(1);
|
|
40
40
|
}
|
|
41
41
|
})();
|
package/bin/pre-install.js
CHANGED
package/bin/pre-push.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.cjs');
|
|
18
18
|
require('./chunk-DKTCGII6.cjs');
|
|
19
19
|
require('./chunk-LTA6IYNE.cjs');
|
|
20
20
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -31,12 +31,12 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
31
31
|
var _promises = require('fs/promises');
|
|
32
32
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
33
33
|
void (async () => {
|
|
34
|
-
const config = await
|
|
34
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
|
|
40
40
|
const errors = [];
|
|
41
41
|
if (_fs2.default.existsSync(_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json"))) {
|
|
42
42
|
errors.push('Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"');
|
|
@@ -58,26 +58,26 @@ void (async () => {
|
|
|
58
58
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
59
59
|
}
|
|
60
60
|
if (errors.length > 0) {
|
|
61
|
-
|
|
61
|
+
_chunkRW4Z2R6Ucjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
|
|
62
62
|
for (const error of errors) {
|
|
63
63
|
console.error(error);
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkRW4Z2R6Ucjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
68
68
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
69
69
|
try {
|
|
70
70
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git-lfs version");
|
|
71
71
|
} catch (error) {
|
|
72
|
-
|
|
72
|
+
_chunkRW4Z2R6Ucjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.
|
|
73
73
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
74
|
-
|
|
74
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
81
81
|
process.exit(1);
|
|
82
82
|
}
|
|
83
83
|
})();
|
package/bin/pre-push.js
CHANGED
package/bin/prepare.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.cjs');
|
|
13
13
|
require('./chunk-DKTCGII6.cjs');
|
|
14
14
|
require('./chunk-LTA6IYNE.cjs');
|
|
15
15
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -23,17 +23,17 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkRW4Z2R6Ucjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkRW4Z2R6Ucjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
37
37
|
process.exit(1);
|
|
38
38
|
}
|
|
39
39
|
})();
|
package/bin/prepare.js
CHANGED
package/bin/version-warning.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var _chunk27AR76DXcjs = require('./chunk-27AR76DX.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkRW4Z2R6Ucjs = require('./chunk-RW4Z2R6U.cjs');
|
|
11
11
|
require('./chunk-DKTCGII6.cjs');
|
|
12
12
|
require('./chunk-LTA6IYNE.cjs');
|
|
13
13
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -21,13 +21,13 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkRW4Z2R6Ucjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkRW4Z2R6Ucjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkRW4Z2R6Ucjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkRW4Z2R6Ucjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED