@storm-software/git-tools 2.131.109 → 2.131.113
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-2AV5HYTF.cjs +58 -0
- package/bin/chunk-2AV5HYTF.cjs.map +1 -0
- package/bin/{chunk-KMPLSTO3.js → chunk-7J7WTT44.js} +4 -4
- package/bin/chunk-7J7WTT44.js.map +1 -0
- package/bin/chunk-BBYXIOTE.cjs +19 -0
- package/bin/chunk-BBYXIOTE.cjs.map +1 -0
- package/bin/chunk-CYET4YQA.js +51 -0
- package/bin/chunk-CYET4YQA.js.map +1 -0
- package/bin/{chunk-PWU3UV75.cjs → chunk-IATNESIH.cjs} +4 -4
- package/bin/chunk-IATNESIH.cjs.map +1 -0
- package/bin/{chunk-FG3I2VCP.cjs → chunk-JORAXF7H.cjs} +4 -4
- package/bin/chunk-JORAXF7H.cjs.map +1 -0
- package/bin/chunk-KN36EKQK.js +17 -0
- package/bin/chunk-KN36EKQK.js.map +1 -0
- package/bin/{chunk-TQGWTIZB.cjs → chunk-LJN53JNW.cjs} +3 -3
- package/bin/chunk-LJN53JNW.cjs.map +1 -0
- package/bin/{chunk-GUKZHV4C.js → chunk-MHLCOIRK.js} +4 -4
- package/bin/chunk-MHLCOIRK.js.map +1 -0
- package/bin/{chunk-2YVIE3BK.js → chunk-S7XHJBRS.js} +3 -3
- package/bin/chunk-S7XHJBRS.js.map +1 -0
- package/bin/chunk-SP3UCTLI.cjs +59 -0
- package/bin/chunk-SP3UCTLI.cjs.map +1 -0
- package/bin/{chunk-K6GWYEPW.cjs → chunk-XQOIAFJG.cjs} +4 -4
- package/bin/chunk-XQOIAFJG.cjs.map +1 -0
- package/bin/chunk-XVWRXJFS.js +53 -0
- package/bin/chunk-XVWRXJFS.js.map +1 -0
- package/bin/{chunk-WPUDOWXK.js → chunk-YKPFFJLQ.js} +4 -4
- package/bin/chunk-YKPFFJLQ.js.map +1 -0
- package/bin/{chunk-JJVQKQSQ.js → chunk-YNYCZK6A.js} +3 -3
- package/bin/chunk-YNYCZK6A.js.map +1 -0
- package/bin/{chunk-SGL3Y2VO.cjs → chunk-Z2M4I2BJ.cjs} +3 -3
- package/bin/chunk-Z2M4I2BJ.cjs.map +1 -0
- package/bin/git.cjs +14 -14
- package/bin/git.js +8 -8
- package/bin/post-checkout.cjs +3 -3
- package/bin/post-checkout.js +2 -2
- package/bin/post-commit.cjs +3 -3
- package/bin/post-commit.js +2 -2
- package/bin/post-merge.cjs +3 -3
- package/bin/post-merge.js +2 -2
- package/bin/pre-commit.cjs +3 -3
- package/bin/pre-commit.js +2 -2
- package/bin/pre-install.cjs +2 -2
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +3 -3
- package/bin/pre-push.js +2 -2
- package/bin/prepare.cjs +2 -2
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +2 -2
- package/bin/version-warning.cjs.map +1 -1
- package/bin/version-warning.js +2 -2
- package/bin/version-warning.js.map +1 -1
- package/dist/{chunk-AHLNR6XV.js → chunk-2R63WHWO.js} +1 -1
- package/dist/{chunk-F2FAV3G7.js → chunk-GLCQOF2M.js} +3 -3
- package/dist/chunk-HOQEXODF.cjs +56 -0
- package/dist/{chunk-DHKJKEWQ.cjs → chunk-IAK23H7B.cjs} +1 -1
- package/dist/{chunk-FIBROPKG.cjs → chunk-LXXJEGUX.cjs} +2 -2
- package/dist/{chunk-YT5MBM4H.js → chunk-NPCVH6FC.js} +2 -2
- package/dist/chunk-O7UOEIMT.js +49 -0
- package/dist/{chunk-OBTRAJMP.js → chunk-OABXW2AI.js} +2 -2
- package/dist/{chunk-4LAYVXYI.js → chunk-PBGCSXPL.js} +2 -2
- package/dist/chunk-RGE2RUUB.cjs +57 -0
- package/dist/{chunk-TDEG4V2Y.cjs → chunk-SHNYRICK.cjs} +2 -2
- package/dist/{chunk-P4GKSB3C.cjs → chunk-SJJTGPWB.cjs} +1 -1
- package/dist/{chunk-GMUM2CKB.js → chunk-T5BLHFZW.js} +1 -1
- package/dist/{chunk-EEEX7BTF.cjs → chunk-TMEQLVEV.cjs} +4 -4
- package/dist/chunk-ZF6CEBNE.js +51 -0
- package/dist/{chunk-WQU2Z7JS.cjs → chunk-ZYMWVRAL.cjs} +2 -2
- package/dist/index.cjs +33 -33
- package/dist/index.js +9 -9
- package/dist/release/config.cjs +19 -19
- package/dist/release/config.js +2 -2
- package/package.json +6 -6
- package/bin/chunk-2YVIE3BK.js.map +0 -1
- package/bin/chunk-DKB6PGG3.js +0 -52
- package/bin/chunk-DKB6PGG3.js.map +0 -1
- package/bin/chunk-EQSXP2RC.cjs +0 -59
- package/bin/chunk-EQSXP2RC.cjs.map +0 -1
- package/bin/chunk-FG3I2VCP.cjs.map +0 -1
- package/bin/chunk-FNMZLTI2.cjs +0 -19
- package/bin/chunk-FNMZLTI2.cjs.map +0 -1
- package/bin/chunk-GUKZHV4C.js.map +0 -1
- package/bin/chunk-HBLWPOJV.js +0 -19
- package/bin/chunk-HBLWPOJV.js.map +0 -1
- package/bin/chunk-IFGNDIXB.js +0 -17
- package/bin/chunk-IFGNDIXB.js.map +0 -1
- package/bin/chunk-JJVQKQSQ.js.map +0 -1
- package/bin/chunk-K6GWYEPW.cjs.map +0 -1
- package/bin/chunk-KMPLSTO3.js.map +0 -1
- package/bin/chunk-PWU3UV75.cjs.map +0 -1
- package/bin/chunk-SGL3Y2VO.cjs.map +0 -1
- package/bin/chunk-TQGWTIZB.cjs.map +0 -1
- package/bin/chunk-WPUDOWXK.js.map +0 -1
- package/bin/chunk-YHZNDNCW.cjs +0 -22
- package/bin/chunk-YHZNDNCW.cjs.map +0 -1
- package/dist/chunk-GPFVAOPY.js +0 -50
- package/dist/chunk-HMHOHK22.js +0 -17
- package/dist/chunk-QCNDIFYQ.cjs +0 -20
- package/dist/chunk-VQNC53VQ.cjs +0 -57
- /package/dist/{chunk-FN4S2UNY.cjs → chunk-IVBFLZSL.cjs} +0 -0
- /package/dist/{chunk-UX5W5DUP.js → chunk-J5FHPMMG.js} +0 -0
package/bin/git.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
11
|
-
var
|
|
4
|
+
var chunkXQOIAFJG_cjs = require('./chunk-XQOIAFJG.cjs');
|
|
5
|
+
var chunkIATNESIH_cjs = require('./chunk-IATNESIH.cjs');
|
|
6
|
+
var chunkJORAXF7H_cjs = require('./chunk-JORAXF7H.cjs');
|
|
7
|
+
var chunkBBYXIOTE_cjs = require('./chunk-BBYXIOTE.cjs');
|
|
8
|
+
require('./chunk-Z2M4I2BJ.cjs');
|
|
9
|
+
var chunk2AV5HYTF_cjs = require('./chunk-2AV5HYTF.cjs');
|
|
10
|
+
require('./chunk-SP3UCTLI.cjs');
|
|
11
|
+
var chunkLJN53JNW_cjs = require('./chunk-LJN53JNW.cjs');
|
|
12
12
|
var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
|
|
13
13
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
14
14
|
var TOML = require('@ltd/j-toml');
|
|
@@ -6151,7 +6151,7 @@ async function postCheckoutAction({ files }) {
|
|
|
6151
6151
|
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
|
|
6152
6152
|
_config
|
|
6153
6153
|
);
|
|
6154
|
-
await
|
|
6154
|
+
await chunkXQOIAFJG_cjs.postCheckoutHook(_config, files);
|
|
6155
6155
|
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
|
|
6156
6156
|
} catch (error) {
|
|
6157
6157
|
chunkNJMSWUK7_cjs.writeFatal(
|
|
@@ -6169,7 +6169,7 @@ async function postCommitAction({ files }) {
|
|
|
6169
6169
|
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
|
|
6170
6170
|
_config
|
|
6171
6171
|
);
|
|
6172
|
-
await
|
|
6172
|
+
await chunkIATNESIH_cjs.postCommitHook(_config, files);
|
|
6173
6173
|
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
|
|
6174
6174
|
} catch (error) {
|
|
6175
6175
|
chunkNJMSWUK7_cjs.writeFatal(
|
|
@@ -6187,7 +6187,7 @@ async function postMergeAction({ files }) {
|
|
|
6187
6187
|
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
|
|
6188
6188
|
_config
|
|
6189
6189
|
);
|
|
6190
|
-
await
|
|
6190
|
+
await chunkJORAXF7H_cjs.postMergeHook(_config, files);
|
|
6191
6191
|
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
|
|
6192
6192
|
} catch (error) {
|
|
6193
6193
|
chunkNJMSWUK7_cjs.writeFatal(
|
|
@@ -6205,7 +6205,7 @@ async function preCommitAction({ files }) {
|
|
|
6205
6205
|
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
|
|
6206
6206
|
_config
|
|
6207
6207
|
);
|
|
6208
|
-
await
|
|
6208
|
+
await chunkBBYXIOTE_cjs.preCommitHook(_config, files);
|
|
6209
6209
|
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
|
|
6210
6210
|
} catch (error) {
|
|
6211
6211
|
chunkNJMSWUK7_cjs.writeFatal(
|
|
@@ -6223,7 +6223,7 @@ async function prePushAction({ files }) {
|
|
|
6223
6223
|
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
|
|
6224
6224
|
_config
|
|
6225
6225
|
);
|
|
6226
|
-
await
|
|
6226
|
+
await chunk2AV5HYTF_cjs.prePushHook(_config, files);
|
|
6227
6227
|
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
|
|
6228
6228
|
} catch (error) {
|
|
6229
6229
|
chunkNJMSWUK7_cjs.writeFatal(
|
|
@@ -6241,7 +6241,7 @@ async function prepareAction() {
|
|
|
6241
6241
|
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
|
|
6242
6242
|
_config
|
|
6243
6243
|
);
|
|
6244
|
-
await
|
|
6244
|
+
await chunkLJN53JNW_cjs.prepareHook(_config);
|
|
6245
6245
|
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
|
|
6246
6246
|
} catch (error) {
|
|
6247
6247
|
chunkNJMSWUK7_cjs.writeFatal(
|
package/bin/git.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { postCheckoutHook } from './chunk-
|
|
3
|
-
import { postCommitHook } from './chunk-
|
|
4
|
-
import { postMergeHook } from './chunk-
|
|
5
|
-
import { preCommitHook } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { prePushHook } from './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import { prepareHook } from './chunk-
|
|
2
|
+
import { postCheckoutHook } from './chunk-YKPFFJLQ.js';
|
|
3
|
+
import { postCommitHook } from './chunk-MHLCOIRK.js';
|
|
4
|
+
import { postMergeHook } from './chunk-7J7WTT44.js';
|
|
5
|
+
import { preCommitHook } from './chunk-KN36EKQK.js';
|
|
6
|
+
import './chunk-S7XHJBRS.js';
|
|
7
|
+
import { prePushHook } from './chunk-CYET4YQA.js';
|
|
8
|
+
import './chunk-XVWRXJFS.js';
|
|
9
|
+
import { prepareHook } from './chunk-YNYCZK6A.js';
|
|
10
10
|
import { run, runAsync } from './chunk-RPK5AKGK.js';
|
|
11
11
|
import { defu, getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, brandIcon, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, writeWarning, writeTrace, isVerbose, formatLogMessage, __require, STORM_DEFAULT_RELEASE_BANNER } from './chunk-42Y4PTRA.js';
|
|
12
12
|
import TOML from '@ltd/j-toml';
|
package/bin/post-checkout.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkXQOIAFJG_cjs = require('./chunk-XQOIAFJG.cjs');
|
|
5
|
+
require('./chunk-SP3UCTLI.cjs');
|
|
6
6
|
require('./chunk-MTAYUS7E.cjs');
|
|
7
7
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
|
10
10
|
void (async () => {
|
|
11
11
|
const config = await chunkNJMSWUK7_cjs.getConfig();
|
|
12
12
|
try {
|
|
13
|
-
await
|
|
13
|
+
await chunkXQOIAFJG_cjs.postCheckoutHook(config, process.argv.slice(2));
|
|
14
14
|
chunkNJMSWUK7_cjs.exitWithSuccess(config);
|
|
15
15
|
} catch (error) {
|
|
16
16
|
chunkNJMSWUK7_cjs.writeFatal(
|
package/bin/post-checkout.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { postCheckoutHook } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { postCheckoutHook } from './chunk-YKPFFJLQ.js';
|
|
3
|
+
import './chunk-XVWRXJFS.js';
|
|
4
4
|
import './chunk-RPK5AKGK.js';
|
|
5
5
|
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-42Y4PTRA.js';
|
|
6
6
|
|
package/bin/post-commit.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkIATNESIH_cjs = require('./chunk-IATNESIH.cjs');
|
|
5
|
+
require('./chunk-SP3UCTLI.cjs');
|
|
6
6
|
require('./chunk-MTAYUS7E.cjs');
|
|
7
7
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
|
10
10
|
void (async () => {
|
|
11
11
|
const config = await chunkNJMSWUK7_cjs.getConfig();
|
|
12
12
|
try {
|
|
13
|
-
await
|
|
13
|
+
await chunkIATNESIH_cjs.postCommitHook(config, process.argv.slice(2));
|
|
14
14
|
chunkNJMSWUK7_cjs.exitWithSuccess(config);
|
|
15
15
|
} catch (error) {
|
|
16
16
|
chunkNJMSWUK7_cjs.writeFatal(
|
package/bin/post-commit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { postCommitHook } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { postCommitHook } from './chunk-MHLCOIRK.js';
|
|
3
|
+
import './chunk-XVWRXJFS.js';
|
|
4
4
|
import './chunk-RPK5AKGK.js';
|
|
5
5
|
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-42Y4PTRA.js';
|
|
6
6
|
|
package/bin/post-merge.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkJORAXF7H_cjs = require('./chunk-JORAXF7H.cjs');
|
|
5
|
+
require('./chunk-SP3UCTLI.cjs');
|
|
6
6
|
require('./chunk-MTAYUS7E.cjs');
|
|
7
7
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
|
10
10
|
void (async () => {
|
|
11
11
|
const config = await chunkNJMSWUK7_cjs.getConfig();
|
|
12
12
|
try {
|
|
13
|
-
await
|
|
13
|
+
await chunkJORAXF7H_cjs.postMergeHook(config, process.argv.slice(2));
|
|
14
14
|
chunkNJMSWUK7_cjs.exitWithSuccess(config);
|
|
15
15
|
} catch (error) {
|
|
16
16
|
chunkNJMSWUK7_cjs.writeFatal(
|
package/bin/post-merge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { postMergeHook } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { postMergeHook } from './chunk-7J7WTT44.js';
|
|
3
|
+
import './chunk-XVWRXJFS.js';
|
|
4
4
|
import './chunk-RPK5AKGK.js';
|
|
5
5
|
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-42Y4PTRA.js';
|
|
6
6
|
|
package/bin/pre-commit.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkBBYXIOTE_cjs = require('./chunk-BBYXIOTE.cjs');
|
|
5
|
+
require('./chunk-SP3UCTLI.cjs');
|
|
6
6
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/pre-commit.ts
|
|
9
9
|
void (async () => {
|
|
10
10
|
const config = await chunkNJMSWUK7_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
await
|
|
12
|
+
await chunkBBYXIOTE_cjs.preCommitHook(config, process.argv.slice(2));
|
|
13
13
|
chunkNJMSWUK7_cjs.exitWithSuccess(config);
|
|
14
14
|
} catch (error) {
|
|
15
15
|
chunkNJMSWUK7_cjs.writeFatal(
|
package/bin/pre-commit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { preCommitHook } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { preCommitHook } from './chunk-KN36EKQK.js';
|
|
3
|
+
import './chunk-XVWRXJFS.js';
|
|
4
4
|
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-42Y4PTRA.js';
|
|
5
5
|
|
|
6
6
|
// bin/pre-commit.ts
|
package/bin/pre-install.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkZ2M4I2BJ_cjs = require('./chunk-Z2M4I2BJ.cjs');
|
|
5
5
|
require('./chunk-MTAYUS7E.cjs');
|
|
6
6
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
|
9
9
|
void (async () => {
|
|
10
10
|
const config = await chunkNJMSWUK7_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
await
|
|
12
|
+
await chunkZ2M4I2BJ_cjs.preInstallHook(config);
|
|
13
13
|
chunkNJMSWUK7_cjs.exitWithSuccess(config);
|
|
14
14
|
} catch (error) {
|
|
15
15
|
chunkNJMSWUK7_cjs.writeFatal(
|
package/bin/pre-install.js
CHANGED
package/bin/pre-push.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunk2AV5HYTF_cjs = require('./chunk-2AV5HYTF.cjs');
|
|
5
|
+
require('./chunk-SP3UCTLI.cjs');
|
|
6
6
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/pre-push.ts
|
|
9
9
|
void (async () => {
|
|
10
10
|
const config = await chunkNJMSWUK7_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
await
|
|
12
|
+
await chunk2AV5HYTF_cjs.prePushHook(config, process.argv.slice(2));
|
|
13
13
|
chunkNJMSWUK7_cjs.exitWithSuccess(config);
|
|
14
14
|
} catch (error) {
|
|
15
15
|
chunkNJMSWUK7_cjs.writeFatal(
|
package/bin/pre-push.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { prePushHook } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { prePushHook } from './chunk-CYET4YQA.js';
|
|
3
|
+
import './chunk-XVWRXJFS.js';
|
|
4
4
|
import { getConfig, exitWithSuccess, writeFatal, exitWithError } from './chunk-42Y4PTRA.js';
|
|
5
5
|
|
|
6
6
|
// bin/pre-push.ts
|
package/bin/prepare.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkLJN53JNW_cjs = require('./chunk-LJN53JNW.cjs');
|
|
5
5
|
require('./chunk-MTAYUS7E.cjs');
|
|
6
6
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
|
9
9
|
void (async () => {
|
|
10
10
|
const config = await chunkNJMSWUK7_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
await
|
|
12
|
+
await chunkLJN53JNW_cjs.prepareHook(config);
|
|
13
13
|
chunkNJMSWUK7_cjs.exitWithSuccess(config);
|
|
14
14
|
} catch (error) {
|
|
15
15
|
chunkNJMSWUK7_cjs.writeFatal(
|
package/bin/prepare.js
CHANGED
package/bin/version-warning.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkSP3UCTLI_cjs = require('./chunk-SP3UCTLI.cjs');
|
|
5
5
|
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/version-warning.ts
|
|
@@ -9,7 +9,7 @@ void (async () => {
|
|
|
9
9
|
const config = await chunkNJMSWUK7_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
11
|
chunkNJMSWUK7_cjs.handleProcess(config);
|
|
12
|
-
|
|
12
|
+
chunkSP3UCTLI_cjs.checkPackageVersion(process.argv.slice(1), config);
|
|
13
13
|
} catch (error) {
|
|
14
14
|
chunkNJMSWUK7_cjs.writeFatal(
|
|
15
15
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/version-warning.ts"],"names":["getConfig","handleProcess","checkPackageVersion","writeFatal","exitWithError"],"mappings":";;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAMA,2BAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAAC,+BAAA,CAAc,MAAM,CAAA;AAEpB,IAAAC,qCAAA,CAAoB,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,
|
|
1
|
+
{"version":3,"sources":["../../bin/version-warning.ts"],"names":["getConfig","handleProcess","checkPackageVersion","writeFatal","exitWithError"],"mappings":";;;;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAMA,2BAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAAC,+BAAA,CAAc,MAAM,CAAA;AAEpB,IAAAC,qCAAA,CAAoB,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,GAAG,MAAM,CAAA;AAAA,EACnD,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":"version-warning.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport {\n exitWithError,\n getConfig,\n handleProcess,\n writeFatal\n} from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../src/utilities/check-package-version\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n handleProcess(config);\n\n checkPackageVersion(process.argv.slice(1), 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/version-warning.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { checkPackageVersion } from './chunk-
|
|
2
|
+
import { checkPackageVersion } from './chunk-XVWRXJFS.js';
|
|
3
3
|
import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-42Y4PTRA.js';
|
|
4
4
|
|
|
5
5
|
// bin/version-warning.ts
|
|
@@ -7,7 +7,7 @@ void (async () => {
|
|
|
7
7
|
const config = await getConfig();
|
|
8
8
|
try {
|
|
9
9
|
handleProcess(config);
|
|
10
|
-
checkPackageVersion(process.argv.slice(1));
|
|
10
|
+
checkPackageVersion(process.argv.slice(1), config);
|
|
11
11
|
} catch (error) {
|
|
12
12
|
writeFatal(
|
|
13
13
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../bin/version-warning.ts"],"names":[],"mappings":";;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAM,SAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,aAAA,CAAc,MAAM,CAAA;AAEpB,IAAA,mBAAA,CAAoB,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,
|
|
1
|
+
{"version":3,"sources":["../../bin/version-warning.ts"],"names":[],"mappings":";;;;;AAUA,KAAA,CAAM,YAAY;AAChB,EAAA,MAAM,MAAA,GAAS,MAAM,SAAA,EAAU;AAC/B,EAAA,IAAI;AACF,IAAA,aAAA,CAAc,MAAM,CAAA;AAEpB,IAAA,mBAAA,CAAoB,OAAA,CAAQ,IAAA,CAAK,KAAA,CAAM,CAAC,GAAG,MAAM,CAAA;AAAA,EACnD,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":"version-warning.js","sourcesContent":["#!/usr/bin/env node\n\nimport {\n exitWithError,\n getConfig,\n handleProcess,\n writeFatal\n} from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../src/utilities/check-package-version\";\n\nvoid (async () => {\n const config = await getConfig();\n try {\n handleProcess(config);\n\n checkPackageVersion(process.argv.slice(1), 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"]}
|
|
@@ -5,7 +5,7 @@ import { writeInfo } from './chunk-PPBPJTXT.js';
|
|
|
5
5
|
async function prepareHook(config) {
|
|
6
6
|
writeInfo("Running prepare hook...", config);
|
|
7
7
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
8
|
-
run(config,
|
|
8
|
+
run(config, `${config.packageManager} lefthook install`);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { checkPackageVersion, isPackageVersionChanged } from './chunk-
|
|
1
|
+
import { checkPackageVersion, isPackageVersionChanged, getLockFileName } from './chunk-ZF6CEBNE.js';
|
|
2
2
|
import { writeInfo } from './chunk-PPBPJTXT.js';
|
|
3
3
|
|
|
4
4
|
// src/hooks/pre-commit.ts
|
|
5
5
|
async function preCommitHook(config, files) {
|
|
6
6
|
writeInfo("Running pre-commit hook...", config);
|
|
7
|
-
checkPackageVersion(files);
|
|
7
|
+
checkPackageVersion(files, config);
|
|
8
8
|
if (isPackageVersionChanged(files)) {
|
|
9
9
|
throw new Error(
|
|
10
|
-
|
|
10
|
+
`Please regenerate the ${getLockFileName(config.packageManager)} before committing...`
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRGE2RUUB_cjs = require('./chunk-RGE2RUUB.cjs');
|
|
4
|
+
var chunk7LF2JPA5_cjs = require('./chunk-7LF2JPA5.cjs');
|
|
5
|
+
var fs = require('fs');
|
|
6
|
+
var promises = require('fs/promises');
|
|
7
|
+
var path = require('path');
|
|
8
|
+
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
12
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
13
|
+
|
|
14
|
+
async function prePushHook(config, files) {
|
|
15
|
+
chunk7LF2JPA5_cjs.writeInfo("Running pre-push hook...", config);
|
|
16
|
+
chunkRGE2RUUB_cjs.checkPackageVersion(files, config);
|
|
17
|
+
chunk7LF2JPA5_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}", config);
|
|
18
|
+
const workspaceRoot = config.workspaceRoot ?? "./";
|
|
19
|
+
const lockFileName = chunkRGE2RUUB_cjs.getLockFileName(config.packageManager);
|
|
20
|
+
const installCommand = chunkRGE2RUUB_cjs.getInstallCommand(config.packageManager);
|
|
21
|
+
const errors = [];
|
|
22
|
+
for (const otherLockFile of chunkRGE2RUUB_cjs.getOtherLockFileNames(config.packageManager)) {
|
|
23
|
+
if (fs__default.default.existsSync(path__default.default.join(workspaceRoot, otherLockFile))) {
|
|
24
|
+
errors.push(
|
|
25
|
+
`Invalid occurrence of "${otherLockFile}" file. Please remove it and use only "${lockFileName}"`
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
const content = await promises.readFile(path__default.default.join(workspaceRoot, lockFileName), {
|
|
31
|
+
encoding: "utf8"
|
|
32
|
+
});
|
|
33
|
+
if (config.packageManager === "pnpm") {
|
|
34
|
+
if (content?.match(/localhost:487/)) {
|
|
35
|
+
errors.push(
|
|
36
|
+
`The "${lockFileName}" has reference to local repository ("localhost:4873"). Please ensure you disable local registry before running "${installCommand}"`
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
if (content?.match(/resolution: \{tarball/)) {
|
|
40
|
+
errors.push(
|
|
41
|
+
`The "${lockFileName}" has reference to tarball package. Please use npm registry only`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
} catch {
|
|
46
|
+
errors.push(`The "${lockFileName}" does not exist or cannot be read`);
|
|
47
|
+
}
|
|
48
|
+
if (errors.length > 0) {
|
|
49
|
+
throw new Error(
|
|
50
|
+
"\u274C Lock file validation failed\n" + errors.join("\n")
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
chunk7LF2JPA5_cjs.writeSuccess("\u2714 Lock file is valid for push", config);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
exports.prePushHook = prePushHook;
|
|
@@ -7,7 +7,7 @@ var chunk7LF2JPA5_cjs = require('./chunk-7LF2JPA5.cjs');
|
|
|
7
7
|
async function prepareHook(config) {
|
|
8
8
|
chunk7LF2JPA5_cjs.writeInfo("Running prepare hook...", config);
|
|
9
9
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
10
|
-
chunkFJL2V56E_cjs.run(config,
|
|
10
|
+
chunkFJL2V56E_cjs.run(config, `${config.packageManager} lefthook install`);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRGE2RUUB_cjs = require('./chunk-RGE2RUUB.cjs');
|
|
4
4
|
var chunkFJL2V56E_cjs = require('./chunk-FJL2V56E.cjs');
|
|
5
5
|
var chunk7LF2JPA5_cjs = require('./chunk-7LF2JPA5.cjs');
|
|
6
6
|
|
|
7
7
|
// src/hooks/post-merge.ts
|
|
8
8
|
async function postMergeHook(config, files) {
|
|
9
9
|
chunk7LF2JPA5_cjs.writeInfo("Running post-merge hook...", config);
|
|
10
|
-
|
|
10
|
+
chunkRGE2RUUB_cjs.checkPackageVersion(files, config);
|
|
11
11
|
try {
|
|
12
12
|
chunkFJL2V56E_cjs.run(config, "git-lfs version");
|
|
13
13
|
} catch (error) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { checkPackageVersion } from './chunk-
|
|
1
|
+
import { checkPackageVersion } from './chunk-ZF6CEBNE.js';
|
|
2
2
|
import { run } from './chunk-JOPN56T4.js';
|
|
3
3
|
import { writeInfo } from './chunk-PPBPJTXT.js';
|
|
4
4
|
|
|
5
5
|
// src/hooks/post-merge.ts
|
|
6
6
|
async function postMergeHook(config, files) {
|
|
7
7
|
writeInfo("Running post-merge hook...", config);
|
|
8
|
-
checkPackageVersion(files);
|
|
8
|
+
checkPackageVersion(files, config);
|
|
9
9
|
try {
|
|
10
10
|
run(config, "git-lfs version");
|
|
11
11
|
} catch (error) {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkPackageVersion, getLockFileName, getInstallCommand, getOtherLockFileNames } from './chunk-ZF6CEBNE.js';
|
|
2
|
+
import { writeInfo, writeSuccess } from './chunk-PPBPJTXT.js';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import { readFile } from 'node:fs/promises';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
|
|
7
|
+
async function prePushHook(config, files) {
|
|
8
|
+
writeInfo("Running pre-push hook...", config);
|
|
9
|
+
checkPackageVersion(files, config);
|
|
10
|
+
writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}", config);
|
|
11
|
+
const workspaceRoot = config.workspaceRoot ?? "./";
|
|
12
|
+
const lockFileName = getLockFileName(config.packageManager);
|
|
13
|
+
const installCommand = getInstallCommand(config.packageManager);
|
|
14
|
+
const errors = [];
|
|
15
|
+
for (const otherLockFile of getOtherLockFileNames(config.packageManager)) {
|
|
16
|
+
if (fs.existsSync(path.join(workspaceRoot, otherLockFile))) {
|
|
17
|
+
errors.push(
|
|
18
|
+
`Invalid occurrence of "${otherLockFile}" file. Please remove it and use only "${lockFileName}"`
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
const content = await readFile(path.join(workspaceRoot, lockFileName), {
|
|
24
|
+
encoding: "utf8"
|
|
25
|
+
});
|
|
26
|
+
if (config.packageManager === "pnpm") {
|
|
27
|
+
if (content?.match(/localhost:487/)) {
|
|
28
|
+
errors.push(
|
|
29
|
+
`The "${lockFileName}" has reference to local repository ("localhost:4873"). Please ensure you disable local registry before running "${installCommand}"`
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
if (content?.match(/resolution: \{tarball/)) {
|
|
33
|
+
errors.push(
|
|
34
|
+
`The "${lockFileName}" has reference to tarball package. Please use npm registry only`
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
} catch {
|
|
39
|
+
errors.push(`The "${lockFileName}" does not exist or cannot be read`);
|
|
40
|
+
}
|
|
41
|
+
if (errors.length > 0) {
|
|
42
|
+
throw new Error(
|
|
43
|
+
"\u274C Lock file validation failed\n" + errors.join("\n")
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
writeSuccess("\u2714 Lock file is valid for push", config);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { prePushHook };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { checkPackageVersion } from './chunk-
|
|
1
|
+
import { checkPackageVersion } from './chunk-ZF6CEBNE.js';
|
|
2
2
|
import { run } from './chunk-JOPN56T4.js';
|
|
3
3
|
import { writeInfo } from './chunk-PPBPJTXT.js';
|
|
4
4
|
|
|
5
5
|
// src/hooks/post-checkout.ts
|
|
6
6
|
async function postCheckoutHook(config, files) {
|
|
7
7
|
writeInfo("Running post-checkout hook...", config);
|
|
8
|
-
checkPackageVersion(files);
|
|
8
|
+
checkPackageVersion(files, config);
|
|
9
9
|
try {
|
|
10
10
|
run(config, "git-lfs version");
|
|
11
11
|
} catch (error) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { checkPackageVersion } from './chunk-
|
|
1
|
+
import { checkPackageVersion } from './chunk-ZF6CEBNE.js';
|
|
2
2
|
import { run } from './chunk-JOPN56T4.js';
|
|
3
3
|
import { writeInfo } from './chunk-PPBPJTXT.js';
|
|
4
4
|
|
|
5
5
|
// src/hooks/post-commit.ts
|
|
6
6
|
async function postCommitHook(config, files) {
|
|
7
7
|
writeInfo("Running post-commit hook...", config);
|
|
8
|
-
checkPackageVersion(files);
|
|
8
|
+
checkPackageVersion(files, config);
|
|
9
9
|
try {
|
|
10
10
|
run(config, "git-lfs version");
|
|
11
11
|
} catch (error) {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/utilities/package-manager.ts
|
|
4
|
+
var LOCK_FILE_BY_PACKAGE_MANAGER = {
|
|
5
|
+
npm: "package-lock.json",
|
|
6
|
+
yarn: "yarn.lock",
|
|
7
|
+
pnpm: "pnpm-lock.yaml",
|
|
8
|
+
bun: "bun.lock"
|
|
9
|
+
};
|
|
10
|
+
var OTHER_LOCK_FILES = {
|
|
11
|
+
npm: ["yarn.lock", "pnpm-lock.yaml", "bun.lock", "bun.lockb"],
|
|
12
|
+
yarn: ["package-lock.json", "pnpm-lock.yaml", "bun.lock", "bun.lockb"],
|
|
13
|
+
pnpm: ["package-lock.json", "yarn.lock", "bun.lock", "bun.lockb"],
|
|
14
|
+
bun: ["package-lock.json", "yarn.lock", "pnpm-lock.yaml", "bun.lockb"]
|
|
15
|
+
};
|
|
16
|
+
function getLockFileName(packageManager) {
|
|
17
|
+
return LOCK_FILE_BY_PACKAGE_MANAGER[packageManager];
|
|
18
|
+
}
|
|
19
|
+
function getOtherLockFileNames(packageManager) {
|
|
20
|
+
return OTHER_LOCK_FILES[packageManager];
|
|
21
|
+
}
|
|
22
|
+
function getInstallCommand(packageManager) {
|
|
23
|
+
switch (packageManager) {
|
|
24
|
+
case "npm":
|
|
25
|
+
return "npm i";
|
|
26
|
+
case "yarn":
|
|
27
|
+
return "yarn install";
|
|
28
|
+
case "pnpm":
|
|
29
|
+
return "pnpm i";
|
|
30
|
+
case "bun":
|
|
31
|
+
return "bun install";
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// src/utilities/check-package-version.ts
|
|
36
|
+
var isPackageVersionChanged = (files) => files?.some(
|
|
37
|
+
(arg) => arg.includes("package-lock.json") || arg.includes("yarn.lock") || arg.includes("pnpm-lock.json") || arg.includes("pnpm-lock.yaml") || arg.includes("pnpm-lock.yml") || arg.includes("bun.lock") || arg.includes("bun.lockb")
|
|
38
|
+
);
|
|
39
|
+
var checkPackageVersion = (files, config) => {
|
|
40
|
+
if (isPackageVersionChanged(files)) {
|
|
41
|
+
const lockFileName = getLockFileName(config.packageManager);
|
|
42
|
+
const installCommand = getInstallCommand(config.packageManager);
|
|
43
|
+
console.warn(
|
|
44
|
+
[
|
|
45
|
+
"\u26A0\uFE0F ----------------------------------------------------------------------------------------- \u26A0\uFE0F",
|
|
46
|
+
`\u26A0\uFE0F The ${lockFileName} file changed! Please run \`${installCommand}\` to ensure your packages are up to date. \u26A0\uFE0F`,
|
|
47
|
+
"\u26A0\uFE0F ----------------------------------------------------------------------------------------- \u26A0\uFE0F"
|
|
48
|
+
].join("\n")
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
exports.checkPackageVersion = checkPackageVersion;
|
|
54
|
+
exports.getInstallCommand = getInstallCommand;
|
|
55
|
+
exports.getLockFileName = getLockFileName;
|
|
56
|
+
exports.getOtherLockFileNames = getOtherLockFileNames;
|
|
57
|
+
exports.isPackageVersionChanged = isPackageVersionChanged;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRGE2RUUB_cjs = require('./chunk-RGE2RUUB.cjs');
|
|
4
4
|
var chunkFJL2V56E_cjs = require('./chunk-FJL2V56E.cjs');
|
|
5
5
|
var chunk7LF2JPA5_cjs = require('./chunk-7LF2JPA5.cjs');
|
|
6
6
|
|
|
7
7
|
// src/hooks/post-commit.ts
|
|
8
8
|
async function postCommitHook(config, files) {
|
|
9
9
|
chunk7LF2JPA5_cjs.writeInfo("Running post-commit hook...", config);
|
|
10
|
-
|
|
10
|
+
chunkRGE2RUUB_cjs.checkPackageVersion(files, config);
|
|
11
11
|
try {
|
|
12
12
|
chunkFJL2V56E_cjs.run(config, "git-lfs version");
|
|
13
13
|
} catch (error) {
|