@storm-software/git-tools 2.101.1 → 2.101.2
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-GLCRW2R7.cjs → chunk-KX7Y62QY.cjs} +1 -1
- package/bin/{chunk-6ZE252BR.js → chunk-YTMPCK35.js} +1 -1
- 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
|
@@ -35342,7 +35342,7 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
35342
35342
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
35343
35343
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
35344
35344
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
35345
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/
|
|
35345
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
35346
35346
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
35347
35347
|
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
35348
35348
|
var STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
|
|
@@ -35342,7 +35342,7 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
35342
35342
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
35343
35343
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
35344
35344
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
35345
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/
|
|
35345
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
35346
35346
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
35347
35347
|
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
35348
35348
|
var STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
|
package/bin/git.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkP2CHIYIKcjs = require('./chunk-P2CHIYIK.cjs');
|
|
@@ -3264,7 +3264,7 @@ var require_wrap_ansi = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
|
|
|
3264
3264
|
_chunkKK4YC43Scjs.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 = _chunkKX7Y62QYcjs.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 = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
|
|
|
15606
15606
|
1
|
|
15607
15607
|
];
|
|
15608
15608
|
try {
|
|
15609
|
-
const supportsColor2 =
|
|
15609
|
+
const supportsColor2 = _chunkKX7Y62QYcjs.require_supports_color.call(void 0, );
|
|
15610
15610
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15611
15611
|
exports.colors = [
|
|
15612
15612
|
20,
|
|
@@ -67098,12 +67098,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0,
|
|
|
67098
67098
|
// src/commitlint/run.ts
|
|
67099
67099
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
67100
67100
|
var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (config, params) => {
|
|
67101
|
-
|
|
67101
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
67102
67102
|
let commitMessage;
|
|
67103
67103
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
67104
67104
|
commitMessage = params.message;
|
|
67105
67105
|
} else {
|
|
67106
|
-
const commitFile =
|
|
67106
|
+
const commitFile = _chunkKX7Y62QYcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
67107
67107
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
67108
67108
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
|
|
67109
67109
|
}
|
|
@@ -67115,19 +67115,19 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
|
|
|
67115
67115
|
if (upstreamRemote) {
|
|
67116
67116
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
|
|
67117
67117
|
if (!upstreamRemoteIdentifier) {
|
|
67118
|
-
|
|
67118
|
+
_chunkKX7Y62QYcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
67119
67119
|
return;
|
|
67120
67120
|
}
|
|
67121
|
-
|
|
67121
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
67122
67122
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
67123
67123
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
67124
67124
|
} else {
|
|
67125
|
-
|
|
67125
|
+
_chunkKX7Y62QYcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
67126
67126
|
return;
|
|
67127
67127
|
}
|
|
67128
67128
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
67129
67129
|
if (!commitMessage) {
|
|
67130
|
-
|
|
67130
|
+
_chunkKX7Y62QYcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
67131
67131
|
return;
|
|
67132
67132
|
}
|
|
67133
67133
|
}
|
|
@@ -67145,7 +67145,7 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
|
|
|
67145
67145
|
helpUrl: commitlintConfig.helpUrl
|
|
67146
67146
|
});
|
|
67147
67147
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
67148
|
-
|
|
67148
|
+
_chunkKX7Y62QYcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
67149
67149
|
} else {
|
|
67150
67150
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
67151
67151
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -68339,7 +68339,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
|
|
|
68339
68339
|
answers: {}
|
|
68340
68340
|
};
|
|
68341
68341
|
} else {
|
|
68342
|
-
|
|
68342
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
68343
68343
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
68344
68344
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
|
|
68345
68345
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
|
|
@@ -68380,7 +68380,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
|
|
|
68380
68380
|
}
|
|
68381
68381
|
if (project) {
|
|
68382
68382
|
let description = `${project.name} - ${project.root}`;
|
|
68383
|
-
const packageJsonPath =
|
|
68383
|
+
const packageJsonPath = _chunkKX7Y62QYcjs.joinPaths.call(void 0, project.root, "package.json");
|
|
68384
68384
|
if (await hfs.isFile(packageJsonPath)) {
|
|
68385
68385
|
const packageJson = await hfs.json(packageJsonPath);
|
|
68386
68386
|
description = packageJson.description || description;
|
|
@@ -68454,10 +68454,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
68454
68454
|
|
|
68455
68455
|
// src/commit/run.ts
|
|
68456
68456
|
var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
68457
|
-
const config = await
|
|
68457
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
68458
68458
|
const state = await createState(config, commitizenFile);
|
|
68459
68459
|
if (dryRun) {
|
|
68460
|
-
|
|
68460
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
68461
68461
|
}
|
|
68462
68462
|
console.log(chalk_template_default`
|
|
68463
68463
|
{bold.#999999 ----------------------------------------}
|
|
@@ -68467,7 +68467,7 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
|
|
|
68467
68467
|
`);
|
|
68468
68468
|
state.answers = await askQuestions(state);
|
|
68469
68469
|
const message2 = formatCommitMessage(state);
|
|
68470
|
-
const commitMsgFile =
|
|
68470
|
+
const commitMsgFile = _chunkKX7Y62QYcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
68471
68471
|
console.log(chalk_template_default`
|
|
68472
68472
|
{bold.#999999 ----------------------------------------}
|
|
68473
68473
|
|
|
@@ -68491,8 +68491,8 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
|
|
|
68491
68491
|
]);
|
|
68492
68492
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
68493
68493
|
if (dryRun) {
|
|
68494
|
-
|
|
68495
|
-
|
|
68494
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
68495
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
68496
68496
|
} else {
|
|
68497
68497
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
68498
68498
|
_chunkFNIN2HF7cjs.run.call(void 0, config, command);
|
|
@@ -80885,7 +80885,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
|
|
|
80885
80885
|
|
|
80886
80886
|
// src/release/changelog.ts
|
|
80887
80887
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
80888
|
-
var chalk2 = _chunkKK4YC43Scjs.__toESM.call(void 0,
|
|
80888
|
+
var chalk2 = _chunkKK4YC43Scjs.__toESM.call(void 0, _chunkKX7Y62QYcjs.require_source.call(void 0, ), 1);
|
|
80889
80889
|
var import_enquirer = _chunkKK4YC43Scjs.__toESM.call(void 0, require_enquirer(), 1);
|
|
80890
80890
|
var import_semver2 = _chunkKK4YC43Scjs.__toESM.call(void 0, require_semver2(), 1);
|
|
80891
80891
|
var import_tmp = _chunkKK4YC43Scjs.__toESM.call(void 0, require_tmp2(), 1);
|
|
@@ -84455,7 +84455,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84455
84455
|
super(config);_class13.prototype.__init27.call(this);;
|
|
84456
84456
|
}
|
|
84457
84457
|
async render() {
|
|
84458
|
-
this.workspaceConfig = await
|
|
84458
|
+
this.workspaceConfig = await _chunkKX7Y62QYcjs.getWorkspaceConfig.call(void 0, );
|
|
84459
84459
|
return await super.render();
|
|
84460
84460
|
}
|
|
84461
84461
|
preprocessChanges() {
|
|
@@ -84629,7 +84629,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84629
84629
|
// src/release/changelog.ts
|
|
84630
84630
|
function createAPI(overrideReleaseConfig) {
|
|
84631
84631
|
return /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async function releaseChangelog(args) {
|
|
84632
|
-
const workspaceConfig = await
|
|
84632
|
+
const workspaceConfig = await _chunkKX7Y62QYcjs.getWorkspaceConfig.call(void 0, );
|
|
84633
84633
|
const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, {
|
|
84634
84634
|
exitOnError: true
|
|
84635
84635
|
});
|
|
@@ -85179,7 +85179,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
85179
85179
|
}
|
|
85180
85180
|
_chunkKK4YC43Scjs.__name.call(void 0, applyChangesAndExit, "applyChangesAndExit");
|
|
85181
85181
|
async function generateChangelogForWorkspace({ tree, args, projectGraph, nxReleaseConfig, workspaceChangelogVersion, changes, commits }) {
|
|
85182
|
-
const workspaceConfig = await
|
|
85182
|
+
const workspaceConfig = await _chunkKX7Y62QYcjs.getWorkspaceConfig.call(void 0, );
|
|
85183
85183
|
if (!workspaceConfig) {
|
|
85184
85184
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85185
85185
|
}
|
|
@@ -85269,7 +85269,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
|
|
|
85269
85269
|
}
|
|
85270
85270
|
_chunkKK4YC43Scjs.__name.call(void 0, generateChangelogForWorkspace, "generateChangelogForWorkspace");
|
|
85271
85271
|
async function generateChangelogForProjects({ tree, args, changes, projectsVersionData, releaseGroup, projects, nxReleaseConfig, projectToAdditionalDependencyBumps }) {
|
|
85272
|
-
const workspaceConfig = await
|
|
85272
|
+
const workspaceConfig = await _chunkKX7Y62QYcjs.getWorkspaceConfig.call(void 0, );
|
|
85273
85273
|
if (!workspaceConfig) {
|
|
85274
85274
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85275
85275
|
}
|
|
@@ -85569,13 +85569,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
85569
85569
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
85570
85570
|
async function releaseVersion(config, args) {
|
|
85571
85571
|
try {
|
|
85572
|
-
|
|
85572
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running release version command", config);
|
|
85573
85573
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
85574
85574
|
exitOnError: true
|
|
85575
85575
|
});
|
|
85576
85576
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
85577
85577
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85578
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _239 => _239.workspaceRoot]), () => (
|
|
85578
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _239 => _239.workspaceRoot]), () => ( _chunkKX7Y62QYcjs.findWorkspaceRoot.call(void 0, )));
|
|
85579
85579
|
if (args.verbose) {
|
|
85580
85580
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
85581
85581
|
}
|
|
@@ -85590,10 +85590,10 @@ async function releaseVersion(config, args) {
|
|
|
85590
85590
|
]);
|
|
85591
85591
|
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".`);
|
|
85592
85592
|
}
|
|
85593
|
-
|
|
85593
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
85594
85594
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
85595
85595
|
if (filterError) {
|
|
85596
|
-
|
|
85596
|
+
_chunkKX7Y62QYcjs.writeError.call(void 0, filterError.title, config);
|
|
85597
85597
|
throw new Error(filterError.title);
|
|
85598
85598
|
}
|
|
85599
85599
|
const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
|
|
@@ -85602,10 +85602,10 @@ async function releaseVersion(config, args) {
|
|
|
85602
85602
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
85603
85603
|
const generatorCallbacks = [];
|
|
85604
85604
|
if (_optionalChain([args, 'access', _245 => _245.projects, 'optionalAccess', _246 => _246.length])) {
|
|
85605
|
-
|
|
85605
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
85606
85606
|
for (const releaseGroup of releaseGroups) {
|
|
85607
85607
|
const releaseGroupName = releaseGroup.name;
|
|
85608
|
-
|
|
85608
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
85609
85609
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
85610
85610
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
85611
85611
|
projectGraph,
|
|
@@ -85614,7 +85614,7 @@ async function releaseVersion(config, args) {
|
|
|
85614
85614
|
releaseGroupProjectNames
|
|
85615
85615
|
);
|
|
85616
85616
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
85617
|
-
|
|
85617
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
85618
85618
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
85619
85619
|
const generatorData = resolveGeneratorData({
|
|
85620
85620
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -85667,7 +85667,7 @@ async function releaseVersion(config, args) {
|
|
|
85667
85667
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _253 => _253.version, 'access', _254 => _254.git, 'access', _255 => _255.commitArgs])
|
|
85668
85668
|
});
|
|
85669
85669
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _256 => _256.version, 'access', _257 => _257.git, 'access', _258 => _258.stageChanges])))) {
|
|
85670
|
-
|
|
85670
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85671
85671
|
await _gitjs.gitAdd.call(void 0, {
|
|
85672
85672
|
changedFiles: changedFiles2,
|
|
85673
85673
|
dryRun: args.dryRun,
|
|
@@ -85675,7 +85675,7 @@ async function releaseVersion(config, args) {
|
|
|
85675
85675
|
});
|
|
85676
85676
|
}
|
|
85677
85677
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _259 => _259.version, 'access', _260 => _260.git, 'access', _261 => _261.tag])))) {
|
|
85678
|
-
|
|
85678
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85679
85679
|
for (const tag of gitTagValues2) {
|
|
85680
85680
|
await _gitjs.gitTag.call(void 0, {
|
|
85681
85681
|
tag,
|
|
@@ -85762,7 +85762,7 @@ async function releaseVersion(config, args) {
|
|
|
85762
85762
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _277 => _277.version, 'access', _278 => _278.git, 'access', _279 => _279.commitArgs])
|
|
85763
85763
|
});
|
|
85764
85764
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _280 => _280.version, 'access', _281 => _281.git, 'access', _282 => _282.stageChanges])))) {
|
|
85765
|
-
|
|
85765
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85766
85766
|
await _gitjs.gitAdd.call(void 0, {
|
|
85767
85767
|
changedFiles,
|
|
85768
85768
|
dryRun: args.dryRun,
|
|
@@ -85770,7 +85770,7 @@ async function releaseVersion(config, args) {
|
|
|
85770
85770
|
});
|
|
85771
85771
|
}
|
|
85772
85772
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _283 => _283.version, 'access', _284 => _284.git, 'access', _285 => _285.tag])))) {
|
|
85773
|
-
|
|
85773
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85774
85774
|
for (const tag of gitTagValues) {
|
|
85775
85775
|
await _gitjs.gitTag.call(void 0, {
|
|
85776
85776
|
tag,
|
|
@@ -85786,8 +85786,8 @@ async function releaseVersion(config, args) {
|
|
|
85786
85786
|
projectsVersionData: versionData
|
|
85787
85787
|
};
|
|
85788
85788
|
} catch (error) {
|
|
85789
|
-
|
|
85790
|
-
|
|
85789
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
|
|
85790
|
+
_chunkKX7Y62QYcjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
|
|
85791
85791
|
- Details: ${error.message}
|
|
85792
85792
|
- Stacktrace: ${error.stack}`, config);
|
|
85793
85793
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -85798,7 +85798,7 @@ async function releaseVersion(config, args) {
|
|
|
85798
85798
|
}
|
|
85799
85799
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
85800
85800
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
85801
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _292 => _292.workspaceRoot]), () => (
|
|
85801
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _292 => _292.workspaceRoot]), () => ( _chunkKX7Y62QYcjs.findWorkspaceRoot.call(void 0, )));
|
|
85802
85802
|
const generatorOptions = {
|
|
85803
85803
|
// Always ensure a string to avoid generator schema validation errors
|
|
85804
85804
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -85817,7 +85817,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
85817
85817
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
85818
85818
|
}
|
|
85819
85819
|
appendVersionData(versionData, versionResult.data);
|
|
85820
|
-
|
|
85820
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
85821
85821
|
return versionResult.callback;
|
|
85822
85822
|
}
|
|
85823
85823
|
_chunkKK4YC43Scjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -85825,10 +85825,10 @@ function printAndFlushChanges2(config, tree, isDryRun) {
|
|
|
85825
85825
|
const changes = tree.listChanges();
|
|
85826
85826
|
for (const f of changes) {
|
|
85827
85827
|
if (f.type === "CREATE") {
|
|
85828
|
-
|
|
85828
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85829
85829
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _293 => _293.content, 'optionalAccess', _294 => _294.toString, 'call', _295 => _295()]) || "");
|
|
85830
85830
|
} else if (f.type === "UPDATE") {
|
|
85831
|
-
|
|
85831
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85832
85832
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
85833
85833
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _296 => _296.content, 'optionalAccess', _297 => _297.toString, 'call', _298 => _298()]) || "");
|
|
85834
85834
|
} else if (f.type === "DELETE") {
|
|
@@ -85900,12 +85900,12 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85900
85900
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85901
85901
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85902
85902
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
85903
|
-
|
|
85903
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
85904
85904
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85905
|
-
|
|
85905
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
85906
85906
|
const to = options.head || process.env.NX_HEAD;
|
|
85907
85907
|
const from = options.base || process.env.NX_BASE;
|
|
85908
|
-
|
|
85908
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
85909
85909
|
- From: ${from}
|
|
85910
85910
|
- To: ${to}
|
|
85911
85911
|
`, config);
|
|
@@ -85917,14 +85917,14 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85917
85917
|
}, {});
|
|
85918
85918
|
}
|
|
85919
85919
|
const nxReleaseConfig = _chunkP2CHIYIKcjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
85920
|
-
|
|
85921
|
-
|
|
85920
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
85921
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
85922
85922
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
85923
85923
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
85924
|
-
|
|
85924
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
85925
85925
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
85926
85926
|
dryRun: false,
|
|
85927
|
-
verbose:
|
|
85927
|
+
verbose: _chunkKX7Y62QYcjs.isVerbose.call(void 0, config.logLevel),
|
|
85928
85928
|
preid: config.preid,
|
|
85929
85929
|
deleteVersionPlans: false,
|
|
85930
85930
|
stageChanges: true,
|
|
@@ -85937,25 +85937,25 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85937
85937
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _304 => _304.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
85938
85938
|
versionData: projectsVersionData,
|
|
85939
85939
|
dryRun: false,
|
|
85940
|
-
verbose:
|
|
85940
|
+
verbose: _chunkKX7Y62QYcjs.isVerbose.call(void 0, config.logLevel),
|
|
85941
85941
|
to,
|
|
85942
85942
|
from,
|
|
85943
85943
|
gitCommit: true,
|
|
85944
85944
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
85945
85945
|
});
|
|
85946
|
-
|
|
85946
|
+
_chunkKX7Y62QYcjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
85947
85947
|
if (options.skipPublish) {
|
|
85948
|
-
|
|
85948
|
+
_chunkKX7Y62QYcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
85949
85949
|
} else {
|
|
85950
85950
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _305 => _305[key], 'optionalAccess', _306 => _306.newVersion]));
|
|
85951
85951
|
if (changedProjects.length > 0) {
|
|
85952
|
-
|
|
85952
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
85953
85953
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
85954
85954
|
`, config);
|
|
85955
85955
|
const result2 = await releasePublish({
|
|
85956
85956
|
...options,
|
|
85957
85957
|
dryRun: !!options.dryRun,
|
|
85958
|
-
verbose:
|
|
85958
|
+
verbose: _chunkKX7Y62QYcjs.isVerbose.call(void 0, config.logLevel)
|
|
85959
85959
|
});
|
|
85960
85960
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _307 => _307[key], 'optionalAccess', _308 => _308.code]) && _optionalChain([result2, 'access', _309 => _309[key], 'optionalAccess', _310 => _310.code]) > 0);
|
|
85961
85961
|
if (failedProjects.length > 0) {
|
|
@@ -85966,18 +85966,18 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
85966
85966
|
`);
|
|
85967
85967
|
}
|
|
85968
85968
|
} else {
|
|
85969
|
-
|
|
85969
|
+
_chunkKX7Y62QYcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
85970
85970
|
}
|
|
85971
85971
|
}
|
|
85972
|
-
|
|
85972
|
+
_chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
85973
85973
|
}, "runRelease");
|
|
85974
85974
|
|
|
85975
85975
|
// src/cli/index.ts
|
|
85976
85976
|
var _config = {};
|
|
85977
85977
|
function createProgram(config) {
|
|
85978
85978
|
_config = config;
|
|
85979
|
-
|
|
85980
|
-
const root2 =
|
|
85979
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
85980
|
+
const root2 = _chunkKX7Y62QYcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
85981
85981
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
85982
85982
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
85983
85983
|
root2 && process.chdir(root2);
|
|
@@ -86005,14 +86005,14 @@ function createProgram(config) {
|
|
|
86005
86005
|
_chunkKK4YC43Scjs.__name.call(void 0, createProgram, "createProgram");
|
|
86006
86006
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
86007
86007
|
try {
|
|
86008
|
-
|
|
86008
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
86009
86009
|
await runCommit(config, dryRun);
|
|
86010
|
-
|
|
86010
|
+
_chunkKX7Y62QYcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
86011
86011
|
|
|
86012
86012
|
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}
|
|
86013
86013
|
`, _config);
|
|
86014
86014
|
} catch (error) {
|
|
86015
|
-
|
|
86015
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
86016
86016
|
|
|
86017
86017
|
${error.message}`, _config);
|
|
86018
86018
|
throw new Error(error.message, {
|
|
@@ -86023,11 +86023,11 @@ ${error.message}`, _config);
|
|
|
86023
86023
|
_chunkKK4YC43Scjs.__name.call(void 0, commitAction, "commitAction");
|
|
86024
86024
|
async function readmeAction(options) {
|
|
86025
86025
|
try {
|
|
86026
|
-
|
|
86026
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
86027
86027
|
await runReadme(options);
|
|
86028
|
-
|
|
86028
|
+
_chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
86029
86029
|
} catch (error) {
|
|
86030
|
-
|
|
86030
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
86031
86031
|
|
|
86032
86032
|
${error.message}`);
|
|
86033
86033
|
throw new Error(error.message, {
|
|
@@ -86038,16 +86038,16 @@ ${error.message}`);
|
|
|
86038
86038
|
_chunkKK4YC43Scjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
86039
86039
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
86040
86040
|
try {
|
|
86041
|
-
|
|
86041
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
86042
86042
|
await runRelease(_config, {
|
|
86043
86043
|
dryRun,
|
|
86044
86044
|
project,
|
|
86045
86045
|
base,
|
|
86046
86046
|
head
|
|
86047
86047
|
});
|
|
86048
|
-
|
|
86048
|
+
_chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
86049
86049
|
} catch (error) {
|
|
86050
|
-
|
|
86050
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
86051
86051
|
|
|
86052
86052
|
${error.message} ${error.stack ? `
|
|
86053
86053
|
|
|
@@ -86061,15 +86061,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
|
|
|
86061
86061
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
86062
86062
|
async function commitLintAction({ config, message: message2, file }) {
|
|
86063
86063
|
try {
|
|
86064
|
-
|
|
86064
|
+
_chunkKX7Y62QYcjs.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);
|
|
86065
86065
|
await runCommitLint(_config, {
|
|
86066
86066
|
config,
|
|
86067
86067
|
message: message2,
|
|
86068
86068
|
file
|
|
86069
86069
|
});
|
|
86070
|
-
|
|
86070
|
+
_chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
86071
86071
|
} catch (error) {
|
|
86072
|
-
|
|
86072
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
86073
86073
|
|
|
86074
86074
|
${error.message}`, _config);
|
|
86075
86075
|
throw new Error(error.message, {
|
|
@@ -86081,15 +86081,15 @@ _chunkKK4YC43Scjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
86081
86081
|
|
|
86082
86082
|
// bin/git.ts
|
|
86083
86083
|
void (async () => {
|
|
86084
|
-
const config = await
|
|
86084
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
86085
86085
|
try {
|
|
86086
|
-
|
|
86086
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
86087
86087
|
const program2 = createProgram(config);
|
|
86088
86088
|
await program2.parseAsync(process.argv);
|
|
86089
|
-
|
|
86090
|
-
|
|
86089
|
+
_chunkKX7Y62QYcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
86090
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
86091
86091
|
} catch (error) {
|
|
86092
|
-
|
|
86092
|
+
_chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
|
|
86093
86093
|
process.exit(1);
|
|
86094
86094
|
}
|
|
86095
86095
|
})();
|
package/bin/git.js
CHANGED
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
17
17
|
require('./chunk-P2CHIYIK.cjs');
|
|
18
18
|
require('./chunk-HI7REZLL.cjs');
|
|
19
19
|
require('./chunk-LUO23224.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
|
|
34
34
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkKX7Y62QYcjs.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
|
+
_chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkKX7Y62QYcjs.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 _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
17
17
|
require('./chunk-P2CHIYIK.cjs');
|
|
18
18
|
require('./chunk-HI7REZLL.cjs');
|
|
19
19
|
require('./chunk-LUO23224.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
|
|
34
34
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkKX7Y62QYcjs.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
|
+
_chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkKX7Y62QYcjs.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 _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
17
17
|
require('./chunk-P2CHIYIK.cjs');
|
|
18
18
|
require('./chunk-HI7REZLL.cjs');
|
|
19
19
|
require('./chunk-LUO23224.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
27
27
|
// bin/post-merge.ts
|
|
28
28
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
|
|
34
34
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkKX7Y62QYcjs.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
|
+
_chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkKX7Y62QYcjs.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 _chunkMJ243FGHcjs = require('./chunk-MJ243FGH.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
15
15
|
require('./chunk-P2CHIYIK.cjs');
|
|
16
16
|
require('./chunk-HI7REZLL.cjs');
|
|
17
17
|
require('./chunk-LUO23224.cjs');
|
|
@@ -25,19 +25,19 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunkMJ243FGHcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
_chunkKX7Y62QYcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkKX7Y62QYcjs.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 _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
13
13
|
require('./chunk-P2CHIYIK.cjs');
|
|
14
14
|
require('./chunk-HI7REZLL.cjs');
|
|
15
15
|
require('./chunk-LUO23224.cjs');
|
|
@@ -23,19 +23,19 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkKX7Y62QYcjs.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 _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
18
18
|
require('./chunk-P2CHIYIK.cjs');
|
|
19
19
|
require('./chunk-HI7REZLL.cjs');
|
|
20
20
|
require('./chunk-LUO23224.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 _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkKX7Y62QYcjs.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
|
+
_chunkKX7Y62QYcjs.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
|
+
_chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
68
68
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
69
69
|
try {
|
|
70
70
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
|
|
71
71
|
} catch (error) {
|
|
72
|
-
|
|
72
|
+
_chunkKX7Y62QYcjs.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
|
+
_chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkKX7Y62QYcjs.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 _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
13
13
|
require('./chunk-P2CHIYIK.cjs');
|
|
14
14
|
require('./chunk-HI7REZLL.cjs');
|
|
15
15
|
require('./chunk-LUO23224.cjs');
|
|
@@ -23,17 +23,17 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkKX7Y62QYcjs.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 _chunkMJ243FGHcjs = require('./chunk-MJ243FGH.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
|
|
11
11
|
require('./chunk-P2CHIYIK.cjs');
|
|
12
12
|
require('./chunk-HI7REZLL.cjs');
|
|
13
13
|
require('./chunk-LUO23224.cjs');
|
|
@@ -21,13 +21,13 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED