@storm-software/git-tools 2.112.2 → 2.112.3
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-XE275LJT.cjs → chunk-MZP2IRY3.cjs} +46 -3
- package/bin/{chunk-EAYXHTXS.js → chunk-OVA4IJGK.js} +46 -3
- package/bin/git.cjs +134 -120
- package/bin/git.js +23 -9
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/package.json +1 -1
package/bin/git.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeTrace,
|
|
22
22
|
writeWarning
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OVA4IJGK.js";
|
|
24
24
|
import {
|
|
25
25
|
defu
|
|
26
26
|
} from "./chunk-5QFXXGFE.js";
|
|
@@ -88248,7 +88248,7 @@ function generateChangelogTitle(version3, project, workspaceConfig) {
|
|
|
88248
88248
|
if (!workspaceConfig?.name || !project) {
|
|
88249
88249
|
return version3;
|
|
88250
88250
|
}
|
|
88251
|
-
return `[${version3}](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${project}%40${version3}) (${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)})`;
|
|
88251
|
+
return `[${version3}](https://github.com/${typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization?.name}/${workspaceConfig.name}/releases/tag/${project}%40${version3}) (${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)})`;
|
|
88252
88252
|
}
|
|
88253
88253
|
function parseChangelogMarkdown(contents) {
|
|
88254
88254
|
const CHANGELOG_RELEASE_HEAD_RE = new RegExp(
|
|
@@ -92343,7 +92343,7 @@ async function isUserAnOrganizationMember(userId, config, remoteName = "origin")
|
|
|
92343
92343
|
apiBaseUrl: repoData.apiBaseUrl,
|
|
92344
92344
|
token: tokenData?.token || null
|
|
92345
92345
|
},
|
|
92346
|
-
`/orgs/${config.organization}/members/${userId}`,
|
|
92346
|
+
`/orgs/${typeof config.organization === "string" ? config.organization : config.organization?.name}/members/${userId}`,
|
|
92347
92347
|
{}
|
|
92348
92348
|
);
|
|
92349
92349
|
if (result2.status !== 204) {
|
|
@@ -93370,20 +93370,34 @@ function formatGithubReleaseNotes(releaseVersion, content, projectName, workspac
|
|
|
93370
93370
|
if (!workspaceConfig) {
|
|
93371
93371
|
return content;
|
|
93372
93372
|
}
|
|
93373
|
-
return `
|
|
93374
93376
|
${workspaceConfig.release.header || ""}
|
|
93375
93377
|
|
|
93376
93378
|
# ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion.rawVersion}
|
|
93377
93379
|
|
|
93378
|
-
We at [${
|
|
93380
|
+
We at [${workspaceConfig.organization ? titleCase(
|
|
93381
|
+
typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
|
|
93382
|
+
) : ""}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
|
|
93379
93383
|
|
|
93380
93384
|
These changes are released under the ${workspaceConfig.license.includes("license") ? workspaceConfig.license : `${workspaceConfig.license} license`}. You can find more details on [our licensing page](${workspaceConfig.licensing}). You can find guides, API references, and other documentation around this release (and much more) on [our documentation site](${workspaceConfig.docs}).
|
|
93381
93385
|
|
|
93382
|
-
If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by giving [this repository](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${titleCase(projectName)?.replaceAll(" ", "%20")}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
|
|
93386
|
+
If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by giving [this repository](https://github.com/${typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization?.name}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${titleCase(projectName)?.replaceAll(" ", "%20")}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization?.name}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
|
|
93383
93387
|
|
|
93384
93388
|
## Release Notes
|
|
93385
93389
|
|
|
93386
|
-
${content.replaceAll(
|
|
93390
|
+
${content.replaceAll(
|
|
93391
|
+
`## ${generateChangelogTitle(
|
|
93392
|
+
releaseVersion.rawVersion,
|
|
93393
|
+
projectName,
|
|
93394
|
+
workspaceConfig
|
|
93395
|
+
)}`,
|
|
93396
|
+
""
|
|
93397
|
+
).replaceAll(
|
|
93398
|
+
`# ${generateChangelogTitle(releaseVersion.rawVersion, projectName, workspaceConfig)}`,
|
|
93399
|
+
""
|
|
93400
|
+
)}
|
|
93387
93401
|
|
|
93388
93402
|
---
|
|
93389
93403
|
|
|
@@ -93469,7 +93483,7 @@ var runRelease = async (config, options) => {
|
|
|
93469
93483
|
config
|
|
93470
93484
|
);
|
|
93471
93485
|
throw new Error(
|
|
93472
|
-
`The GitHub actor "${process.env.GITHUB_ACTOR}" is not a member of the organization "${config.organization}". Only members of the organization can initiate releases.`
|
|
93486
|
+
`The GitHub actor "${process.env.GITHUB_ACTOR}" is not a member of the organization "${typeof config.organization === "string" ? config.organization : config.organization?.name}". Only members of the organization can initiate releases.`
|
|
93473
93487
|
);
|
|
93474
93488
|
}
|
|
93475
93489
|
const name = config.bot.name;
|
|
@@ -93776,7 +93790,7 @@ async function commitLintAction({
|
|
|
93776
93790
|
}) {
|
|
93777
93791
|
try {
|
|
93778
93792
|
writeInfo(
|
|
93779
|
-
`\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.`,
|
|
93793
|
+
`\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : typeof _config.organization === "string" ? _config.organization : _config.organization?.name ? _config.organization?.name : "Storm-Software"} repository's commit messages.`,
|
|
93780
93794
|
_config
|
|
93781
93795
|
);
|
|
93782
93796
|
await runCommitLint(_config, {
|
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
|
|
17
17
|
require('./chunk-FMYKTN2Z.cjs');
|
|
18
18
|
require('./chunk-MXO7CLUN.cjs');
|
|
19
19
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -27,29 +27,29 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkMZP2IRY3cjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
|
|
34
34
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkMZP2IRY3cjs.writeError.call(void 0,
|
|
39
39
|
`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.
|
|
40
40
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
44
44
|
}
|
|
45
45
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
46
|
-
|
|
46
|
+
_chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
|
|
47
47
|
} catch (error) {
|
|
48
|
-
|
|
48
|
+
_chunkMZP2IRY3cjs.writeFatal.call(void 0,
|
|
49
49
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
50
50
|
config
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
53
53
|
process.exit(1);
|
|
54
54
|
}
|
|
55
55
|
})();
|
package/bin/post-checkout.js
CHANGED
package/bin/post-commit.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
|
|
17
17
|
require('./chunk-FMYKTN2Z.cjs');
|
|
18
18
|
require('./chunk-MXO7CLUN.cjs');
|
|
19
19
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -27,29 +27,29 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkMZP2IRY3cjs.writeInfo.call(void 0, "Running post-commit hook...", config);
|
|
34
34
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkMZP2IRY3cjs.writeError.call(void 0,
|
|
39
39
|
`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.
|
|
40
40
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
44
44
|
}
|
|
45
45
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-commit");
|
|
46
|
-
|
|
46
|
+
_chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
|
|
47
47
|
} catch (error) {
|
|
48
|
-
|
|
48
|
+
_chunkMZP2IRY3cjs.writeFatal.call(void 0,
|
|
49
49
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
50
50
|
config
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
53
53
|
process.exit(1);
|
|
54
54
|
}
|
|
55
55
|
})();
|
package/bin/post-commit.js
CHANGED
package/bin/post-merge.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
|
|
17
17
|
require('./chunk-FMYKTN2Z.cjs');
|
|
18
18
|
require('./chunk-MXO7CLUN.cjs');
|
|
19
19
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -27,29 +27,29 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
27
27
|
// bin/post-merge.ts
|
|
28
28
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkMZP2IRY3cjs.writeInfo.call(void 0, "Running post-merge hook...", config);
|
|
34
34
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkMZP2IRY3cjs.writeError.call(void 0,
|
|
39
39
|
`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.
|
|
40
40
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
44
44
|
}
|
|
45
45
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-merge");
|
|
46
|
-
|
|
46
|
+
_chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
|
|
47
47
|
} catch (error) {
|
|
48
|
-
|
|
48
|
+
_chunkMZP2IRY3cjs.writeFatal.call(void 0,
|
|
49
49
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
50
50
|
config
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
53
53
|
process.exit(1);
|
|
54
54
|
}
|
|
55
55
|
})();
|
package/bin/post-merge.js
CHANGED
package/bin/pre-commit.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
|
|
15
15
|
require('./chunk-FMYKTN2Z.cjs');
|
|
16
16
|
require('./chunk-MXO7CLUN.cjs');
|
|
17
17
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -25,25 +25,25 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkMZP2IRY3cjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunkHTVOKCRJcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
34
|
+
_chunkMZP2IRY3cjs.writeError.call(void 0,
|
|
35
35
|
"Please regenerate the package lock file before committing...",
|
|
36
36
|
config
|
|
37
37
|
);
|
|
38
|
-
|
|
38
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
_chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
|
|
41
41
|
} catch (error) {
|
|
42
|
-
|
|
42
|
+
_chunkMZP2IRY3cjs.writeFatal.call(void 0,
|
|
43
43
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
44
44
|
config
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/pre-commit.js
CHANGED
package/bin/pre-install.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
|
|
13
13
|
require('./chunk-FMYKTN2Z.cjs');
|
|
14
14
|
require('./chunk-MXO7CLUN.cjs');
|
|
15
15
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -23,22 +23,22 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkMZP2IRY3cjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkMZP2IRY3cjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkGWDOCACNcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
37
|
+
_chunkMZP2IRY3cjs.writeFatal.call(void 0,
|
|
38
38
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
39
39
|
config
|
|
40
40
|
);
|
|
41
|
-
|
|
41
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
42
42
|
process.exit(1);
|
|
43
43
|
}
|
|
44
44
|
})();
|
package/bin/pre-install.js
CHANGED
package/bin/pre-push.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
|
|
18
18
|
require('./chunk-FMYKTN2Z.cjs');
|
|
19
19
|
require('./chunk-MXO7CLUN.cjs');
|
|
20
20
|
require('./chunk-GSZ2Y7H4.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 _chunkMZP2IRY3cjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkMZP2IRY3cjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkMZP2IRY3cjs.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(
|
|
42
42
|
_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json")
|
|
@@ -71,32 +71,32 @@ void (async () => {
|
|
|
71
71
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
72
72
|
}
|
|
73
73
|
if (errors.length > 0) {
|
|
74
|
-
|
|
74
|
+
_chunkMZP2IRY3cjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
|
|
75
75
|
for (const error of errors) {
|
|
76
76
|
console.error(error);
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
_chunkMZP2IRY3cjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
81
81
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
82
82
|
try {
|
|
83
83
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
84
84
|
} catch (error) {
|
|
85
|
-
|
|
85
|
+
_chunkMZP2IRY3cjs.writeError.call(void 0,
|
|
86
86
|
`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.
|
|
87
87
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
88
88
|
config
|
|
89
89
|
);
|
|
90
|
-
|
|
90
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
91
91
|
}
|
|
92
92
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
93
|
-
|
|
93
|
+
_chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
|
|
94
94
|
} catch (error) {
|
|
95
|
-
|
|
95
|
+
_chunkMZP2IRY3cjs.writeFatal.call(void 0,
|
|
96
96
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
97
97
|
config
|
|
98
98
|
);
|
|
99
|
-
|
|
99
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
100
100
|
process.exit(1);
|
|
101
101
|
}
|
|
102
102
|
})();
|
package/bin/pre-push.js
CHANGED
package/bin/prepare.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
|
|
13
13
|
require('./chunk-FMYKTN2Z.cjs');
|
|
14
14
|
require('./chunk-MXO7CLUN.cjs');
|
|
15
15
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -23,20 +23,20 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkMZP2IRY3cjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunkGWDOCACNcjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
35
|
+
_chunkMZP2IRY3cjs.writeFatal.call(void 0,
|
|
36
36
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
40
40
|
process.exit(1);
|
|
41
41
|
}
|
|
42
42
|
})();
|
package/bin/prepare.js
CHANGED
package/bin/version-warning.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
|
|
11
11
|
require('./chunk-FMYKTN2Z.cjs');
|
|
12
12
|
require('./chunk-MXO7CLUN.cjs');
|
|
13
13
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -21,16 +21,16 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
29
|
+
_chunkMZP2IRY3cjs.writeFatal.call(void 0,
|
|
30
30
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
31
31
|
config
|
|
32
32
|
);
|
|
33
|
-
|
|
33
|
+
_chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
|
|
34
34
|
process.exit(1);
|
|
35
35
|
}
|
|
36
36
|
})();
|
package/bin/version-warning.js
CHANGED