@storm-software/git-tools 2.119.11 → 2.121.0
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 +2 -1
- package/bin/{chunk-FEIWTHDN.cjs → chunk-7V324BCR.cjs} +347 -297
- package/bin/{chunk-VATYGW5F.js → chunk-XJZXOYRK.js} +346 -296
- package/bin/git.cjs +143 -99
- package/bin/git.js +73 -29
- 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/dist/{chunk-C4NLID2V.js → chunk-25G45MG4.js} +1 -1
- package/dist/{chunk-LSRFGWF5.js → chunk-2IQTQBAX.js} +1 -1
- package/dist/chunk-2RKFQIWE.cjs +19 -0
- package/dist/{chunk-ZE542BCU.cjs → chunk-2SHAD3P5.cjs} +5 -2
- package/dist/{chunk-5XXXTVPU.js → chunk-GRCMQK4Q.js} +5 -2
- package/dist/{chunk-NWZD3QTO.cjs → chunk-RG47FAF4.cjs} +3 -3
- package/dist/commit/minimal.cjs +5 -5
- package/dist/commit/minimal.d.cts +1 -0
- package/dist/commit/minimal.d.ts +1 -0
- package/dist/commit/minimal.js +1 -1
- package/dist/commit/monorepo.cjs +3 -3
- package/dist/commit/monorepo.d.cts +1 -0
- package/dist/commit/monorepo.d.ts +1 -0
- package/dist/commit/monorepo.js +2 -2
- package/dist/commitlint/minimal.cjs +3 -12
- package/dist/commitlint/minimal.d.cts +1 -9
- package/dist/commitlint/minimal.d.ts +1 -9
- package/dist/commitlint/minimal.js +2 -11
- package/dist/commitlint/monorepo.cjs +3 -12
- package/dist/commitlint/monorepo.d.cts +1 -9
- package/dist/commitlint/monorepo.d.ts +1 -9
- package/dist/commitlint/monorepo.js +2 -11
- package/dist/index.cjs +4 -6
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -5
- package/dist/release/config.cjs +3 -3
- package/dist/release/config.d.cts +4 -3
- package/dist/release/config.d.ts +4 -3
- package/dist/release/config.js +2 -2
- package/dist/types.cjs +2 -4
- package/dist/types.d.cts +4 -143
- package/dist/types.d.ts +4 -143
- package/dist/types.js +1 -3
- package/package.json +12 -5
- package/dist/chunk-KD6Y4AJS.cjs +0 -19
package/bin/git.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-54Q5U5WW.js';
|
|
3
|
-
import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, defu, isVerbose, writeWarning, writeTrace, STORM_DEFAULT_RELEASE_BANNER, __require } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, defu, isVerbose, writeWarning, writeTrace, STORM_DEFAULT_RELEASE_BANNER, __require } from './chunk-XJZXOYRK.js';
|
|
4
4
|
import TOML from '@ltd/j-toml';
|
|
5
5
|
import { Command, Option } from 'commander';
|
|
6
6
|
import { select, confirm, input } from '@inquirer/prompts';
|
|
@@ -76,7 +76,7 @@ function stringifyCargoToml(cargoToml) {
|
|
|
76
76
|
return tomlString;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
// src/types.ts
|
|
79
|
+
// ../conventional-changelog/src/commit-types.ts
|
|
80
80
|
var COMMIT_TYPES = {
|
|
81
81
|
/* --- Bumps version when selected --- */
|
|
82
82
|
"chore": {
|
|
@@ -206,6 +206,64 @@ var COMMIT_TYPES = {
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
|
+
|
|
210
|
+
// ../conventional-changelog/src/utilities/constants.ts
|
|
211
|
+
var CHANGELOG_COMMITS = Object.entries(COMMIT_TYPES).reduce(
|
|
212
|
+
(ret, [key, commitType]) => {
|
|
213
|
+
ret[key] = {
|
|
214
|
+
...commitType.changelog,
|
|
215
|
+
type: key,
|
|
216
|
+
title: commitType.changelog?.title || commitType.title,
|
|
217
|
+
hidden: commitType.changelog?.hidden
|
|
218
|
+
};
|
|
219
|
+
return ret;
|
|
220
|
+
},
|
|
221
|
+
{}
|
|
222
|
+
);
|
|
223
|
+
var CHANGELOG_COMMIT_ORDER = [
|
|
224
|
+
CHANGELOG_COMMITS.feat,
|
|
225
|
+
CHANGELOG_COMMITS.fix,
|
|
226
|
+
CHANGELOG_COMMITS.chore,
|
|
227
|
+
CHANGELOG_COMMITS.deps,
|
|
228
|
+
CHANGELOG_COMMITS.docs,
|
|
229
|
+
CHANGELOG_COMMITS.style,
|
|
230
|
+
CHANGELOG_COMMITS.refactor,
|
|
231
|
+
CHANGELOG_COMMITS.perf,
|
|
232
|
+
CHANGELOG_COMMITS.build,
|
|
233
|
+
CHANGELOG_COMMITS.ci,
|
|
234
|
+
CHANGELOG_COMMITS.test
|
|
235
|
+
];
|
|
236
|
+
CHANGELOG_COMMIT_ORDER.map(
|
|
237
|
+
(entry) => entry.type
|
|
238
|
+
);
|
|
239
|
+
CHANGELOG_COMMIT_ORDER.map(
|
|
240
|
+
(entry) => entry.title
|
|
241
|
+
);
|
|
242
|
+
var MINIMAL_PARSER_DEFAULT_OPTIONS = {
|
|
243
|
+
headerPattern: /^(\w*): (.*)$/,
|
|
244
|
+
breakingHeaderPattern: /^(\w*): (.*)$/,
|
|
245
|
+
headerCorrespondence: ["type", "subject"],
|
|
246
|
+
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
247
|
+
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
248
|
+
revertCorrespondence: ["header", "hash"],
|
|
249
|
+
issuePrefixes: ["#"]
|
|
250
|
+
};
|
|
251
|
+
var MONOREPO_PARSER_DEFAULT_OPTIONS = {
|
|
252
|
+
headerPattern: /^(\w*)(?:\((.*)\))!?: (.*)$/,
|
|
253
|
+
breakingHeaderPattern: /^(\w*)(?:\((.*)\))!: (.*)$/,
|
|
254
|
+
headerCorrespondence: ["type", "scope", "subject"],
|
|
255
|
+
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
256
|
+
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
257
|
+
revertCorrespondence: ["header", "hash"],
|
|
258
|
+
issuePrefixes: ["#"]
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
// ../conventional-changelog/src/parser.ts
|
|
262
|
+
function createParserOpts(variant) {
|
|
263
|
+
return variant === "minimal" ? MINIMAL_PARSER_DEFAULT_OPTIONS : MONOREPO_PARSER_DEFAULT_OPTIONS;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// src/types.ts
|
|
209
267
|
var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
210
268
|
type: {
|
|
211
269
|
type: "select",
|
|
@@ -327,8 +385,9 @@ var DEFAULT_MINIMAL_COMMIT_RULES = {
|
|
|
327
385
|
],
|
|
328
386
|
"type-max-length": [2 /* Error */, "always", 20],
|
|
329
387
|
"type-min-length": [2 /* Error */, "always", 3],
|
|
388
|
+
"scope-empty": 0 /* Disabled */,
|
|
330
389
|
"scope-case": 0 /* Disabled */,
|
|
331
|
-
"scope-
|
|
390
|
+
"scope-enum": 0 /* Disabled */
|
|
332
391
|
};
|
|
333
392
|
var DEFAULT_MONOREPO_COMMIT_RULES = {
|
|
334
393
|
"body-leading-blank": [1 /* Warning */, "always"],
|
|
@@ -358,32 +417,14 @@ var DEFAULT_MONOREPO_COMMIT_RULES = {
|
|
|
358
417
|
// src/commitlint/config/minimal.ts
|
|
359
418
|
var config = {
|
|
360
419
|
rules: DEFAULT_MINIMAL_COMMIT_RULES,
|
|
361
|
-
helpUrl: "https://developer.stormsoftware.com/commitlint/minimal"
|
|
362
|
-
parserOpts: {
|
|
363
|
-
headerPattern: /^(\w*): (.*)$/,
|
|
364
|
-
breakingHeaderPattern: /^(\w*): (.*)$/,
|
|
365
|
-
headerCorrespondence: ["type", "subject"],
|
|
366
|
-
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
367
|
-
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
368
|
-
revertCorrespondence: ["header", "hash"],
|
|
369
|
-
issuePrefixes: ["#"]
|
|
370
|
-
}
|
|
420
|
+
helpUrl: "https://developer.stormsoftware.com/commitlint/minimal"
|
|
371
421
|
};
|
|
372
422
|
var minimal_default = config;
|
|
373
423
|
|
|
374
424
|
// src/commitlint/config/monorepo.ts
|
|
375
425
|
var config2 = {
|
|
376
426
|
rules: DEFAULT_MONOREPO_COMMIT_RULES,
|
|
377
|
-
helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo"
|
|
378
|
-
parserOpts: {
|
|
379
|
-
headerPattern: /^(\w*)(?:\((.*)\))!?: (.*)$/,
|
|
380
|
-
breakingHeaderPattern: /^(\w*)(?:\((.*)\))!: (.*)$/,
|
|
381
|
-
headerCorrespondence: ["type", "scope", "subject"],
|
|
382
|
-
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
383
|
-
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
384
|
-
revertCorrespondence: ["header", "hash"],
|
|
385
|
-
issuePrefixes: ["#"]
|
|
386
|
-
}
|
|
427
|
+
helpUrl: "https://developer.stormsoftware.com/commitlint/monorepo"
|
|
387
428
|
};
|
|
388
429
|
var monorepo_default = config2;
|
|
389
430
|
|
|
@@ -1058,7 +1099,10 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1058
1099
|
`(${Object.keys(allowedTypes).join("|")})!?:\\s([a-z0-9:\\-\\/\\s])+`
|
|
1059
1100
|
);
|
|
1060
1101
|
}
|
|
1061
|
-
const report = await lint(commitMessage,
|
|
1102
|
+
const report = await lint(commitMessage, {
|
|
1103
|
+
...commitlintConfig,
|
|
1104
|
+
parserOpts: createParserOpts(workspaceConfig.variant)
|
|
1105
|
+
});
|
|
1062
1106
|
if (!commitlintRegex.test(commitMessage) || report.errors.length || report.warnings.length) {
|
|
1063
1107
|
writeSuccess(
|
|
1064
1108
|
`Commit was processing completed successfully!`,
|
|
@@ -1113,7 +1157,7 @@ var monorepo_default2 = config4;
|
|
|
1113
1157
|
// src/commit/helpers.ts
|
|
1114
1158
|
function resolveMinimalCommitOptions(config5 = minimal_default2) {
|
|
1115
1159
|
return {
|
|
1116
|
-
parserPreset: "conventional-changelog-
|
|
1160
|
+
parserPreset: "conventional-changelog-storm-software",
|
|
1117
1161
|
prompt: {
|
|
1118
1162
|
settings: config5.settings,
|
|
1119
1163
|
messages: config5.messages,
|
|
@@ -1124,7 +1168,7 @@ function resolveMinimalCommitOptions(config5 = minimal_default2) {
|
|
|
1124
1168
|
function resolveMonorepoCommitOptions(workspaceConfig, config5 = monorepo_default2) {
|
|
1125
1169
|
return {
|
|
1126
1170
|
utils: { getScopeEnum: getScopeEnumUtil({ config: workspaceConfig }) },
|
|
1127
|
-
parserPreset: "conventional-changelog-
|
|
1171
|
+
parserPreset: "conventional-changelog-storm-software",
|
|
1128
1172
|
prompt: {
|
|
1129
1173
|
settings: config5.settings,
|
|
1130
1174
|
messages: config5.messages,
|
|
@@ -3259,12 +3303,12 @@ function createAPI(overrideReleaseConfig) {
|
|
|
3259
3303
|
const postGitTasks = [];
|
|
3260
3304
|
let workspaceChangelogChanges = [];
|
|
3261
3305
|
let workspaceChangelogCommits = [];
|
|
3262
|
-
const versionPlansEnabledForWorkspaceChangelog = releaseGroups[0]
|
|
3306
|
+
const versionPlansEnabledForWorkspaceChangelog = releaseGroups[0]?.resolvedVersionPlans;
|
|
3263
3307
|
if (versionPlansEnabledForWorkspaceChangelog) {
|
|
3264
3308
|
if (releaseGroups.length === 1) {
|
|
3265
3309
|
const releaseGroup = releaseGroups[0];
|
|
3266
|
-
if (releaseGroup
|
|
3267
|
-
const versionPlans = releaseGroup
|
|
3310
|
+
if (releaseGroup?.projectsRelationship === "fixed") {
|
|
3311
|
+
const versionPlans = releaseGroup?.resolvedVersionPlans;
|
|
3268
3312
|
workspaceChangelogChanges = versionPlans.flatMap((vp) => {
|
|
3269
3313
|
const releaseType = versionPlanSemverReleaseTypeToChangelogType(
|
|
3270
3314
|
vp.groupVersionBump
|
package/bin/post-checkout.cjs
CHANGED
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
5
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk7V324BCR_cjs = require('./chunk-7V324BCR.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-checkout.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunk7V324BCR_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunk7V324BCR_cjs.handleProcess(config);
|
|
13
|
+
chunk7V324BCR_cjs.writeInfo("Running post-checkout hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkCIJVSMK2_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunk7V324BCR_cjs.writeError(
|
|
19
19
|
`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.
|
|
20
20
|
Error: ${error?.message}`,
|
|
21
21
|
config
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkCIJVSMK2_cjs.run(config, "git lfs post-checkout");
|
|
26
|
-
|
|
26
|
+
chunk7V324BCR_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunk7V324BCR_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
33
33
|
process.exit(1);
|
|
34
34
|
}
|
|
35
35
|
})();
|
package/bin/post-checkout.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
3
|
import { run } from './chunk-54Q5U5WW.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-XJZXOYRK.js';
|
|
5
5
|
|
|
6
6
|
// bin/post-checkout.ts
|
|
7
7
|
void (async () => {
|
package/bin/post-commit.cjs
CHANGED
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
5
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk7V324BCR_cjs = require('./chunk-7V324BCR.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-commit.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunk7V324BCR_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunk7V324BCR_cjs.handleProcess(config);
|
|
13
|
+
chunk7V324BCR_cjs.writeInfo("Running post-commit hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkCIJVSMK2_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunk7V324BCR_cjs.writeError(
|
|
19
19
|
`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.
|
|
20
20
|
Error: ${error?.message}`,
|
|
21
21
|
config
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkCIJVSMK2_cjs.run(config, "git lfs post-commit");
|
|
26
|
-
|
|
26
|
+
chunk7V324BCR_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunk7V324BCR_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
33
33
|
process.exit(1);
|
|
34
34
|
}
|
|
35
35
|
})();
|
package/bin/post-commit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
3
|
import { run } from './chunk-54Q5U5WW.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-XJZXOYRK.js';
|
|
5
5
|
|
|
6
6
|
// bin/post-commit.ts
|
|
7
7
|
void (async () => {
|
package/bin/post-merge.cjs
CHANGED
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
5
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk7V324BCR_cjs = require('./chunk-7V324BCR.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-merge.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunk7V324BCR_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunk7V324BCR_cjs.handleProcess(config);
|
|
13
|
+
chunk7V324BCR_cjs.writeInfo("Running post-merge hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkCIJVSMK2_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunk7V324BCR_cjs.writeError(
|
|
19
19
|
`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.
|
|
20
20
|
Error: ${error?.message}`,
|
|
21
21
|
config
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkCIJVSMK2_cjs.run(config, "git lfs post-merge");
|
|
26
|
-
|
|
26
|
+
chunk7V324BCR_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunk7V324BCR_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
33
33
|
process.exit(1);
|
|
34
34
|
}
|
|
35
35
|
})();
|
package/bin/post-merge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
3
|
import { run } from './chunk-54Q5U5WW.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-XJZXOYRK.js';
|
|
5
5
|
|
|
6
6
|
// bin/post-merge.ts
|
|
7
7
|
void (async () => {
|
package/bin/pre-commit.cjs
CHANGED
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk7V324BCR_cjs = require('./chunk-7V324BCR.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/pre-commit.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunk7V324BCR_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunk7V324BCR_cjs.handleProcess(config);
|
|
12
|
+
chunk7V324BCR_cjs.writeInfo("Running pre-commit hook...", config);
|
|
13
13
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
|
|
14
14
|
if (chunkSWXHQXUT_cjs.isPackageVersionChanged(process.argv?.slice(1))) {
|
|
15
|
-
|
|
15
|
+
chunk7V324BCR_cjs.writeError(
|
|
16
16
|
"Please regenerate the package lock file before committing...",
|
|
17
17
|
config
|
|
18
18
|
);
|
|
19
|
-
|
|
19
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
chunk7V324BCR_cjs.exitWithSuccess(config);
|
|
22
22
|
} catch (error) {
|
|
23
|
-
|
|
23
|
+
chunk7V324BCR_cjs.writeFatal(
|
|
24
24
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
25
25
|
config
|
|
26
26
|
);
|
|
27
|
-
|
|
27
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
28
28
|
process.exit(1);
|
|
29
29
|
}
|
|
30
30
|
})();
|
package/bin/pre-commit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion, isPackageVersionChanged } from './chunk-AMSZ7DVW.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-XJZXOYRK.js';
|
|
4
4
|
|
|
5
5
|
// bin/pre-commit.ts
|
|
6
6
|
void (async () => {
|
package/bin/pre-install.cjs
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk7V324BCR_cjs = require('./chunk-7V324BCR.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/pre-install.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunk7V324BCR_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunk7V324BCR_cjs.handleProcess(config);
|
|
12
|
+
chunk7V324BCR_cjs.writeInfo("Running pre-install hook...", config);
|
|
13
13
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
chunk7V324BCR_cjs.writeInfo("Skipping pre-install for CI process...", config);
|
|
15
|
+
chunk7V324BCR_cjs.exitWithSuccess(config);
|
|
16
16
|
}
|
|
17
17
|
chunkCIJVSMK2_cjs.run(config, "npx -y only-allow pnpm");
|
|
18
|
-
|
|
18
|
+
chunk7V324BCR_cjs.exitWithSuccess(config);
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
chunk7V324BCR_cjs.writeFatal(
|
|
21
21
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
22
22
|
config
|
|
23
23
|
);
|
|
24
|
-
|
|
24
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|
|
27
27
|
})();
|
package/bin/pre-install.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-54Q5U5WW.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-XJZXOYRK.js';
|
|
4
4
|
|
|
5
5
|
// bin/pre-install.ts
|
|
6
6
|
void (async () => {
|
package/bin/pre-push.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
5
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk7V324BCR_cjs = require('./chunk-7V324BCR.cjs');
|
|
7
7
|
var fs = require('fs');
|
|
8
8
|
var promises = require('fs/promises');
|
|
9
9
|
var path = require('path');
|
|
@@ -14,12 +14,12 @@ var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
|
14
14
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
15
15
|
|
|
16
16
|
void (async () => {
|
|
17
|
-
const config = await
|
|
17
|
+
const config = await chunk7V324BCR_cjs.getConfig();
|
|
18
18
|
try {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
chunk7V324BCR_cjs.handleProcess(config);
|
|
20
|
+
chunk7V324BCR_cjs.writeInfo("Running pre-push hook...", config);
|
|
21
21
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
22
|
-
|
|
22
|
+
chunk7V324BCR_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
|
|
23
23
|
const errors = [];
|
|
24
24
|
if (fs__default.default.existsSync(
|
|
25
25
|
path__default.default.join(config.workspaceRoot ?? "./", "package-lock.json")
|
|
@@ -54,32 +54,32 @@ void (async () => {
|
|
|
54
54
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
55
55
|
}
|
|
56
56
|
if (errors.length > 0) {
|
|
57
|
-
|
|
57
|
+
chunk7V324BCR_cjs.writeError("\u274C Lock file validation failed", config);
|
|
58
58
|
for (const error of errors) {
|
|
59
59
|
console.error(error);
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
chunk7V324BCR_cjs.writeSuccess("Lock file is valid \u2705", config);
|
|
64
64
|
chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
|
|
65
65
|
try {
|
|
66
66
|
chunkCIJVSMK2_cjs.run(config, "git-lfs version");
|
|
67
67
|
} catch (error) {
|
|
68
|
-
|
|
68
|
+
chunk7V324BCR_cjs.writeError(
|
|
69
69
|
`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.
|
|
70
70
|
Error: ${error?.message}`,
|
|
71
71
|
config
|
|
72
72
|
);
|
|
73
|
-
|
|
73
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
74
74
|
}
|
|
75
75
|
chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
|
|
76
|
-
|
|
76
|
+
chunk7V324BCR_cjs.exitWithSuccess(config);
|
|
77
77
|
} catch (error) {
|
|
78
|
-
|
|
78
|
+
chunk7V324BCR_cjs.writeFatal(
|
|
79
79
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
80
80
|
config
|
|
81
81
|
);
|
|
82
|
-
|
|
82
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
83
83
|
process.exit(1);
|
|
84
84
|
}
|
|
85
85
|
})();
|
package/bin/pre-push.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
3
|
import { run } from './chunk-54Q5U5WW.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-XJZXOYRK.js';
|
|
5
5
|
import fs from 'node:fs';
|
|
6
6
|
import { readFile } from 'node:fs/promises';
|
|
7
7
|
import path from 'node:path';
|
package/bin/prepare.cjs
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk7V324BCR_cjs = require('./chunk-7V324BCR.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/prepare.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunk7V324BCR_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunk7V324BCR_cjs.handleProcess(config);
|
|
12
|
+
chunk7V324BCR_cjs.writeInfo("Running prepare hook...", config);
|
|
13
13
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
14
14
|
chunkCIJVSMK2_cjs.run(config, "lefthook install");
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
chunk7V324BCR_cjs.exitWithSuccess(config);
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunk7V324BCR_cjs.writeFatal(
|
|
19
19
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
20
20
|
config
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
23
23
|
process.exit(1);
|
|
24
24
|
}
|
|
25
25
|
})();
|
package/bin/prepare.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-54Q5U5WW.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-XJZXOYRK.js';
|
|
4
4
|
|
|
5
5
|
// bin/prepare.ts
|
|
6
6
|
void (async () => {
|
package/bin/version-warning.cjs
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk7V324BCR_cjs = require('./chunk-7V324BCR.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/version-warning.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunk7V324BCR_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
11
|
+
chunk7V324BCR_cjs.handleProcess(config);
|
|
12
12
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
|
|
13
13
|
} catch (error) {
|
|
14
|
-
|
|
14
|
+
chunk7V324BCR_cjs.writeFatal(
|
|
15
15
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
16
16
|
config
|
|
17
17
|
);
|
|
18
|
-
|
|
18
|
+
chunk7V324BCR_cjs.exitWithError(config);
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
})();
|
package/bin/version-warning.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
|
-
import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-XJZXOYRK.js';
|
|
4
4
|
|
|
5
5
|
// bin/version-warning.ts
|
|
6
6
|
void (async () => {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk2SHAD3P5cjs = require('./chunk-2SHAD3P5.cjs');
|
|
7
|
+
|
|
8
|
+
// src/commit/config/monorepo.ts
|
|
9
|
+
var config = {
|
|
10
|
+
settings: _chunk2SHAD3P5cjs.DEFAULT_MONOREPO_COMMIT_SETTINGS,
|
|
11
|
+
messages: _chunk2SHAD3P5cjs.DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
12
|
+
questions: _chunk2SHAD3P5cjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
|
|
13
|
+
types: _chunk2SHAD3P5cjs.COMMIT_TYPES
|
|
14
|
+
};
|
|
15
|
+
var monorepo_default = config;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.monorepo_default = monorepo_default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/types.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../conventional-changelog/src/commit-types.ts
|
|
2
2
|
var COMMIT_TYPES = {
|
|
3
3
|
/* --- Bumps version when selected --- */
|
|
4
4
|
"chore": {
|
|
@@ -128,6 +128,8 @@ var COMMIT_TYPES = {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
|
+
|
|
132
|
+
// src/types.ts
|
|
131
133
|
var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
|
|
132
134
|
type: {
|
|
133
135
|
type: "select",
|
|
@@ -255,8 +257,9 @@ var DEFAULT_MINIMAL_COMMIT_RULES = {
|
|
|
255
257
|
],
|
|
256
258
|
"type-max-length": [2 /* Error */, "always", 20],
|
|
257
259
|
"type-min-length": [2 /* Error */, "always", 3],
|
|
260
|
+
"scope-empty": 0 /* Disabled */,
|
|
258
261
|
"scope-case": 0 /* Disabled */,
|
|
259
|
-
"scope-
|
|
262
|
+
"scope-enum": 0 /* Disabled */
|
|
260
263
|
};
|
|
261
264
|
var DEFAULT_MONOREPO_COMMIT_RULES = {
|
|
262
265
|
"body-leading-blank": [1 /* Warning */, "always"],
|