@storm-software/git-tools 2.130.20 → 2.130.21
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-CW3OIFB4.cjs → chunk-ATE3TAGF.cjs} +4 -4
- package/bin/{chunk-CW3OIFB4.cjs.map → chunk-ATE3TAGF.cjs.map} +1 -1
- package/bin/{chunk-I7B6IYBB.cjs → chunk-DI6PREU4.cjs} +8 -4
- package/bin/chunk-DI6PREU4.cjs.map +1 -0
- package/bin/{chunk-OGI5YX4H.js → chunk-ECWQIUB4.js} +3 -3
- package/bin/{chunk-OGI5YX4H.js.map → chunk-ECWQIUB4.js.map} +1 -1
- package/bin/{chunk-MOZKMSXM.cjs → chunk-EGDFRWIN.cjs} +4 -4
- package/bin/{chunk-MOZKMSXM.cjs.map → chunk-EGDFRWIN.cjs.map} +1 -1
- package/bin/{chunk-T4KL5T3Y.cjs → chunk-EGX3JSKB.cjs} +5 -5
- package/bin/{chunk-T4KL5T3Y.cjs.map → chunk-EGX3JSKB.cjs.map} +1 -1
- package/bin/{chunk-FQBQE6ZB.js → chunk-FVR6F5QB.js} +3 -3
- package/bin/{chunk-FQBQE6ZB.js.map → chunk-FVR6F5QB.js.map} +1 -1
- package/bin/{chunk-RKEJZ2TR.js → chunk-KTR6DN32.js} +3 -3
- package/bin/{chunk-RKEJZ2TR.js.map → chunk-KTR6DN32.js.map} +1 -1
- package/bin/{chunk-J7EC3A2H.cjs → chunk-LSV4BGLC.cjs} +4 -4
- package/bin/{chunk-J7EC3A2H.cjs.map → chunk-LSV4BGLC.cjs.map} +1 -1
- package/bin/{chunk-VPYYIUSQ.js → chunk-MQWJPO5J.js} +3 -3
- package/bin/{chunk-VPYYIUSQ.js.map → chunk-MQWJPO5J.js.map} +1 -1
- package/bin/{chunk-7F3TVMCA.cjs → chunk-QOXHPYED.cjs} +4 -4
- package/bin/{chunk-7F3TVMCA.cjs.map → chunk-QOXHPYED.cjs.map} +1 -1
- package/bin/{chunk-MWT3CRQG.js → chunk-QP6P24WO.js} +3 -3
- package/bin/{chunk-MWT3CRQG.js.map → chunk-QP6P24WO.js.map} +1 -1
- package/bin/{chunk-EQGVGVJD.js → chunk-UHJ3INXD.js} +3 -3
- package/bin/{chunk-EQGVGVJD.js.map → chunk-UHJ3INXD.js.map} +1 -1
- package/bin/{chunk-GUBKGNXI.js → chunk-VFP2YC56.js} +8 -4
- package/bin/chunk-VFP2YC56.js.map +1 -0
- package/bin/{chunk-CVJTBRYR.js → chunk-WRLNGX7N.js} +3 -3
- package/bin/{chunk-CVJTBRYR.js.map → chunk-WRLNGX7N.js.map} +1 -1
- package/bin/{chunk-I2HNX3GG.cjs → chunk-XFAV5NG6.cjs} +4 -4
- package/bin/{chunk-I2HNX3GG.cjs.map → chunk-XFAV5NG6.cjs.map} +1 -1
- package/bin/{chunk-OE7KAAB5.cjs → chunk-ZGZ6JZDP.cjs} +6 -6
- package/bin/{chunk-OE7KAAB5.cjs.map → chunk-ZGZ6JZDP.cjs.map} +1 -1
- package/bin/git.cjs +118 -118
- package/bin/git.js +8 -8
- package/bin/post-checkout.cjs +7 -7
- package/bin/post-checkout.js +2 -2
- package/bin/post-commit.cjs +7 -7
- package/bin/post-commit.js +2 -2
- package/bin/post-merge.cjs +7 -7
- package/bin/post-merge.js +2 -2
- package/bin/pre-commit.cjs +7 -7
- package/bin/pre-commit.js +2 -2
- package/bin/pre-install.cjs +7 -7
- package/bin/pre-install.js +2 -2
- package/bin/pre-push.cjs +7 -7
- package/bin/pre-push.js +2 -2
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +2 -2
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-UVILOGFH.cjs → chunk-N7GR4PRY.cjs} +6 -2
- package/dist/{chunk-NTYI6N67.js → chunk-ZHSRGVUS.js} +6 -2
- package/dist/index.cjs +8 -8
- package/dist/index.js +1 -1
- package/dist/release/config.cjs +8 -8
- package/dist/release/config.js +1 -1
- package/package.json +5 -5
- package/bin/chunk-GUBKGNXI.js.map +0 -1
- package/bin/chunk-I7B6IYBB.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkYHZNDNCW_cjs = require('./chunk-YHZNDNCW.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkDI6PREU4_cjs = require('./chunk-DI6PREU4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/hooks/pre-commit.ts
|
|
7
7
|
async function preCommitHook(config, files) {
|
|
8
|
-
|
|
8
|
+
chunkDI6PREU4_cjs.writeInfo("Running pre-commit hook...", config);
|
|
9
9
|
chunkYHZNDNCW_cjs.checkPackageVersion(files);
|
|
10
10
|
if (chunkYHZNDNCW_cjs.isPackageVersionChanged(files)) {
|
|
11
11
|
throw new Error(
|
|
@@ -15,5 +15,5 @@ async function preCommitHook(config, files) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
exports.preCommitHook = preCommitHook;
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-ATE3TAGF.cjs.map
|
|
19
|
+
//# sourceMappingURL=chunk-ATE3TAGF.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/pre-commit.ts"],"names":["writeInfo","checkPackageVersion","isPackageVersionChanged"],"mappings":";;;;;;AASA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,8BAA8B,MAAM,CAAA;AAE9C,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AACzB,EAAA,IAAIC,yCAAA,CAAwB,KAAK,CAAA,EAAG;AAClC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACF","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/pre-commit.ts"],"names":["writeInfo","checkPackageVersion","isPackageVersionChanged"],"mappings":";;;;;;AASA,eAAsB,aAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,8BAA8B,MAAM,CAAA;AAE9C,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AACzB,EAAA,IAAIC,yCAAA,CAAwB,KAAK,CAAA,EAAG;AAClC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACF","file":"chunk-ATE3TAGF.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { writeInfo } from \"@storm-software/config-tools\";\nimport {\n checkPackageVersion,\n isPackageVersionChanged\n} from \"../utilities/check-package-version\";\n\nexport async function preCommitHook(\n config: StormWorkspaceConfig,\n files: string[]\n) {\n writeInfo(\"Running pre-commit hook...\", config);\n\n checkPackageVersion(files);\n if (isPackageVersionChanged(files)) {\n throw new Error(\n \"Please regenerate the package lock file before committing...\"\n );\n }\n}\n"]}
|
|
@@ -3393,9 +3393,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
3393
3393
|
configInput.variant = fs.existsSync(joinPaths(_workspaceRoot, "nx.json")) || fs.existsSync(joinPaths(_workspaceRoot, ".nx")) || fs.existsSync(joinPaths(_workspaceRoot, "lerna.json")) || fs.existsSync(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
3394
3394
|
}
|
|
3395
3395
|
try {
|
|
3396
|
-
|
|
3397
|
-
|
|
3396
|
+
const parseResult = await Promise.resolve(
|
|
3397
|
+
workspaceConfigSchema._zod.parse(
|
|
3398
|
+
{ value: configInput, issues: [] },
|
|
3399
|
+
{ async: true }
|
|
3400
|
+
)
|
|
3398
3401
|
);
|
|
3402
|
+
result = applyDefaultConfig(parseResult.value);
|
|
3399
3403
|
result.workspaceRoot ??= _workspaceRoot;
|
|
3400
3404
|
} catch (error) {
|
|
3401
3405
|
throw new Error(
|
|
@@ -3466,5 +3470,5 @@ exports.writeInfo = writeInfo;
|
|
|
3466
3470
|
exports.writeSuccess = writeSuccess;
|
|
3467
3471
|
exports.writeTrace = writeTrace;
|
|
3468
3472
|
exports.writeWarning = writeWarning;
|
|
3469
|
-
//# sourceMappingURL=chunk-
|
|
3470
|
-
//# sourceMappingURL=chunk-
|
|
3473
|
+
//# sourceMappingURL=chunk-DI6PREU4.cjs.map
|
|
3474
|
+
//# sourceMappingURL=chunk-DI6PREU4.cjs.map
|