@storm-software/git-tools 2.89.26 → 2.89.29
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-FJHQPSYU.js → chunk-F5UAXEVI.js} +25 -25
- package/bin/{chunk-WIDIIDDQ.cjs → chunk-NTA62AN7.cjs} +25 -25
- package/bin/git.cjs +116 -130
- package/bin/git.js +65 -79
- 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/lefthook/config.yml +4 -8
- package/dist/lint-staged/config.cjs +43 -43
- package/package.json +1 -1
package/bin/git.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-F5UAXEVI.js";
|
|
23
23
|
import {
|
|
24
24
|
defu
|
|
25
25
|
} from "./chunk-ZEYLUM4B.js";
|
|
@@ -64876,89 +64876,82 @@ __name(resolveGeneratorData, "resolveGeneratorData");
|
|
|
64876
64876
|
|
|
64877
64877
|
// src/release/run.ts
|
|
64878
64878
|
var runRelease = /* @__PURE__ */ __name(async (config, options) => {
|
|
64879
|
-
|
|
64880
|
-
|
|
64881
|
-
|
|
64882
|
-
|
|
64883
|
-
|
|
64884
|
-
|
|
64885
|
-
|
|
64886
|
-
|
|
64887
|
-
|
|
64888
|
-
|
|
64889
|
-
|
|
64890
|
-
|
|
64891
|
-
|
|
64892
|
-
writeDebug(`Using the following Git SHAs to determine the release content:
|
|
64879
|
+
process.env.GIT_AUTHOR_NAME = process.env.GITHUB_ACTOR;
|
|
64880
|
+
process.env.GIT_AUTHOR_EMAIL = `${process.env.GITHUB_ACTOR}@users.noreply.github.com`;
|
|
64881
|
+
process.env.GIT_COMMITTER_NAME = config.bot.name;
|
|
64882
|
+
process.env.GIT_COMMITTER_EMAIL = `${config.bot.name}@users.noreply.github.com`;
|
|
64883
|
+
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
64884
|
+
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
64885
|
+
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
64886
|
+
writeDebug("Creating workspace Project Graph data...", config);
|
|
64887
|
+
const nxJson = readNxJson2();
|
|
64888
|
+
writeDebug("Reading in the workspaces release configuration", config);
|
|
64889
|
+
const to = options.head || process.env.NX_HEAD;
|
|
64890
|
+
const from = options.base || process.env.NX_BASE;
|
|
64891
|
+
writeDebug(`Using the following Git SHAs to determine the release content:
|
|
64893
64892
|
- From: ${from}
|
|
64894
64893
|
- To: ${to}
|
|
64895
64894
|
`, config);
|
|
64896
|
-
|
|
64897
|
-
|
|
64898
|
-
|
|
64899
|
-
|
|
64900
|
-
|
|
64901
|
-
|
|
64902
|
-
|
|
64903
|
-
|
|
64904
|
-
|
|
64905
|
-
|
|
64906
|
-
|
|
64907
|
-
|
|
64908
|
-
|
|
64909
|
-
|
|
64910
|
-
|
|
64911
|
-
|
|
64912
|
-
|
|
64913
|
-
|
|
64914
|
-
|
|
64915
|
-
|
|
64916
|
-
|
|
64917
|
-
|
|
64918
|
-
|
|
64919
|
-
|
|
64920
|
-
|
|
64921
|
-
|
|
64922
|
-
|
|
64923
|
-
|
|
64924
|
-
|
|
64925
|
-
|
|
64926
|
-
|
|
64927
|
-
|
|
64928
|
-
|
|
64929
|
-
|
|
64930
|
-
|
|
64931
|
-
|
|
64932
|
-
|
|
64933
|
-
|
|
64934
|
-
|
|
64935
|
-
|
|
64895
|
+
if (nxJson.release?.groups) {
|
|
64896
|
+
nxJson.release.groups = Object.keys(nxJson.release.groups).reduce((ret, groupName) => {
|
|
64897
|
+
const groupConfig = nxJson.release.groups[groupName];
|
|
64898
|
+
ret[groupName] = defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
|
|
64899
|
+
return ret;
|
|
64900
|
+
}, {});
|
|
64901
|
+
}
|
|
64902
|
+
const nxReleaseConfig = defu(nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
64903
|
+
writeInfo("Using the following `nx.json` release configuration values", config);
|
|
64904
|
+
writeInfo(nxReleaseConfig, config);
|
|
64905
|
+
const releaseChangelog = createReleaseChangelogAPI(nxReleaseConfig);
|
|
64906
|
+
const releasePublish = createReleasePublishAPI(nxReleaseConfig);
|
|
64907
|
+
writeDebug("Determining the current release versions...", config);
|
|
64908
|
+
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
64909
|
+
dryRun: false,
|
|
64910
|
+
verbose: isVerbose(config.logLevel),
|
|
64911
|
+
preid: config.preid,
|
|
64912
|
+
deleteVersionPlans: false,
|
|
64913
|
+
stageChanges: true,
|
|
64914
|
+
gitCommit: false,
|
|
64915
|
+
gitTag: false
|
|
64916
|
+
});
|
|
64917
|
+
await releaseChangelog({
|
|
64918
|
+
...options,
|
|
64919
|
+
version: nxReleaseConfig?.projectsRelationship !== "fixed" ? void 0 : workspaceVersion,
|
|
64920
|
+
versionData: projectsVersionData,
|
|
64921
|
+
dryRun: false,
|
|
64922
|
+
verbose: isVerbose(config.logLevel),
|
|
64923
|
+
to,
|
|
64924
|
+
from,
|
|
64925
|
+
gitCommit: true,
|
|
64926
|
+
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
64927
|
+
});
|
|
64928
|
+
writeDebug("Tagging commit with git", config);
|
|
64929
|
+
if (options.skipPublish) {
|
|
64930
|
+
writeWarning("Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
64931
|
+
} else {
|
|
64932
|
+
const changedProjects = Object.keys(projectsVersionData).filter((key) => projectsVersionData[key]?.newVersion);
|
|
64933
|
+
if (changedProjects.length > 0) {
|
|
64934
|
+
writeInfo(`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
64936
64935
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
64937
64936
|
`, config);
|
|
64938
|
-
|
|
64939
|
-
|
|
64940
|
-
|
|
64941
|
-
|
|
64942
|
-
|
|
64943
|
-
|
|
64944
|
-
|
|
64945
|
-
|
|
64937
|
+
const result2 = await releasePublish({
|
|
64938
|
+
...options,
|
|
64939
|
+
dryRun: !!options.dryRun,
|
|
64940
|
+
verbose: isVerbose(config.logLevel)
|
|
64941
|
+
});
|
|
64942
|
+
const failedProjects = Object.keys(result2).filter((key) => result2[key]?.code && result2[key]?.code > 0);
|
|
64943
|
+
if (failedProjects.length > 0) {
|
|
64944
|
+
throw new Error(`The Storm release process was not completed successfully! One or more errors occured while running the \`nx-release-publish\` executor tasks.
|
|
64946
64945
|
|
|
64947
64946
|
Please review the workflow details for the following project(s):
|
|
64948
64947
|
${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${result2[failedProject]?.code})`).join("\n")}
|
|
64949
64948
|
`);
|
|
64950
|
-
}
|
|
64951
|
-
} else {
|
|
64952
|
-
writeWarning("Skipped publishing packages.", config);
|
|
64953
64949
|
}
|
|
64950
|
+
} else {
|
|
64951
|
+
writeWarning("Skipped publishing packages.", config);
|
|
64954
64952
|
}
|
|
64955
|
-
writeSuccess("Completed the Storm workspace release process!", config);
|
|
64956
|
-
} catch (error) {
|
|
64957
|
-
writeFatal("An exception was thrown while running the Storm release workflow.", config);
|
|
64958
|
-
error.message && writeError(`${error.name ? `${error.name}: ` : ""}${error.message}${error.stack ? `
|
|
64959
|
-
${error.stack}` : ""}`, config);
|
|
64960
|
-
throw error;
|
|
64961
64953
|
}
|
|
64954
|
+
writeSuccess("Completed the Storm workspace release process!", config);
|
|
64962
64955
|
}, "runRelease");
|
|
64963
64956
|
|
|
64964
64957
|
// src/cli/index.ts
|
|
@@ -65040,10 +65033,6 @@ async function releaseAction({ project, base, head, dryRun }) {
|
|
|
65040
65033
|
|
|
65041
65034
|
${error.message}`, _config);
|
|
65042
65035
|
writeFatal(error, _config);
|
|
65043
|
-
console.error("");
|
|
65044
|
-
console.error("Fatal release error: ");
|
|
65045
|
-
console.error(error);
|
|
65046
|
-
console.error("");
|
|
65047
65036
|
throw new Error(error.message, {
|
|
65048
65037
|
cause: error
|
|
65049
65038
|
});
|
|
@@ -65080,9 +65069,6 @@ void (async () => {
|
|
|
65080
65069
|
writeSuccess(`\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
65081
65070
|
exitWithSuccess(config);
|
|
65082
65071
|
} catch (error) {
|
|
65083
|
-
writeFatal(`A fatal error occurred while running the Storm Git tool:
|
|
65084
|
-
${error?.message ? error.message : JSON.stringify(error)}${error?.stack ? `
|
|
65085
|
-
Stack Trace: ${error.stack}` : ""}`, config);
|
|
65086
65072
|
exitWithError(config);
|
|
65087
65073
|
process.exit(1);
|
|
65088
65074
|
}
|
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 _chunkNTA62AN7cjs = require('./chunk-NTA62AN7.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 _chunkNTA62AN7cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkNTA62AN7cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkNTA62AN7cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkNTA62AN7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkNTA62AN7cjs.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 _chunkNTA62AN7cjs = require('./chunk-NTA62AN7.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 _chunkNTA62AN7cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkNTA62AN7cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkNTA62AN7cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkNTA62AN7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkNTA62AN7cjs.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 _chunkNTA62AN7cjs = require('./chunk-NTA62AN7.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 _chunkNTA62AN7cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkNTA62AN7cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkNTA62AN7cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkNTA62AN7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkNTA62AN7cjs.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 _chunkNTA62AN7cjs = require('./chunk-NTA62AN7.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 _chunkNTA62AN7cjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkNTA62AN7cjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkNTA62AN7cjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkNTA62AN7cjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkNTA62AN7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkNTA62AN7cjs.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 _chunkNTA62AN7cjs = require('./chunk-NTA62AN7.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 _chunkNTA62AN7cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkNTA62AN7cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkNTA62AN7cjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkNTA62AN7cjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkNTA62AN7cjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkNTA62AN7cjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkNTA62AN7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkNTA62AN7cjs.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 _chunkNTA62AN7cjs = require('./chunk-NTA62AN7.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 _chunkNTA62AN7cjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkNTA62AN7cjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunk7FWXX5NNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkNTA62AN7cjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkNTA62AN7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkNTA62AN7cjs.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 _chunkNTA62AN7cjs = require('./chunk-NTA62AN7.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 _chunkNTA62AN7cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkNTA62AN7cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkNTA62AN7cjs.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
|
+
_chunkNTA62AN7cjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkNTA62AN7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkNTA62AN7cjs.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 _chunkNTA62AN7cjs = require('./chunk-NTA62AN7.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 _chunkNTA62AN7cjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkNTA62AN7cjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkP2UJ7X76cjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkNTA62AN7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkNTA62AN7cjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED
package/dist/lefthook/config.yml
CHANGED
|
@@ -46,18 +46,15 @@ pre-commit:
|
|
|
46
46
|
stage_fixed: true
|
|
47
47
|
lint-toml:
|
|
48
48
|
glob: "**/*.toml"
|
|
49
|
-
run:
|
|
50
|
-
'pnpm exec taplo format --check
|
|
49
|
+
run: 'pnpm exec taplo format --check
|
|
51
50
|
--config="./node_modules/@storm-software/linting-tools/taplo/config.toml"'
|
|
52
51
|
lint-filename:
|
|
53
52
|
glob: "**/*.*"
|
|
54
|
-
run:
|
|
55
|
-
'pnpm exec ls-lint
|
|
53
|
+
run: 'pnpm exec ls-lint
|
|
56
54
|
--config="@storm-software/linting-tools/ls-lint/config.yml"'
|
|
57
55
|
lint-github-actions:
|
|
58
56
|
glob: ".github/workflows/*.*"
|
|
59
|
-
run:
|
|
60
|
-
'zizmor --offline
|
|
57
|
+
run: 'zizmor --offline
|
|
61
58
|
--config="./node_modules/@storm-software/linting-tools/zizmor/config.yml"
|
|
62
59
|
.github/workflows/'
|
|
63
60
|
readme-gen:
|
|
@@ -70,8 +67,7 @@ pre-commit:
|
|
|
70
67
|
stage_fixed: true
|
|
71
68
|
format-toml:
|
|
72
69
|
glob: "**/*.toml"
|
|
73
|
-
run:
|
|
74
|
-
'pnpm exec taplo format
|
|
70
|
+
run: 'pnpm exec taplo format
|
|
75
71
|
--config="@storm-software/linting-tools/taplo/config.toml" && git
|
|
76
72
|
update-index'
|
|
77
73
|
postbuild:
|