@storm-software/git-tools 2.124.86 → 2.125.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 +1 -1
- package/bin/chunk-3IBASKZ6.cjs +16 -0
- package/bin/chunk-3IBASKZ6.cjs.map +1 -0
- package/bin/chunk-6FITE6HP.js +52 -0
- package/bin/chunk-6FITE6HP.js.map +1 -0
- package/bin/chunk-C7APS633.cjs +19 -0
- package/bin/chunk-C7APS633.cjs.map +1 -0
- package/bin/{chunk-ZBLIE7F7.cjs → chunk-DFXXNV3C.cjs} +2 -3
- package/bin/chunk-DFXXNV3C.cjs.map +1 -0
- package/bin/chunk-EI723ABQ.cjs +59 -0
- package/bin/chunk-EI723ABQ.cjs.map +1 -0
- package/bin/{chunk-Q3DQKTOI.js → chunk-HBLWPOJV.js} +5 -5
- package/bin/chunk-HBLWPOJV.js.map +1 -0
- package/bin/chunk-IA2Z3BAB.cjs +18 -0
- package/bin/chunk-IA2Z3BAB.cjs.map +1 -0
- package/bin/chunk-JE32WMBP.js +17 -0
- package/bin/chunk-JE32WMBP.js.map +1 -0
- package/bin/chunk-LHPUN2YZ.js +22 -0
- package/bin/chunk-LHPUN2YZ.js.map +1 -0
- package/bin/chunk-N7J3ORRT.js +14 -0
- package/bin/chunk-N7J3ORRT.js.map +1 -0
- package/bin/chunk-ROGUZ46T.js +22 -0
- package/bin/chunk-ROGUZ46T.js.map +1 -0
- package/bin/chunk-RZZ5UCVV.js +22 -0
- package/bin/chunk-RZZ5UCVV.js.map +1 -0
- package/bin/{chunk-WQI3QHPS.js → chunk-S3E6UR4Y.js} +3 -3
- package/bin/chunk-S3E6UR4Y.js.map +1 -0
- package/bin/chunk-S7Z6YPPG.js +16 -0
- package/bin/chunk-S7Z6YPPG.js.map +1 -0
- package/bin/chunk-XHWHVOBP.cjs +24 -0
- package/bin/chunk-XHWHVOBP.cjs.map +1 -0
- package/bin/{chunk-AU5PZKTN.cjs → chunk-YHZNDNCW.cjs} +5 -5
- package/bin/chunk-YHZNDNCW.cjs.map +1 -0
- package/bin/chunk-Z64XNZ43.cjs +24 -0
- package/bin/chunk-Z64XNZ43.cjs.map +1 -0
- package/bin/chunk-ZW2KYP2Z.cjs +24 -0
- package/bin/chunk-ZW2KYP2Z.cjs.map +1 -0
- package/bin/git.cjs +206 -84
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +129 -7
- package/bin/git.js.map +1 -1
- package/bin/post-checkout.cjs +9 -21
- package/bin/post-checkout.cjs.map +1 -1
- package/bin/post-checkout.js +5 -17
- package/bin/post-checkout.js.map +1 -1
- package/bin/post-commit.cjs +9 -21
- package/bin/post-commit.cjs.map +1 -1
- package/bin/post-commit.js +5 -17
- package/bin/post-commit.js.map +1 -1
- package/bin/post-merge.cjs +9 -21
- package/bin/post-merge.cjs.map +1 -1
- package/bin/post-merge.js +5 -17
- package/bin/post-merge.js.map +1 -1
- package/bin/pre-commit.cjs +8 -16
- package/bin/pre-commit.cjs.map +1 -1
- package/bin/pre-commit.js +4 -12
- package/bin/pre-commit.js.map +1 -1
- package/bin/pre-install.cjs +8 -13
- package/bin/pre-install.cjs.map +1 -1
- package/bin/pre-install.js +4 -9
- package/bin/pre-install.js.map +1 -1
- package/bin/pre-push.cjs +9 -72
- package/bin/pre-push.cjs.map +1 -1
- package/bin/pre-push.js +5 -63
- package/bin/pre-push.js.map +1 -1
- package/bin/prepare.cjs +8 -11
- package/bin/prepare.cjs.map +1 -1
- package/bin/prepare.js +4 -7
- package/bin/prepare.js.map +1 -1
- package/bin/version-warning.cjs +7 -7
- package/bin/version-warning.js +2 -2
- package/dist/chunk-2NF67ZEY.js +14 -0
- package/dist/chunk-5DVCH44C.cjs +22 -0
- package/dist/{chunk-NY53WLGC.cjs → chunk-7ZSL4J35.cjs} +9 -9
- package/dist/chunk-AU2RMJUK.js +20 -0
- package/dist/chunk-BUQYMEBK.cjs +17 -0
- package/dist/chunk-C6MBULOZ.js +15 -0
- package/dist/chunk-DMVL4OYZ.cjs +14 -0
- package/dist/chunk-ENL3GCXS.cjs +2 -0
- package/dist/chunk-F2HQMRJH.cjs +16 -0
- package/dist/chunk-FJL2V56E.cjs +24 -0
- package/dist/chunk-GTOCMU46.cjs +57 -0
- package/dist/chunk-HMHOHK22.js +17 -0
- package/dist/{chunk-VVJA5N2W.js → chunk-HVTQXN3A.js} +3 -285
- package/dist/chunk-JOPN56T4.js +22 -0
- package/dist/chunk-LSTKPCAN.cjs +22 -0
- package/dist/chunk-Q47SPRY7.js +1 -0
- package/dist/chunk-QCNDIFYQ.cjs +20 -0
- package/dist/chunk-RK75BACO.js +50 -0
- package/dist/{chunk-EMYFDYKP.cjs → chunk-RQ67RJVN.cjs} +13 -296
- package/dist/chunk-SIFTTG22.cjs +303 -0
- package/dist/chunk-UQMGLURT.js +20 -0
- package/dist/{chunk-JCEVFJCA.js → chunk-USTER7R2.js} +2 -2
- package/dist/chunk-X7F62ZNF.js +290 -0
- package/dist/chunk-YUE6ZNKC.js +12 -0
- package/dist/chunk-Z4CPTYLS.cjs +22 -0
- package/dist/chunk-ZKDVZXHI.js +20 -0
- package/dist/commit/minimal.cjs +4 -4
- package/dist/commit/minimal.js +2 -2
- package/dist/commit/monorepo.cjs +5 -5
- package/dist/commit/monorepo.js +3 -3
- package/dist/index.cjs +51 -12
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +15 -4
- package/dist/lefthook/minimal.yml +69 -0
- package/dist/lefthook/recommended.yml +60 -0
- package/dist/lefthook/strict.yml +32 -0
- package/dist/release/config.cjs +13 -11
- package/dist/release/config.js +6 -4
- package/package.json +79 -65
- package/bin/chunk-AU5PZKTN.cjs.map +0 -1
- package/bin/chunk-Q3DQKTOI.js.map +0 -1
- package/bin/chunk-WQI3QHPS.js.map +0 -1
- package/bin/chunk-ZBLIE7F7.cjs.map +0 -1
- package/dist/lefthook/config.yml +0 -119
- package/dist/{chunk-F7OO6L26.cjs → chunk-CT6VGZZS.cjs} +1 -1
- package/dist/{chunk-KZRVQ5RZ.js → chunk-WCAKLYL2.js} +1 -1
package/bin/post-checkout.cjs
CHANGED
|
@@ -1,35 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var chunkZW2KYP2Z_cjs = require('./chunk-ZW2KYP2Z.cjs');
|
|
5
|
+
require('./chunk-YHZNDNCW.cjs');
|
|
6
|
+
require('./chunk-FH5OSXAJ.cjs');
|
|
7
|
+
var chunkDFXXNV3C_cjs = require('./chunk-DFXXNV3C.cjs');
|
|
7
8
|
|
|
8
9
|
// bin/post-checkout.ts
|
|
9
10
|
void (async () => {
|
|
10
|
-
const config = await
|
|
11
|
+
const config = await chunkDFXXNV3C_cjs.getConfig();
|
|
11
12
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
|
-
try {
|
|
16
|
-
chunkFH5OSXAJ_cjs.run(config, "git-lfs version");
|
|
17
|
-
} catch (error) {
|
|
18
|
-
chunkZBLIE7F7_cjs.writeError(
|
|
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
|
-
Error: ${error?.message}`,
|
|
21
|
-
config
|
|
22
|
-
);
|
|
23
|
-
chunkZBLIE7F7_cjs.exitWithError(config);
|
|
24
|
-
}
|
|
25
|
-
chunkFH5OSXAJ_cjs.run(config, "git lfs post-checkout");
|
|
26
|
-
chunkZBLIE7F7_cjs.exitWithSuccess(config);
|
|
13
|
+
await chunkZW2KYP2Z_cjs.postCheckoutHook(config, process.argv.slice(2));
|
|
14
|
+
chunkDFXXNV3C_cjs.exitWithSuccess(config);
|
|
27
15
|
} catch (error) {
|
|
28
|
-
|
|
16
|
+
chunkDFXXNV3C_cjs.writeFatal(
|
|
29
17
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
18
|
config
|
|
31
19
|
);
|
|
32
|
-
|
|
20
|
+
chunkDFXXNV3C_cjs.exitWithError(config);
|
|
33
21
|
process.exit(1);
|
|
34
22
|
}
|
|
35
23
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/post-checkout.ts"],"names":["getConfig","
|
|
1
|
+
{"version":3,"sources":["../../bin/post-checkout.ts"],"names":["getConfig","postCheckoutHook","exitWithSuccess","writeFatal","exitWithError"],"mappings":";;;;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAMA,2BAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAMC,mCAAiB,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAEpD,IAAAC,iCAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAAC,4BAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAAC,+BAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"post-checkout.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { postCheckoutHook } from \"../src/hooks/post-checkout\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await postCheckoutHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/post-checkout.js
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { postCheckoutHook } from './chunk-ROGUZ46T.js';
|
|
3
|
+
import './chunk-HBLWPOJV.js';
|
|
4
|
+
import './chunk-G3YPGVPS.js';
|
|
5
|
+
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-S3E6UR4Y.js';
|
|
5
6
|
|
|
6
7
|
// bin/post-checkout.ts
|
|
7
8
|
void (async () => {
|
|
8
9
|
const config = await getConfig();
|
|
9
10
|
try {
|
|
10
|
-
|
|
11
|
-
writeInfo("Running post-checkout hook...", config);
|
|
12
|
-
checkPackageVersion(process.argv?.slice(1));
|
|
13
|
-
try {
|
|
14
|
-
run(config, "git-lfs version");
|
|
15
|
-
} catch (error) {
|
|
16
|
-
writeError(
|
|
17
|
-
`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.
|
|
18
|
-
Error: ${error?.message}`,
|
|
19
|
-
config
|
|
20
|
-
);
|
|
21
|
-
exitWithError(config);
|
|
22
|
-
}
|
|
23
|
-
run(config, "git lfs post-checkout");
|
|
11
|
+
await postCheckoutHook(config, process.argv.slice(2));
|
|
24
12
|
exitWithSuccess(config);
|
|
25
13
|
} catch (error) {
|
|
26
14
|
writeFatal(
|
package/bin/post-checkout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/post-checkout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../bin/post-checkout.ts"],"names":[],"mappings":";;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAM,SAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAM,iBAAiB,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAEpD,IAAA,eAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAA,UAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAA,aAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"post-checkout.js","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { postCheckoutHook } from \"../src/hooks/post-checkout\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await postCheckoutHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/post-commit.cjs
CHANGED
|
@@ -1,35 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var chunkXHWHVOBP_cjs = require('./chunk-XHWHVOBP.cjs');
|
|
5
|
+
require('./chunk-YHZNDNCW.cjs');
|
|
6
|
+
require('./chunk-FH5OSXAJ.cjs');
|
|
7
|
+
var chunkDFXXNV3C_cjs = require('./chunk-DFXXNV3C.cjs');
|
|
7
8
|
|
|
8
9
|
// bin/post-commit.ts
|
|
9
10
|
void (async () => {
|
|
10
|
-
const config = await
|
|
11
|
+
const config = await chunkDFXXNV3C_cjs.getConfig();
|
|
11
12
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
|
-
try {
|
|
16
|
-
chunkFH5OSXAJ_cjs.run(config, "git-lfs version");
|
|
17
|
-
} catch (error) {
|
|
18
|
-
chunkZBLIE7F7_cjs.writeError(
|
|
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
|
-
Error: ${error?.message}`,
|
|
21
|
-
config
|
|
22
|
-
);
|
|
23
|
-
chunkZBLIE7F7_cjs.exitWithError(config);
|
|
24
|
-
}
|
|
25
|
-
chunkFH5OSXAJ_cjs.run(config, "git lfs post-commit");
|
|
26
|
-
chunkZBLIE7F7_cjs.exitWithSuccess(config);
|
|
13
|
+
await chunkXHWHVOBP_cjs.postCommitHook(config, process.argv.slice(2));
|
|
14
|
+
chunkDFXXNV3C_cjs.exitWithSuccess(config);
|
|
27
15
|
} catch (error) {
|
|
28
|
-
|
|
16
|
+
chunkDFXXNV3C_cjs.writeFatal(
|
|
29
17
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
18
|
config
|
|
31
19
|
);
|
|
32
|
-
|
|
20
|
+
chunkDFXXNV3C_cjs.exitWithError(config);
|
|
33
21
|
process.exit(1);
|
|
34
22
|
}
|
|
35
23
|
})();
|
package/bin/post-commit.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/post-commit.ts"],"names":["getConfig","
|
|
1
|
+
{"version":3,"sources":["../../bin/post-commit.ts"],"names":["getConfig","postCommitHook","exitWithSuccess","writeFatal","exitWithError"],"mappings":";;;;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAMA,2BAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAMC,iCAAe,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAElD,IAAAC,iCAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAAC,4BAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAAC,+BAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"post-commit.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { postCommitHook } from \"../src/hooks/post-commit\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await postCommitHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/post-commit.js
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { postCommitHook } from './chunk-RZZ5UCVV.js';
|
|
3
|
+
import './chunk-HBLWPOJV.js';
|
|
4
|
+
import './chunk-G3YPGVPS.js';
|
|
5
|
+
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-S3E6UR4Y.js';
|
|
5
6
|
|
|
6
7
|
// bin/post-commit.ts
|
|
7
8
|
void (async () => {
|
|
8
9
|
const config = await getConfig();
|
|
9
10
|
try {
|
|
10
|
-
|
|
11
|
-
writeInfo("Running post-commit hook...", config);
|
|
12
|
-
checkPackageVersion(process.argv?.slice(1));
|
|
13
|
-
try {
|
|
14
|
-
run(config, "git-lfs version");
|
|
15
|
-
} catch (error) {
|
|
16
|
-
writeError(
|
|
17
|
-
`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.
|
|
18
|
-
Error: ${error?.message}`,
|
|
19
|
-
config
|
|
20
|
-
);
|
|
21
|
-
exitWithError(config);
|
|
22
|
-
}
|
|
23
|
-
run(config, "git lfs post-commit");
|
|
11
|
+
await postCommitHook(config, process.argv.slice(2));
|
|
24
12
|
exitWithSuccess(config);
|
|
25
13
|
} catch (error) {
|
|
26
14
|
writeFatal(
|
package/bin/post-commit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/post-commit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../bin/post-commit.ts"],"names":[],"mappings":";;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAM,SAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAM,eAAe,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAElD,IAAA,eAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAA,UAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAA,aAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"post-commit.js","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { postCommitHook } from \"../src/hooks/post-commit\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await postCommitHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/post-merge.cjs
CHANGED
|
@@ -1,35 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var chunkZ64XNZ43_cjs = require('./chunk-Z64XNZ43.cjs');
|
|
5
|
+
require('./chunk-YHZNDNCW.cjs');
|
|
6
|
+
require('./chunk-FH5OSXAJ.cjs');
|
|
7
|
+
var chunkDFXXNV3C_cjs = require('./chunk-DFXXNV3C.cjs');
|
|
7
8
|
|
|
8
9
|
// bin/post-merge.ts
|
|
9
10
|
void (async () => {
|
|
10
|
-
const config = await
|
|
11
|
+
const config = await chunkDFXXNV3C_cjs.getConfig();
|
|
11
12
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
|
-
try {
|
|
16
|
-
chunkFH5OSXAJ_cjs.run(config, "git-lfs version");
|
|
17
|
-
} catch (error) {
|
|
18
|
-
chunkZBLIE7F7_cjs.writeError(
|
|
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
|
-
Error: ${error?.message}`,
|
|
21
|
-
config
|
|
22
|
-
);
|
|
23
|
-
chunkZBLIE7F7_cjs.exitWithError(config);
|
|
24
|
-
}
|
|
25
|
-
chunkFH5OSXAJ_cjs.run(config, "git lfs post-merge");
|
|
26
|
-
chunkZBLIE7F7_cjs.exitWithSuccess(config);
|
|
13
|
+
await chunkZ64XNZ43_cjs.postMergeHook(config, process.argv.slice(2));
|
|
14
|
+
chunkDFXXNV3C_cjs.exitWithSuccess(config);
|
|
27
15
|
} catch (error) {
|
|
28
|
-
|
|
16
|
+
chunkDFXXNV3C_cjs.writeFatal(
|
|
29
17
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
18
|
config
|
|
31
19
|
);
|
|
32
|
-
|
|
20
|
+
chunkDFXXNV3C_cjs.exitWithError(config);
|
|
33
21
|
process.exit(1);
|
|
34
22
|
}
|
|
35
23
|
})();
|
package/bin/post-merge.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/post-merge.ts"],"names":["getConfig","
|
|
1
|
+
{"version":3,"sources":["../../bin/post-merge.ts"],"names":["getConfig","postMergeHook","exitWithSuccess","writeFatal","exitWithError"],"mappings":";;;;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAMA,2BAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAMC,gCAAc,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAEjD,IAAAC,iCAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAAC,4BAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAAC,+BAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"post-merge.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { postMergeHook } from \"../src/hooks/post-merge\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await postMergeHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/post-merge.js
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { postMergeHook } from './chunk-LHPUN2YZ.js';
|
|
3
|
+
import './chunk-HBLWPOJV.js';
|
|
4
|
+
import './chunk-G3YPGVPS.js';
|
|
5
|
+
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-S3E6UR4Y.js';
|
|
5
6
|
|
|
6
7
|
// bin/post-merge.ts
|
|
7
8
|
void (async () => {
|
|
8
9
|
const config = await getConfig();
|
|
9
10
|
try {
|
|
10
|
-
|
|
11
|
-
writeInfo("Running post-merge hook...", config);
|
|
12
|
-
checkPackageVersion(process.argv?.slice(1));
|
|
13
|
-
try {
|
|
14
|
-
run(config, "git-lfs version");
|
|
15
|
-
} catch (error) {
|
|
16
|
-
writeError(
|
|
17
|
-
`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.
|
|
18
|
-
Error: ${error?.message}`,
|
|
19
|
-
config
|
|
20
|
-
);
|
|
21
|
-
exitWithError(config);
|
|
22
|
-
}
|
|
23
|
-
run(config, "git lfs post-merge");
|
|
11
|
+
await postMergeHook(config, process.argv.slice(2));
|
|
24
12
|
exitWithSuccess(config);
|
|
25
13
|
} catch (error) {
|
|
26
14
|
writeFatal(
|
package/bin/post-merge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/post-merge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../bin/post-merge.ts"],"names":[],"mappings":";;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAM,SAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAM,cAAc,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAEjD,IAAA,eAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAA,UAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAA,aAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"post-merge.js","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { postMergeHook } from \"../src/hooks/post-merge\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await postMergeHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/pre-commit.cjs
CHANGED
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
|
|
4
|
+
var chunkC7APS633_cjs = require('./chunk-C7APS633.cjs');
|
|
5
|
+
require('./chunk-YHZNDNCW.cjs');
|
|
6
|
+
var chunkDFXXNV3C_cjs = require('./chunk-DFXXNV3C.cjs');
|
|
6
7
|
|
|
7
8
|
// bin/pre-commit.ts
|
|
8
9
|
void (async () => {
|
|
9
|
-
const config = await
|
|
10
|
+
const config = await chunkDFXXNV3C_cjs.getConfig();
|
|
10
11
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv.slice(1));
|
|
14
|
-
if (chunkAU5PZKTN_cjs.isPackageVersionChanged(process.argv?.slice(1))) {
|
|
15
|
-
chunkZBLIE7F7_cjs.writeError(
|
|
16
|
-
"Please regenerate the package lock file before committing...",
|
|
17
|
-
config
|
|
18
|
-
);
|
|
19
|
-
chunkZBLIE7F7_cjs.exitWithError(config);
|
|
20
|
-
}
|
|
21
|
-
chunkZBLIE7F7_cjs.exitWithSuccess(config);
|
|
12
|
+
await chunkC7APS633_cjs.preCommitHook(config, process.argv.slice(2));
|
|
13
|
+
chunkDFXXNV3C_cjs.exitWithSuccess(config);
|
|
22
14
|
} catch (error) {
|
|
23
|
-
|
|
15
|
+
chunkDFXXNV3C_cjs.writeFatal(
|
|
24
16
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
25
17
|
config
|
|
26
18
|
);
|
|
27
|
-
|
|
19
|
+
chunkDFXXNV3C_cjs.exitWithError(config);
|
|
28
20
|
process.exit(1);
|
|
29
21
|
}
|
|
30
22
|
})();
|
package/bin/pre-commit.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/pre-commit.ts"],"names":["getConfig","
|
|
1
|
+
{"version":3,"sources":["../../bin/pre-commit.ts"],"names":["getConfig","preCommitHook","exitWithSuccess","writeFatal","exitWithError"],"mappings":";;;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAMA,2BAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAMC,gCAAc,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAEjD,IAAAC,iCAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAAC,4BAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAAC,+BAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"pre-commit.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { preCommitHook } from \"../src/hooks/pre-commit\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await preCommitHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/pre-commit.js
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { preCommitHook } from './chunk-JE32WMBP.js';
|
|
3
|
+
import './chunk-HBLWPOJV.js';
|
|
4
|
+
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-S3E6UR4Y.js';
|
|
4
5
|
|
|
5
6
|
// bin/pre-commit.ts
|
|
6
7
|
void (async () => {
|
|
7
8
|
const config = await getConfig();
|
|
8
9
|
try {
|
|
9
|
-
|
|
10
|
-
writeInfo("Running pre-commit hook...", config);
|
|
11
|
-
checkPackageVersion(process.argv.slice(1));
|
|
12
|
-
if (isPackageVersionChanged(process.argv?.slice(1))) {
|
|
13
|
-
writeError(
|
|
14
|
-
"Please regenerate the package lock file before committing...",
|
|
15
|
-
config
|
|
16
|
-
);
|
|
17
|
-
exitWithError(config);
|
|
18
|
-
}
|
|
10
|
+
await preCommitHook(config, process.argv.slice(2));
|
|
19
11
|
exitWithSuccess(config);
|
|
20
12
|
} catch (error) {
|
|
21
13
|
writeFatal(
|
package/bin/pre-commit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/pre-commit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../bin/pre-commit.ts"],"names":[],"mappings":";;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAM,SAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAM,cAAc,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAEjD,IAAA,eAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAA,UAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAA,aAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"pre-commit.js","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { preCommitHook } from \"../src/hooks/pre-commit\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await preCommitHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/pre-install.cjs
CHANGED
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
|
|
4
|
+
var chunkIA2Z3BAB_cjs = require('./chunk-IA2Z3BAB.cjs');
|
|
5
|
+
require('./chunk-FH5OSXAJ.cjs');
|
|
6
|
+
var chunkDFXXNV3C_cjs = require('./chunk-DFXXNV3C.cjs');
|
|
6
7
|
|
|
7
8
|
// bin/pre-install.ts
|
|
8
9
|
void (async () => {
|
|
9
|
-
const config = await
|
|
10
|
+
const config = await chunkDFXXNV3C_cjs.getConfig();
|
|
10
11
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
14
|
-
chunkZBLIE7F7_cjs.writeInfo("Skipping pre-install for CI process...", config);
|
|
15
|
-
chunkZBLIE7F7_cjs.exitWithSuccess(config);
|
|
16
|
-
}
|
|
17
|
-
chunkFH5OSXAJ_cjs.run(config, "npx -y only-allow pnpm");
|
|
18
|
-
chunkZBLIE7F7_cjs.exitWithSuccess(config);
|
|
12
|
+
await chunkIA2Z3BAB_cjs.preInstallHook(config);
|
|
13
|
+
chunkDFXXNV3C_cjs.exitWithSuccess(config);
|
|
19
14
|
} catch (error) {
|
|
20
|
-
|
|
15
|
+
chunkDFXXNV3C_cjs.writeFatal(
|
|
21
16
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
22
17
|
config
|
|
23
18
|
);
|
|
24
|
-
|
|
19
|
+
chunkDFXXNV3C_cjs.exitWithError(config);
|
|
25
20
|
process.exit(1);
|
|
26
21
|
}
|
|
27
22
|
})();
|
package/bin/pre-install.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/pre-install.ts"],"names":["getConfig","
|
|
1
|
+
{"version":3,"sources":["../../bin/pre-install.ts"],"names":["getConfig","preInstallHook","exitWithSuccess","writeFatal","exitWithError"],"mappings":";;;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAMA,2BAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAMC,iCAAe,MAAM,CAAA;AAE3B,IAAAC,iCAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAAC,4BAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAAC,+BAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"pre-install.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { preInstallHook } from \"../src/hooks/pre-install\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await preInstallHook(config);\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/pre-install.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { preInstallHook } from './chunk-S7Z6YPPG.js';
|
|
3
|
+
import './chunk-G3YPGVPS.js';
|
|
4
|
+
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-S3E6UR4Y.js';
|
|
4
5
|
|
|
5
6
|
// bin/pre-install.ts
|
|
6
7
|
void (async () => {
|
|
7
8
|
const config = await getConfig();
|
|
8
9
|
try {
|
|
9
|
-
|
|
10
|
-
writeInfo("Running pre-install hook...", config);
|
|
11
|
-
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
12
|
-
writeInfo("Skipping pre-install for CI process...", config);
|
|
13
|
-
exitWithSuccess(config);
|
|
14
|
-
}
|
|
15
|
-
run(config, "npx -y only-allow pnpm");
|
|
10
|
+
await preInstallHook(config);
|
|
16
11
|
exitWithSuccess(config);
|
|
17
12
|
} catch (error) {
|
|
18
13
|
writeFatal(
|
package/bin/pre-install.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/pre-install.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../bin/pre-install.ts"],"names":[],"mappings":";;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAM,SAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAM,eAAe,MAAM,CAAA;AAE3B,IAAA,eAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAA,UAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAA,aAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"pre-install.js","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { preInstallHook } from \"../src/hooks/pre-install\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await preInstallHook(config);\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|
package/bin/pre-push.cjs
CHANGED
|
@@ -1,85 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
var fs = require('fs');
|
|
8
|
-
var promises = require('fs/promises');
|
|
9
|
-
var path = require('path');
|
|
10
|
-
|
|
11
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
14
|
-
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
4
|
+
var chunkEI723ABQ_cjs = require('./chunk-EI723ABQ.cjs');
|
|
5
|
+
require('./chunk-YHZNDNCW.cjs');
|
|
6
|
+
var chunkDFXXNV3C_cjs = require('./chunk-DFXXNV3C.cjs');
|
|
15
7
|
|
|
8
|
+
// bin/pre-push.ts
|
|
16
9
|
void (async () => {
|
|
17
|
-
const config = await
|
|
10
|
+
const config = await chunkDFXXNV3C_cjs.getConfig();
|
|
18
11
|
try {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
22
|
-
chunkZBLIE7F7_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
|
|
23
|
-
const errors = [];
|
|
24
|
-
if (fs__default.default.existsSync(
|
|
25
|
-
path__default.default.join(config.workspaceRoot ?? "./", "package-lock.json")
|
|
26
|
-
)) {
|
|
27
|
-
errors.push(
|
|
28
|
-
'Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"'
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
if (fs__default.default.existsSync(path__default.default.join(config.workspaceRoot ?? "./", "yarn.lock"))) {
|
|
32
|
-
errors.push(
|
|
33
|
-
'Invalid occurrence of "yarn.lock" file. Please remove it and use only "pnpm-lock.yaml"'
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
try {
|
|
37
|
-
const content = await promises.readFile(
|
|
38
|
-
path__default.default.join(config.workspaceRoot ?? "./", "pnpm-lock.yaml"),
|
|
39
|
-
{
|
|
40
|
-
encoding: "utf8"
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
if (content?.match(/localhost:487/)) {
|
|
44
|
-
errors.push(
|
|
45
|
-
'The "pnpm-lock.yaml" has reference to local repository ("localhost:4873"). Please use ensure you disable local registry before running "pnpm i"'
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
if (content?.match(/resolution: \{tarball/)) {
|
|
49
|
-
errors.push(
|
|
50
|
-
'The "pnpm-lock.yaml" has reference to tarball package. Please use npm registry only'
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
} catch {
|
|
54
|
-
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
55
|
-
}
|
|
56
|
-
if (errors.length > 0) {
|
|
57
|
-
chunkZBLIE7F7_cjs.writeError("\u274C Lock file validation failed", config);
|
|
58
|
-
for (const error of errors) {
|
|
59
|
-
console.error(error);
|
|
60
|
-
}
|
|
61
|
-
chunkZBLIE7F7_cjs.exitWithError(config);
|
|
62
|
-
}
|
|
63
|
-
chunkZBLIE7F7_cjs.writeSuccess("Lock file is valid \u2705", config);
|
|
64
|
-
chunkFH5OSXAJ_cjs.run(config, "git lfs pre-push origin");
|
|
65
|
-
try {
|
|
66
|
-
chunkFH5OSXAJ_cjs.run(config, "git-lfs version");
|
|
67
|
-
} catch (error) {
|
|
68
|
-
chunkZBLIE7F7_cjs.writeError(
|
|
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
|
-
Error: ${error?.message}`,
|
|
71
|
-
config
|
|
72
|
-
);
|
|
73
|
-
chunkZBLIE7F7_cjs.exitWithError(config);
|
|
74
|
-
}
|
|
75
|
-
chunkFH5OSXAJ_cjs.run(config, "git lfs pre-push origin");
|
|
76
|
-
chunkZBLIE7F7_cjs.exitWithSuccess(config);
|
|
12
|
+
await chunkEI723ABQ_cjs.prePushHook(config, process.argv.slice(2));
|
|
13
|
+
chunkDFXXNV3C_cjs.exitWithSuccess(config);
|
|
77
14
|
} catch (error) {
|
|
78
|
-
|
|
15
|
+
chunkDFXXNV3C_cjs.writeFatal(
|
|
79
16
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
80
17
|
config
|
|
81
18
|
);
|
|
82
|
-
|
|
19
|
+
chunkDFXXNV3C_cjs.exitWithError(config);
|
|
83
20
|
process.exit(1);
|
|
84
21
|
}
|
|
85
22
|
})();
|
package/bin/pre-push.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/pre-push.ts"],"names":["getConfig","
|
|
1
|
+
{"version":3,"sources":["../../bin/pre-push.ts"],"names":["getConfig","prePushHook","exitWithSuccess","writeFatal","exitWithError"],"mappings":";;;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAMA,2BAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,MAAMC,8BAAY,MAAA,EAAQ,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA;AAE/C,IAAAC,iCAAA,CAAgB,MAAM,CAAA;AAAA,EACxB,SAAS,KAAA,EAAO;AACd,IAAAC,4BAAA;AAAA,MACE,CAAA,kDAAA,EAAqD,MAAM,OAAO,CAAA,CAAA;AAAA,MAClE;AAAA,KACF;AACA,IAAAC,+BAAA,CAAc,MAAM,CAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF,CAAA,GAAG","file":"pre-push.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { getConfig } from \"@storm-software/config-tools/get-config\";\nimport { writeFatal } from \"@storm-software/config-tools/logger/console\";\nimport {\n exitWithError,\n exitWithSuccess\n} from \"@storm-software/config-tools/utilities/process-handler\";\nimport { prePushHook } from \"../src/hooks/pre-push\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n await prePushHook(config, process.argv.slice(2));\n\n exitWithSuccess(config);\n } catch (error) {\n writeFatal(\n `A fatal error occurred while running the program: ${error.message}`,\n config\n );\n exitWithError(config);\n process.exit(1);\n }\n})();\n"]}
|