@storm-software/git-tools 2.89.22 → 2.89.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/README.md +1 -1
- package/bin/{chunk-FHVPOT6G.js → chunk-FJHQPSYU.js} +8 -8
- package/bin/{chunk-WFAIEAPC.cjs → chunk-WIDIIDDQ.cjs} +8 -8
- package/bin/git.cjs +69 -69
- 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
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40125,55 +40125,55 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
|
|
|
40125
40125
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
40126
40126
|
return (message) => {
|
|
40127
40127
|
console.error(`
|
|
40128
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)}
|
|
40128
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40129
40129
|
`);
|
|
40130
40130
|
};
|
|
40131
40131
|
}
|
|
40132
40132
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
40133
40133
|
return (message) => {
|
|
40134
40134
|
console.error(`
|
|
40135
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)}
|
|
40135
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40136
40136
|
`);
|
|
40137
40137
|
};
|
|
40138
40138
|
}
|
|
40139
40139
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
40140
40140
|
return (message) => {
|
|
40141
40141
|
console.warn(`
|
|
40142
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)}
|
|
40142
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40143
40143
|
`);
|
|
40144
40144
|
};
|
|
40145
40145
|
}
|
|
40146
40146
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
40147
40147
|
return (message) => {
|
|
40148
40148
|
console.info(`
|
|
40149
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)}
|
|
40149
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40150
40150
|
`);
|
|
40151
40151
|
};
|
|
40152
40152
|
}
|
|
40153
40153
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
40154
40154
|
return (message) => {
|
|
40155
40155
|
console.info(`
|
|
40156
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)}
|
|
40156
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40157
40157
|
`);
|
|
40158
40158
|
};
|
|
40159
40159
|
}
|
|
40160
40160
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
40161
40161
|
return (message) => {
|
|
40162
40162
|
console.debug(`
|
|
40163
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)}
|
|
40163
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40164
40164
|
`);
|
|
40165
40165
|
};
|
|
40166
40166
|
}
|
|
40167
40167
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
40168
40168
|
return (message) => {
|
|
40169
40169
|
console.debug(`
|
|
40170
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)}
|
|
40170
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40171
40171
|
`);
|
|
40172
40172
|
};
|
|
40173
40173
|
}
|
|
40174
40174
|
return (message) => {
|
|
40175
40175
|
console.log(`
|
|
40176
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)}
|
|
40176
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40177
40177
|
`);
|
|
40178
40178
|
};
|
|
40179
40179
|
}, "getLogFn");
|
|
@@ -40125,55 +40125,55 @@ var getLogFn = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, (logLevel =
|
|
|
40125
40125
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
40126
40126
|
return (message) => {
|
|
40127
40127
|
console.error(`
|
|
40128
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)}
|
|
40128
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40129
40129
|
`);
|
|
40130
40130
|
};
|
|
40131
40131
|
}
|
|
40132
40132
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
40133
40133
|
return (message) => {
|
|
40134
40134
|
console.error(`
|
|
40135
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)}
|
|
40135
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40136
40136
|
`);
|
|
40137
40137
|
};
|
|
40138
40138
|
}
|
|
40139
40139
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
40140
40140
|
return (message) => {
|
|
40141
40141
|
console.warn(`
|
|
40142
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)}
|
|
40142
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40143
40143
|
`);
|
|
40144
40144
|
};
|
|
40145
40145
|
}
|
|
40146
40146
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
40147
40147
|
return (message) => {
|
|
40148
40148
|
console.info(`
|
|
40149
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)}
|
|
40149
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40150
40150
|
`);
|
|
40151
40151
|
};
|
|
40152
40152
|
}
|
|
40153
40153
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
40154
40154
|
return (message) => {
|
|
40155
40155
|
console.info(`
|
|
40156
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)}
|
|
40156
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40157
40157
|
`);
|
|
40158
40158
|
};
|
|
40159
40159
|
}
|
|
40160
40160
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
40161
40161
|
return (message) => {
|
|
40162
40162
|
console.debug(`
|
|
40163
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)}
|
|
40163
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40164
40164
|
`);
|
|
40165
40165
|
};
|
|
40166
40166
|
}
|
|
40167
40167
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
40168
40168
|
return (message) => {
|
|
40169
40169
|
console.debug(`
|
|
40170
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)}
|
|
40170
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40171
40171
|
`);
|
|
40172
40172
|
};
|
|
40173
40173
|
}
|
|
40174
40174
|
return (message) => {
|
|
40175
40175
|
console.log(`
|
|
40176
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)}
|
|
40176
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40177
40177
|
`);
|
|
40178
40178
|
};
|
|
40179
40179
|
}, "getLogFn");
|
package/bin/git.cjs
CHANGED
|
@@ -19,7 +19,7 @@ var _chunk7FWXX5NNcjs = require('./chunk-7FWXX5NN.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkF6YMONH3cjs = require('./chunk-F6YMONH3.cjs');
|
|
@@ -3262,7 +3262,7 @@ var require_wrap_ansi = _chunkEVP6BIDZcjs.__commonJS.call(void 0, {
|
|
|
3262
3262
|
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
3263
3263
|
var stringWidth = require_string_width();
|
|
3264
3264
|
var stripAnsi2 = require_strip_ansi();
|
|
3265
|
-
var ansiStyles2 =
|
|
3265
|
+
var ansiStyles2 = _chunkWIDIIDDQcjs.require_ansi_styles.call(void 0, );
|
|
3266
3266
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
3267
3267
|
"\x1B",
|
|
3268
3268
|
"\x9B"
|
|
@@ -15604,7 +15604,7 @@ var require_node = _chunkEVP6BIDZcjs.__commonJS.call(void 0, {
|
|
|
15604
15604
|
1
|
|
15605
15605
|
];
|
|
15606
15606
|
try {
|
|
15607
|
-
const supportsColor2 =
|
|
15607
|
+
const supportsColor2 = _chunkWIDIIDDQcjs.require_supports_color.call(void 0, );
|
|
15608
15608
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15609
15609
|
exports.colors = [
|
|
15610
15610
|
20,
|
|
@@ -50702,12 +50702,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0,
|
|
|
50702
50702
|
// src/commitlint/run.ts
|
|
50703
50703
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
50704
50704
|
var runCommitLint = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (config, params) => {
|
|
50705
|
-
|
|
50705
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
50706
50706
|
let commitMessage;
|
|
50707
50707
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
50708
50708
|
commitMessage = params.message;
|
|
50709
50709
|
} else {
|
|
50710
|
-
const commitFile =
|
|
50710
|
+
const commitFile = _chunkWIDIIDDQcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
50711
50711
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
50712
50712
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
|
|
50713
50713
|
}
|
|
@@ -50719,19 +50719,19 @@ var runCommitLint = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async
|
|
|
50719
50719
|
if (upstreamRemote) {
|
|
50720
50720
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
|
|
50721
50721
|
if (!upstreamRemoteIdentifier) {
|
|
50722
|
-
|
|
50722
|
+
_chunkWIDIIDDQcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
50723
50723
|
return;
|
|
50724
50724
|
}
|
|
50725
|
-
|
|
50725
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
50726
50726
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
50727
50727
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
50728
50728
|
} else {
|
|
50729
|
-
|
|
50729
|
+
_chunkWIDIIDDQcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
50730
50730
|
return;
|
|
50731
50731
|
}
|
|
50732
50732
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
50733
50733
|
if (!commitMessage) {
|
|
50734
|
-
|
|
50734
|
+
_chunkWIDIIDDQcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
50735
50735
|
return;
|
|
50736
50736
|
}
|
|
50737
50737
|
}
|
|
@@ -50749,7 +50749,7 @@ var runCommitLint = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async
|
|
|
50749
50749
|
helpUrl: commitlintConfig.helpUrl
|
|
50750
50750
|
});
|
|
50751
50751
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
50752
|
-
|
|
50752
|
+
_chunkWIDIIDDQcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
50753
50753
|
} else {
|
|
50754
50754
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
50755
50755
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -51943,7 +51943,7 @@ var createState = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (c
|
|
|
51943
51943
|
answers: {}
|
|
51944
51944
|
};
|
|
51945
51945
|
} else {
|
|
51946
|
-
|
|
51946
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
51947
51947
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
51948
51948
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
|
|
51949
51949
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
|
|
@@ -51984,7 +51984,7 @@ var createState = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (c
|
|
|
51984
51984
|
}
|
|
51985
51985
|
if (project) {
|
|
51986
51986
|
let description = `${project.name} - ${project.root}`;
|
|
51987
|
-
const packageJsonPath =
|
|
51987
|
+
const packageJsonPath = _chunkWIDIIDDQcjs.joinPaths.call(void 0, project.root, "package.json");
|
|
51988
51988
|
if (await hfs.isFile(packageJsonPath)) {
|
|
51989
51989
|
const packageJson = await hfs.json(packageJsonPath);
|
|
51990
51990
|
description = packageJson.description || description;
|
|
@@ -52058,10 +52058,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
52058
52058
|
|
|
52059
52059
|
// src/commit/run.ts
|
|
52060
52060
|
var runCommit = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
52061
|
-
const config = await
|
|
52061
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
52062
52062
|
const state = await createState(config, commitizenFile);
|
|
52063
52063
|
if (dryRun) {
|
|
52064
|
-
|
|
52064
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
52065
52065
|
}
|
|
52066
52066
|
console.log(chalk_template_default`
|
|
52067
52067
|
{bold.#999999 ----------------------------------------}
|
|
@@ -52071,7 +52071,7 @@ var runCommit = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (com
|
|
|
52071
52071
|
`);
|
|
52072
52072
|
state.answers = await askQuestions(state);
|
|
52073
52073
|
const message2 = formatCommitMessage(state);
|
|
52074
|
-
const commitMsgFile =
|
|
52074
|
+
const commitMsgFile = _chunkWIDIIDDQcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
52075
52075
|
console.log(chalk_template_default`
|
|
52076
52076
|
{bold.#999999 ----------------------------------------}
|
|
52077
52077
|
|
|
@@ -52095,8 +52095,8 @@ var runCommit = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (com
|
|
|
52095
52095
|
]);
|
|
52096
52096
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
52097
52097
|
if (dryRun) {
|
|
52098
|
-
|
|
52099
|
-
|
|
52098
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
52099
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
52100
52100
|
} else {
|
|
52101
52101
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
52102
52102
|
_chunk7FWXX5NNcjs.run.call(void 0, config, command);
|
|
@@ -64563,13 +64563,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
64563
64563
|
|
|
64564
64564
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
64565
64565
|
async function releaseVersion(config, args) {
|
|
64566
|
-
|
|
64566
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running release version command", config);
|
|
64567
64567
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
64568
64568
|
exitOnError: true
|
|
64569
64569
|
});
|
|
64570
64570
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
64571
64571
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
64572
|
-
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _178 => _178.workspaceRoot]), () => (
|
|
64572
|
+
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _178 => _178.workspaceRoot]), () => ( _chunkWIDIIDDQcjs.findWorkspaceRoot.call(void 0, )));
|
|
64573
64573
|
if (args.verbose) {
|
|
64574
64574
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
64575
64575
|
}
|
|
@@ -64584,10 +64584,10 @@ async function releaseVersion(config, args) {
|
|
|
64584
64584
|
]);
|
|
64585
64585
|
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".`);
|
|
64586
64586
|
}
|
|
64587
|
-
|
|
64587
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
64588
64588
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
64589
64589
|
if (filterError) {
|
|
64590
|
-
|
|
64590
|
+
_chunkWIDIIDDQcjs.writeError.call(void 0, filterError.title, config);
|
|
64591
64591
|
throw new Error(filterError.title);
|
|
64592
64592
|
}
|
|
64593
64593
|
const tree = new (0, _treejs.FsTree)(workspaceRoot2, true);
|
|
@@ -64596,10 +64596,10 @@ async function releaseVersion(config, args) {
|
|
|
64596
64596
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
64597
64597
|
const generatorCallbacks = [];
|
|
64598
64598
|
if (_optionalChain([args, 'access', _184 => _184.projects, 'optionalAccess', _185 => _185.length])) {
|
|
64599
|
-
|
|
64599
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
64600
64600
|
for (const releaseGroup of releaseGroups) {
|
|
64601
64601
|
const releaseGroupName = releaseGroup.name;
|
|
64602
|
-
|
|
64602
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
64603
64603
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
64604
64604
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
64605
64605
|
projectGraph,
|
|
@@ -64608,7 +64608,7 @@ async function releaseVersion(config, args) {
|
|
|
64608
64608
|
releaseGroupProjectNames
|
|
64609
64609
|
);
|
|
64610
64610
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
64611
|
-
|
|
64611
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
64612
64612
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
64613
64613
|
const generatorData = resolveGeneratorData({
|
|
64614
64614
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -64661,7 +64661,7 @@ async function releaseVersion(config, args) {
|
|
|
64661
64661
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _192 => _192.version, 'access', _193 => _193.git, 'access', _194 => _194.commitArgs])
|
|
64662
64662
|
});
|
|
64663
64663
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _195 => _195.version, 'access', _196 => _196.git, 'access', _197 => _197.stageChanges])))) {
|
|
64664
|
-
|
|
64664
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
64665
64665
|
await _gitjs.gitAdd.call(void 0, {
|
|
64666
64666
|
changedFiles: changedFiles2,
|
|
64667
64667
|
dryRun: args.dryRun,
|
|
@@ -64669,7 +64669,7 @@ async function releaseVersion(config, args) {
|
|
|
64669
64669
|
});
|
|
64670
64670
|
}
|
|
64671
64671
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _198 => _198.version, 'access', _199 => _199.git, 'access', _200 => _200.tag])))) {
|
|
64672
|
-
|
|
64672
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
64673
64673
|
for (const tag of gitTagValues2) {
|
|
64674
64674
|
await _gitjs.gitTag.call(void 0, {
|
|
64675
64675
|
tag,
|
|
@@ -64756,7 +64756,7 @@ async function releaseVersion(config, args) {
|
|
|
64756
64756
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _216 => _216.version, 'access', _217 => _217.git, 'access', _218 => _218.commitArgs])
|
|
64757
64757
|
});
|
|
64758
64758
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _219 => _219.version, 'access', _220 => _220.git, 'access', _221 => _221.stageChanges])))) {
|
|
64759
|
-
|
|
64759
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
64760
64760
|
await _gitjs.gitAdd.call(void 0, {
|
|
64761
64761
|
changedFiles,
|
|
64762
64762
|
dryRun: args.dryRun,
|
|
@@ -64764,7 +64764,7 @@ async function releaseVersion(config, args) {
|
|
|
64764
64764
|
});
|
|
64765
64765
|
}
|
|
64766
64766
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _222 => _222.version, 'access', _223 => _223.git, 'access', _224 => _224.tag])))) {
|
|
64767
|
-
|
|
64767
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
64768
64768
|
for (const tag of gitTagValues) {
|
|
64769
64769
|
await _gitjs.gitTag.call(void 0, {
|
|
64770
64770
|
tag,
|
|
@@ -64782,7 +64782,7 @@ async function releaseVersion(config, args) {
|
|
|
64782
64782
|
}
|
|
64783
64783
|
_chunkEVP6BIDZcjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
64784
64784
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
64785
|
-
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _231 => _231.workspaceRoot]), () => (
|
|
64785
|
+
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _231 => _231.workspaceRoot]), () => ( _chunkWIDIIDDQcjs.findWorkspaceRoot.call(void 0, )));
|
|
64786
64786
|
const generatorOptions = {
|
|
64787
64787
|
// Always ensure a string to avoid generator schema validation errors
|
|
64788
64788
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -64801,7 +64801,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
64801
64801
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
64802
64802
|
}
|
|
64803
64803
|
appendVersionData(versionData, versionResult.data);
|
|
64804
|
-
|
|
64804
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
64805
64805
|
return versionResult.callback;
|
|
64806
64806
|
}
|
|
64807
64807
|
_chunkEVP6BIDZcjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -64809,10 +64809,10 @@ function printAndFlushChanges(config, tree, isDryRun) {
|
|
|
64809
64809
|
const changes = tree.listChanges();
|
|
64810
64810
|
for (const f of changes) {
|
|
64811
64811
|
if (f.type === "CREATE") {
|
|
64812
|
-
|
|
64812
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
64813
64813
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _232 => _232.content, 'optionalAccess', _233 => _233.toString, 'call', _234 => _234()]) || "");
|
|
64814
64814
|
} else if (f.type === "UPDATE") {
|
|
64815
|
-
|
|
64815
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
64816
64816
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
64817
64817
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _235 => _235.content, 'optionalAccess', _236 => _236.toString, 'call', _237 => _237()]) || "");
|
|
64818
64818
|
} else if (f.type === "DELETE") {
|
|
@@ -64885,12 +64885,12 @@ var runRelease = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (co
|
|
|
64885
64885
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
64886
64886
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
64887
64887
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
64888
|
-
|
|
64888
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
64889
64889
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
64890
|
-
|
|
64890
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
64891
64891
|
const to = options.head || process.env.NX_HEAD;
|
|
64892
64892
|
const from = options.base || process.env.NX_BASE;
|
|
64893
|
-
|
|
64893
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
64894
64894
|
- From: ${from}
|
|
64895
64895
|
- To: ${to}
|
|
64896
64896
|
`, config);
|
|
@@ -64902,14 +64902,14 @@ var runRelease = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (co
|
|
|
64902
64902
|
}, {});
|
|
64903
64903
|
}
|
|
64904
64904
|
const nxReleaseConfig = _chunkF6YMONH3cjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
64905
|
-
|
|
64906
|
-
|
|
64905
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
64906
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
64907
64907
|
const releaseChangelog = _changelogjs.createAPI.call(void 0, nxReleaseConfig);
|
|
64908
64908
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
64909
|
-
|
|
64909
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
64910
64910
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
64911
64911
|
dryRun: false,
|
|
64912
|
-
verbose:
|
|
64912
|
+
verbose: _chunkWIDIIDDQcjs.isVerbose.call(void 0, config.logLevel),
|
|
64913
64913
|
preid: config.preid,
|
|
64914
64914
|
deleteVersionPlans: false,
|
|
64915
64915
|
stageChanges: true,
|
|
@@ -64921,25 +64921,25 @@ var runRelease = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, async (co
|
|
|
64921
64921
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _240 => _240.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
64922
64922
|
versionData: projectsVersionData,
|
|
64923
64923
|
dryRun: false,
|
|
64924
|
-
verbose:
|
|
64924
|
+
verbose: _chunkWIDIIDDQcjs.isVerbose.call(void 0, config.logLevel),
|
|
64925
64925
|
to,
|
|
64926
64926
|
from,
|
|
64927
64927
|
gitCommit: true,
|
|
64928
64928
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
64929
64929
|
});
|
|
64930
|
-
|
|
64930
|
+
_chunkWIDIIDDQcjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
64931
64931
|
if (options.skipPublish) {
|
|
64932
|
-
|
|
64932
|
+
_chunkWIDIIDDQcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
64933
64933
|
} else {
|
|
64934
64934
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _241 => _241[key], 'optionalAccess', _242 => _242.newVersion]));
|
|
64935
64935
|
if (changedProjects.length > 0) {
|
|
64936
|
-
|
|
64936
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
64937
64937
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
64938
64938
|
`, config);
|
|
64939
64939
|
const result2 = await releasePublish({
|
|
64940
64940
|
...options,
|
|
64941
64941
|
dryRun: !!options.dryRun,
|
|
64942
|
-
verbose:
|
|
64942
|
+
verbose: _chunkWIDIIDDQcjs.isVerbose.call(void 0, config.logLevel)
|
|
64943
64943
|
});
|
|
64944
64944
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _243 => _243[key], 'optionalAccess', _244 => _244.code]) && _optionalChain([result2, 'access', _245 => _245[key], 'optionalAccess', _246 => _246.code]) > 0);
|
|
64945
64945
|
if (failedProjects.length > 0) {
|
|
@@ -64950,13 +64950,13 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
64950
64950
|
`);
|
|
64951
64951
|
}
|
|
64952
64952
|
} else {
|
|
64953
|
-
|
|
64953
|
+
_chunkWIDIIDDQcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
64954
64954
|
}
|
|
64955
64955
|
}
|
|
64956
|
-
|
|
64956
|
+
_chunkWIDIIDDQcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
64957
64957
|
} catch (error) {
|
|
64958
|
-
|
|
64959
|
-
error.message &&
|
|
64958
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, "An exception was thrown while running the Storm release workflow.", config);
|
|
64959
|
+
error.message && _chunkWIDIIDDQcjs.writeError.call(void 0, `${error.name ? `${error.name}: ` : ""}${error.message}${error.stack ? `
|
|
64960
64960
|
${error.stack}` : ""}`, config);
|
|
64961
64961
|
throw error;
|
|
64962
64962
|
}
|
|
@@ -64966,8 +64966,8 @@ ${error.stack}` : ""}`, config);
|
|
|
64966
64966
|
var _config = {};
|
|
64967
64967
|
function createProgram(config) {
|
|
64968
64968
|
_config = config;
|
|
64969
|
-
|
|
64970
|
-
const root2 =
|
|
64969
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
64970
|
+
const root2 = _chunkWIDIIDDQcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
64971
64971
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
64972
64972
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
64973
64973
|
root2 && process.chdir(root2);
|
|
@@ -64995,14 +64995,14 @@ function createProgram(config) {
|
|
|
64995
64995
|
_chunkEVP6BIDZcjs.__name.call(void 0, createProgram, "createProgram");
|
|
64996
64996
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
64997
64997
|
try {
|
|
64998
|
-
|
|
64998
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
64999
64999
|
await runCommit(config, dryRun);
|
|
65000
|
-
|
|
65000
|
+
_chunkWIDIIDDQcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
65001
65001
|
|
|
65002
65002
|
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}
|
|
65003
65003
|
`, _config);
|
|
65004
65004
|
} catch (error) {
|
|
65005
|
-
|
|
65005
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
65006
65006
|
|
|
65007
65007
|
${error.message}`, _config);
|
|
65008
65008
|
throw new Error(error.message, {
|
|
@@ -65013,11 +65013,11 @@ ${error.message}`, _config);
|
|
|
65013
65013
|
_chunkEVP6BIDZcjs.__name.call(void 0, commitAction, "commitAction");
|
|
65014
65014
|
async function readmeAction(options) {
|
|
65015
65015
|
try {
|
|
65016
|
-
|
|
65016
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
65017
65017
|
await runReadme(options);
|
|
65018
|
-
|
|
65018
|
+
_chunkWIDIIDDQcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
65019
65019
|
} catch (error) {
|
|
65020
|
-
|
|
65020
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
65021
65021
|
|
|
65022
65022
|
${error.message}`);
|
|
65023
65023
|
throw new Error(error.message, {
|
|
@@ -65028,19 +65028,19 @@ ${error.message}`);
|
|
|
65028
65028
|
_chunkEVP6BIDZcjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
65029
65029
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
65030
65030
|
try {
|
|
65031
|
-
|
|
65031
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
65032
65032
|
await runRelease(_config, {
|
|
65033
65033
|
dryRun,
|
|
65034
65034
|
project,
|
|
65035
65035
|
base,
|
|
65036
65036
|
head
|
|
65037
65037
|
});
|
|
65038
|
-
|
|
65038
|
+
_chunkWIDIIDDQcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
65039
65039
|
} catch (error) {
|
|
65040
|
-
|
|
65040
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
65041
65041
|
|
|
65042
65042
|
${error.message}`, _config);
|
|
65043
|
-
|
|
65043
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, error, _config);
|
|
65044
65044
|
console.error("");
|
|
65045
65045
|
console.error("Fatal release error: ");
|
|
65046
65046
|
console.error(error);
|
|
@@ -65053,15 +65053,15 @@ ${error.message}`, _config);
|
|
|
65053
65053
|
_chunkEVP6BIDZcjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
65054
65054
|
async function commitLintAction({ config, message: message2, file }) {
|
|
65055
65055
|
try {
|
|
65056
|
-
|
|
65056
|
+
_chunkWIDIIDDQcjs.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);
|
|
65057
65057
|
await runCommitLint(_config, {
|
|
65058
65058
|
config,
|
|
65059
65059
|
message: message2,
|
|
65060
65060
|
file
|
|
65061
65061
|
});
|
|
65062
|
-
|
|
65062
|
+
_chunkWIDIIDDQcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
65063
65063
|
} catch (error) {
|
|
65064
|
-
|
|
65064
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
65065
65065
|
|
|
65066
65066
|
${error.message}`, _config);
|
|
65067
65067
|
throw new Error(error.message, {
|
|
@@ -65073,18 +65073,18 @@ _chunkEVP6BIDZcjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
65073
65073
|
|
|
65074
65074
|
// bin/git.ts
|
|
65075
65075
|
void (async () => {
|
|
65076
|
-
const config = await
|
|
65076
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
65077
65077
|
try {
|
|
65078
|
-
|
|
65078
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
65079
65079
|
const program2 = createProgram(config);
|
|
65080
65080
|
await program2.parseAsync(process.argv);
|
|
65081
|
-
|
|
65082
|
-
|
|
65081
|
+
_chunkWIDIIDDQcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
65082
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
65083
65083
|
} catch (error) {
|
|
65084
|
-
|
|
65084
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the Storm Git tool:
|
|
65085
65085
|
${_optionalChain([error, 'optionalAccess', _249 => _249.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _250 => _250.stack]) ? `
|
|
65086
65086
|
Stack Trace: ${error.stack}` : ""}`, config);
|
|
65087
|
-
|
|
65087
|
+
_chunkWIDIIDDQcjs.exitWithError.call(void 0, config);
|
|
65088
65088
|
process.exit(1);
|
|
65089
65089
|
}
|
|
65090
65090
|
})();
|
package/bin/git.js
CHANGED
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunk7FWXX5NNcjs = require('./chunk-7FWXX5NN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
17
17
|
require('./chunk-F6YMONH3.cjs');
|
|
18
18
|
require('./chunk-D7E6FHYG.cjs');
|
|
19
19
|
require('./chunk-4EXZWKXK.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkEVP6BIDZcjs = require('./chunk-EVP6BIDZ.cjs');
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
|
|
34
34
|
_chunkP2UJ7X76cjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkWIDIIDDQcjs.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
|
+
_chunkWIDIIDDQcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkWIDIIDDQcjs.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 _chunk7FWXX5NNcjs = require('./chunk-7FWXX5NN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
17
17
|
require('./chunk-F6YMONH3.cjs');
|
|
18
18
|
require('./chunk-D7E6FHYG.cjs');
|
|
19
19
|
require('./chunk-4EXZWKXK.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkEVP6BIDZcjs = require('./chunk-EVP6BIDZ.cjs');
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
|
|
34
34
|
_chunkP2UJ7X76cjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkWIDIIDDQcjs.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
|
+
_chunkWIDIIDDQcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkWIDIIDDQcjs.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 _chunk7FWXX5NNcjs = require('./chunk-7FWXX5NN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
17
17
|
require('./chunk-F6YMONH3.cjs');
|
|
18
18
|
require('./chunk-D7E6FHYG.cjs');
|
|
19
19
|
require('./chunk-4EXZWKXK.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkEVP6BIDZcjs = require('./chunk-EVP6BIDZ.cjs');
|
|
|
27
27
|
// bin/post-merge.ts
|
|
28
28
|
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
|
|
34
34
|
_chunkP2UJ7X76cjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkWIDIIDDQcjs.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
|
+
_chunkWIDIIDDQcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkWIDIIDDQcjs.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 _chunkP2UJ7X76cjs = require('./chunk-P2UJ7X76.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
15
15
|
require('./chunk-F6YMONH3.cjs');
|
|
16
16
|
require('./chunk-D7E6FHYG.cjs');
|
|
17
17
|
require('./chunk-4EXZWKXK.cjs');
|
|
@@ -25,19 +25,19 @@ var _chunkEVP6BIDZcjs = require('./chunk-EVP6BIDZ.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunkP2UJ7X76cjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunkP2UJ7X76cjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
_chunkWIDIIDDQcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkWIDIIDDQcjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkWIDIIDDQcjs.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 _chunk7FWXX5NNcjs = require('./chunk-7FWXX5NN.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
13
13
|
require('./chunk-F6YMONH3.cjs');
|
|
14
14
|
require('./chunk-D7E6FHYG.cjs');
|
|
15
15
|
require('./chunk-4EXZWKXK.cjs');
|
|
@@ -23,19 +23,19 @@ var _chunkEVP6BIDZcjs = require('./chunk-EVP6BIDZ.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkWIDIIDDQcjs.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 _chunk7FWXX5NNcjs = require('./chunk-7FWXX5NN.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
18
18
|
require('./chunk-F6YMONH3.cjs');
|
|
19
19
|
require('./chunk-D7E6FHYG.cjs');
|
|
20
20
|
require('./chunk-4EXZWKXK.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 _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunkP2UJ7X76cjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkWIDIIDDQcjs.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
|
+
_chunkWIDIIDDQcjs.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
|
+
_chunkWIDIIDDQcjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkWIDIIDDQcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
68
68
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
69
69
|
try {
|
|
70
70
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git-lfs version");
|
|
71
71
|
} catch (error) {
|
|
72
|
-
|
|
72
|
+
_chunkWIDIIDDQcjs.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
|
+
_chunkWIDIIDDQcjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkWIDIIDDQcjs.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 _chunk7FWXX5NNcjs = require('./chunk-7FWXX5NN.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
13
13
|
require('./chunk-F6YMONH3.cjs');
|
|
14
14
|
require('./chunk-D7E6FHYG.cjs');
|
|
15
15
|
require('./chunk-4EXZWKXK.cjs');
|
|
@@ -23,17 +23,17 @@ var _chunkEVP6BIDZcjs = require('./chunk-EVP6BIDZ.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkWIDIIDDQcjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkWIDIIDDQcjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkWIDIIDDQcjs.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 _chunkP2UJ7X76cjs = require('./chunk-P2UJ7X76.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWIDIIDDQcjs = require('./chunk-WIDIIDDQ.cjs');
|
|
11
11
|
require('./chunk-F6YMONH3.cjs');
|
|
12
12
|
require('./chunk-D7E6FHYG.cjs');
|
|
13
13
|
require('./chunk-4EXZWKXK.cjs');
|
|
@@ -21,13 +21,13 @@ var _chunkEVP6BIDZcjs = require('./chunk-EVP6BIDZ.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkWIDIIDDQcjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkWIDIIDDQcjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkP2UJ7X76cjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkWIDIIDDQcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkWIDIIDDQcjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED