@storm-software/git-tools 2.104.47 → 2.104.49
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 -2
- package/bin/{chunk-MM5AJ3HN.js → chunk-23TCSI67.js} +26 -143
- package/bin/{chunk-LHINQG4H.cjs → chunk-34R4PCUS.cjs} +9 -35
- package/bin/chunk-3XEEEMLV.js +25 -0
- package/bin/{chunk-FDIL5LQQ.cjs → chunk-3YZZSIRA.cjs} +2 -8
- package/bin/{chunk-QVRLY7GO.js → chunk-5DZECCFZ.js} +1831 -3498
- package/bin/{chunk-C56ONEWE.cjs → chunk-A3QVIDKR.cjs} +2063 -4146
- package/bin/{chunk-RWG7K3L2.cjs → chunk-ANR3M366.cjs} +14 -46
- package/bin/{chunk-YCGKNXJZ.cjs → chunk-AQDYBQBF.cjs} +2 -12
- package/bin/{chunk-DNTOHRW4.js → chunk-BJYW7ISD.js} +78 -182
- package/bin/{chunk-YKGA2MVU.cjs → chunk-FY5QB5MQ.cjs} +13 -47
- package/bin/{chunk-DBXOSHV7.js → chunk-GIYWTOX5.js} +10 -44
- package/bin/{chunk-YS7O5BRI.cjs → chunk-H6RJC2EU.cjs} +29 -146
- package/bin/{chunk-IFBRUMYX.js → chunk-KTLBDGE7.js} +1 -11
- package/bin/{chunk-RJTSICHA.js → chunk-M3SPNRDT.js} +6 -32
- package/bin/{chunk-PW5R2BRU.cjs → chunk-MRCW7ZWW.cjs} +4 -5
- package/bin/{chunk-KD5ZCYX3.cjs → chunk-OQNZFKFJ.cjs} +22 -445
- package/bin/{chunk-OBE5IRH4.js → chunk-PAW5GJNL.js} +3 -4
- package/bin/{chunk-377YOE7Z.js → chunk-QROY5223.js} +4 -426
- package/bin/{chunk-QYSGMK4D.js → chunk-REUY4MDC.js} +10 -42
- package/bin/{chunk-JUU5ILZB.cjs → chunk-RHY34RLE.cjs} +4 -6
- package/bin/{chunk-PRG2N75Y.js → chunk-V3UDZCED.js} +1 -7
- package/bin/chunk-VNWRUK6N.cjs +25 -0
- package/bin/{chunk-EJRTGQIY.js → chunk-W2TU25OT.js} +2 -4
- package/bin/{chunk-V2L6QG6X.cjs → chunk-Z3K5JTIC.cjs} +88 -192
- package/bin/{dist-YVMKTFW6.cjs → dist-3B7RDNKI.cjs} +1097 -2113
- package/bin/{dist-AXJG5W3U.js → dist-BGCQPBHL.js} +2 -5
- package/bin/{dist-5TR4KAWC.cjs → dist-WGGNNSDG.cjs} +6 -9
- package/bin/{dist-KY7IAJSV.js → dist-YM6D424K.js} +417 -1489
- package/bin/{esm-MGSMO3WY.cjs → esm-6GE5MI4G.cjs} +249 -254
- package/bin/{esm-IZHFRARS.js → esm-WLHP7RVO.js} +246 -251
- package/bin/git.cjs +9757 -20881
- package/bin/git.js +4720 -13387
- package/bin/json5-ELADGSSP.js +10 -0
- package/bin/json5-FQPHMSAC.cjs +10 -0
- package/bin/jsonc-CTYQYPBR.cjs +15 -0
- package/bin/{jsonc-6643P3LC.js → jsonc-RUGZP2X2.js} +3 -3
- package/bin/{multipart-parser-Z3URKOGZ.cjs → multipart-parser-I4Y55UNL.cjs} +8 -14
- package/bin/{multipart-parser-HAF2WA3O.js → multipart-parser-MFV7BRF2.js} +3 -9
- package/bin/post-checkout.cjs +29 -23
- package/bin/post-checkout.js +19 -13
- package/bin/post-commit.cjs +29 -23
- package/bin/post-commit.js +19 -13
- package/bin/post-merge.cjs +29 -23
- package/bin/post-merge.js +19 -13
- package/bin/pre-commit.cjs +26 -20
- package/bin/pre-commit.js +17 -11
- package/bin/pre-install.cjs +22 -19
- package/bin/pre-install.js +13 -10
- package/bin/pre-push.cjs +55 -36
- package/bin/pre-push.js +40 -21
- package/bin/prepare.cjs +20 -17
- package/bin/prepare.js +13 -10
- package/bin/toml-IRXKI45Y.cjs +10 -0
- package/bin/toml-U3J6BEAR.js +10 -0
- package/bin/{utils-WL6G35GX.js → utils-6O4EJJM3.js} +2 -12
- package/bin/{utils-PZ3SHU7I.cjs → utils-GJRPR6GZ.cjs} +5 -15
- package/bin/version-warning.cjs +18 -15
- package/bin/version-warning.js +13 -10
- package/bin/yaml-CPOMXZOK.js +10 -0
- package/bin/yaml-WGJNEJ7V.cjs +10 -0
- package/dist/{chunk-232JIEVA.js → chunk-3MA2SHAT.js} +1 -1
- package/dist/chunk-3V3F7TB7.cjs +18 -0
- package/dist/{chunk-TFEV2FZY.js → chunk-D7HN6Y5M.js} +8 -9
- package/dist/{chunk-L2C6A3XV.cjs → chunk-EQZ3BKYL.cjs} +9 -10
- package/dist/{chunk-WTMYHIID.cjs → chunk-FX5G24P6.cjs} +3 -3
- package/dist/{chunk-W7SYRJE7.js → chunk-JVIJRTGD.js} +1 -1
- package/dist/commit/config.cjs +3 -3
- package/dist/commit/config.js +2 -2
- package/dist/commitlint/config.cjs +24 -103
- package/dist/commitlint/config.js +24 -103
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/release/config.cjs +3 -3
- package/dist/release/config.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/bin/chunk-5DWG2HXA.js +0 -22
- package/bin/chunk-7B6YVRI6.cjs +0 -22
- package/bin/json5-DQ2B7V4X.js +0 -10
- package/bin/json5-OV4LY5NN.cjs +0 -10
- package/bin/jsonc-SKJF3GPV.cjs +0 -15
- package/bin/toml-IP5GTCQW.cjs +0 -10
- package/bin/toml-KSQJ7SIB.js +0 -10
- package/bin/yaml-3NH46CEJ.cjs +0 -10
- package/bin/yaml-F3NXDIX4.js +0 -10
- package/dist/chunk-Y7XG7IJ6.cjs +0 -18
package/bin/pre-commit.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict"; function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVNWRUK6Ncjs = require('./chunk-VNWRUK6N.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,33 +11,39 @@ var _chunk7B6YVRI6cjs = require('./chunk-7B6YVRI6.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
14
|
+
var _chunkA3QVIDKRcjs = require('./chunk-A3QVIDKR.cjs');
|
|
15
|
+
require('./chunk-Z3K5JTIC.cjs');
|
|
16
|
+
require('./chunk-34R4PCUS.cjs');
|
|
17
|
+
require('./chunk-H6RJC2EU.cjs');
|
|
18
|
+
require('./chunk-FY5QB5MQ.cjs');
|
|
19
|
+
require('./chunk-ANR3M366.cjs');
|
|
20
|
+
require('./chunk-AQDYBQBF.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkRHY34RLEcjs = require('./chunk-RHY34RLE.cjs');
|
|
24
24
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
|
-
|
|
26
|
+
_chunkRHY34RLEcjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkA3QVIDKRcjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
_chunkA3QVIDKRcjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkA3QVIDKRcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
|
+
_chunkVNWRUK6Ncjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
|
+
if (_chunkVNWRUK6Ncjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
+
_chunkA3QVIDKRcjs.writeError.call(void 0,
|
|
35
|
+
"Please regenerate the package lock file before committing...",
|
|
36
|
+
config
|
|
37
|
+
);
|
|
38
|
+
_chunkA3QVIDKRcjs.exitWithError.call(void 0, config);
|
|
36
39
|
}
|
|
37
|
-
|
|
40
|
+
_chunkA3QVIDKRcjs.exitWithSuccess.call(void 0, config);
|
|
38
41
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
_chunkA3QVIDKRcjs.writeFatal.call(void 0,
|
|
43
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
44
|
+
config
|
|
45
|
+
);
|
|
46
|
+
_chunkA3QVIDKRcjs.exitWithError.call(void 0, config);
|
|
41
47
|
process.exit(1);
|
|
42
48
|
}
|
|
43
49
|
})();
|
package/bin/pre-commit.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
checkPackageVersion,
|
|
4
4
|
isPackageVersionChanged
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3XEEEMLV.js";
|
|
6
6
|
import {
|
|
7
7
|
exitWithError,
|
|
8
8
|
exitWithSuccess,
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
writeError,
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-5DZECCFZ.js";
|
|
15
|
+
import "./chunk-BJYW7ISD.js";
|
|
16
|
+
import "./chunk-M3SPNRDT.js";
|
|
17
|
+
import "./chunk-23TCSI67.js";
|
|
18
|
+
import "./chunk-GIYWTOX5.js";
|
|
19
|
+
import "./chunk-REUY4MDC.js";
|
|
20
|
+
import "./chunk-KTLBDGE7.js";
|
|
21
21
|
import {
|
|
22
22
|
init_esm_shims
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-W2TU25OT.js";
|
|
24
24
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
init_esm_shims();
|
|
@@ -31,12 +31,18 @@ void (async () => {
|
|
|
31
31
|
writeInfo("Running pre-commit hook...", config);
|
|
32
32
|
checkPackageVersion(process.argv.slice(1));
|
|
33
33
|
if (isPackageVersionChanged(process.argv?.slice(1))) {
|
|
34
|
-
writeError(
|
|
34
|
+
writeError(
|
|
35
|
+
"Please regenerate the package lock file before committing...",
|
|
36
|
+
config
|
|
37
|
+
);
|
|
35
38
|
exitWithError(config);
|
|
36
39
|
}
|
|
37
40
|
exitWithSuccess(config);
|
|
38
41
|
} catch (error) {
|
|
39
|
-
writeFatal(
|
|
42
|
+
writeFatal(
|
|
43
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
44
|
+
config
|
|
45
|
+
);
|
|
40
46
|
exitWithError(config);
|
|
41
47
|
process.exit(1);
|
|
42
48
|
}
|
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 _chunkMRCW7ZWWcjs = require('./chunk-MRCW7ZWW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,33 +9,36 @@ var _chunkPW5R2BRUcjs = require('./chunk-PW5R2BRU.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
12
|
+
var _chunkA3QVIDKRcjs = require('./chunk-A3QVIDKR.cjs');
|
|
13
|
+
require('./chunk-Z3K5JTIC.cjs');
|
|
14
|
+
require('./chunk-34R4PCUS.cjs');
|
|
15
|
+
require('./chunk-H6RJC2EU.cjs');
|
|
16
|
+
require('./chunk-FY5QB5MQ.cjs');
|
|
17
|
+
require('./chunk-ANR3M366.cjs');
|
|
18
|
+
require('./chunk-AQDYBQBF.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkRHY34RLEcjs = require('./chunk-RHY34RLE.cjs');
|
|
22
22
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
|
-
|
|
24
|
+
_chunkRHY34RLEcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkA3QVIDKRcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkA3QVIDKRcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkA3QVIDKRcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkA3QVIDKRcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkA3QVIDKRcjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
_chunkMRCW7ZWWcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
+
_chunkA3QVIDKRcjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkA3QVIDKRcjs.writeFatal.call(void 0,
|
|
38
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
39
|
+
config
|
|
40
|
+
);
|
|
41
|
+
_chunkA3QVIDKRcjs.exitWithError.call(void 0, config);
|
|
39
42
|
process.exit(1);
|
|
40
43
|
}
|
|
41
44
|
})();
|
package/bin/pre-install.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
run
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PAW5GJNL.js";
|
|
5
5
|
import {
|
|
6
6
|
exitWithError,
|
|
7
7
|
exitWithSuccess,
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
handleProcess,
|
|
10
10
|
writeFatal,
|
|
11
11
|
writeInfo
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-5DZECCFZ.js";
|
|
13
|
+
import "./chunk-BJYW7ISD.js";
|
|
14
|
+
import "./chunk-M3SPNRDT.js";
|
|
15
|
+
import "./chunk-23TCSI67.js";
|
|
16
|
+
import "./chunk-GIYWTOX5.js";
|
|
17
|
+
import "./chunk-REUY4MDC.js";
|
|
18
|
+
import "./chunk-KTLBDGE7.js";
|
|
19
19
|
import {
|
|
20
20
|
init_esm_shims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W2TU25OT.js";
|
|
22
22
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
init_esm_shims();
|
|
@@ -34,7 +34,10 @@ void (async () => {
|
|
|
34
34
|
run(config, "npx -y only-allow pnpm");
|
|
35
35
|
exitWithSuccess(config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
writeFatal(
|
|
37
|
+
writeFatal(
|
|
38
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
39
|
+
config
|
|
40
|
+
);
|
|
38
41
|
exitWithError(config);
|
|
39
42
|
process.exit(1);
|
|
40
43
|
}
|
package/bin/pre-push.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVNWRUK6Ncjs = require('./chunk-VNWRUK6N.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMRCW7ZWWcjs = require('./chunk-MRCW7ZWW.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,70 +14,89 @@ var _chunkPW5R2BRUcjs = require('./chunk-PW5R2BRU.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
17
|
+
var _chunkA3QVIDKRcjs = require('./chunk-A3QVIDKR.cjs');
|
|
18
|
+
require('./chunk-Z3K5JTIC.cjs');
|
|
19
|
+
require('./chunk-34R4PCUS.cjs');
|
|
20
|
+
require('./chunk-H6RJC2EU.cjs');
|
|
21
|
+
require('./chunk-FY5QB5MQ.cjs');
|
|
22
|
+
require('./chunk-ANR3M366.cjs');
|
|
23
|
+
require('./chunk-AQDYBQBF.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkRHY34RLEcjs = require('./chunk-RHY34RLE.cjs');
|
|
27
27
|
|
|
28
28
|
// bin/pre-push.ts
|
|
29
|
-
|
|
29
|
+
_chunkRHY34RLEcjs.init_cjs_shims.call(void 0, );
|
|
30
30
|
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 _chunkA3QVIDKRcjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
_chunkA3QVIDKRcjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkA3QVIDKRcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
|
+
_chunkVNWRUK6Ncjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
+
_chunkA3QVIDKRcjs.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
|
-
if (_fs2.default.existsSync(
|
|
42
|
-
|
|
41
|
+
if (_fs2.default.existsSync(
|
|
42
|
+
_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json")
|
|
43
|
+
)) {
|
|
44
|
+
errors.push(
|
|
45
|
+
'Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"'
|
|
46
|
+
);
|
|
43
47
|
}
|
|
44
48
|
if (_fs2.default.existsSync(_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "yarn.lock"))) {
|
|
45
|
-
errors.push(
|
|
49
|
+
errors.push(
|
|
50
|
+
'Invalid occurrence of "yarn.lock" file. Please remove it and use only "pnpm-lock.yaml"'
|
|
51
|
+
);
|
|
46
52
|
}
|
|
47
53
|
try {
|
|
48
|
-
const content = await _promises.readFile.call(void 0,
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
const content = await _promises.readFile.call(void 0,
|
|
55
|
+
_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "pnpm-lock.yaml"),
|
|
56
|
+
{
|
|
57
|
+
encoding: "utf8"
|
|
58
|
+
}
|
|
59
|
+
);
|
|
51
60
|
if (content.match(/localhost:487/)) {
|
|
52
|
-
errors.push(
|
|
61
|
+
errors.push(
|
|
62
|
+
'The "pnpm-lock.yaml" has reference to local repository ("localhost:4873"). Please use ensure you disable local registry before running "pnpm i"'
|
|
63
|
+
);
|
|
53
64
|
}
|
|
54
65
|
if (content.match(/resolution: \{tarball/)) {
|
|
55
|
-
errors.push(
|
|
66
|
+
errors.push(
|
|
67
|
+
'The "pnpm-lock.yaml" has reference to tarball package. Please use npm registry only'
|
|
68
|
+
);
|
|
56
69
|
}
|
|
57
70
|
} catch (e) {
|
|
58
71
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
59
72
|
}
|
|
60
73
|
if (errors.length > 0) {
|
|
61
|
-
|
|
74
|
+
_chunkA3QVIDKRcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
|
|
62
75
|
for (const error of errors) {
|
|
63
76
|
console.error(error);
|
|
64
77
|
}
|
|
65
|
-
|
|
78
|
+
_chunkA3QVIDKRcjs.exitWithError.call(void 0, config);
|
|
66
79
|
}
|
|
67
|
-
|
|
68
|
-
|
|
80
|
+
_chunkA3QVIDKRcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
81
|
+
_chunkMRCW7ZWWcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
69
82
|
try {
|
|
70
|
-
|
|
83
|
+
_chunkMRCW7ZWWcjs.run.call(void 0, config, "git-lfs version");
|
|
71
84
|
} catch (error) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
85
|
+
_chunkA3QVIDKRcjs.writeError.call(void 0,
|
|
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
|
+
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
88
|
+
config
|
|
89
|
+
);
|
|
90
|
+
_chunkA3QVIDKRcjs.exitWithError.call(void 0, config);
|
|
75
91
|
}
|
|
76
|
-
|
|
77
|
-
|
|
92
|
+
_chunkMRCW7ZWWcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
93
|
+
_chunkA3QVIDKRcjs.exitWithSuccess.call(void 0, config);
|
|
78
94
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
95
|
+
_chunkA3QVIDKRcjs.writeFatal.call(void 0,
|
|
96
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
97
|
+
config
|
|
98
|
+
);
|
|
99
|
+
_chunkA3QVIDKRcjs.exitWithError.call(void 0, config);
|
|
81
100
|
process.exit(1);
|
|
82
101
|
}
|
|
83
102
|
})();
|
package/bin/pre-push.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
checkPackageVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3XEEEMLV.js";
|
|
5
5
|
import {
|
|
6
6
|
run
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PAW5GJNL.js";
|
|
8
8
|
import {
|
|
9
9
|
exitWithError,
|
|
10
10
|
exitWithSuccess,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
writeFatal,
|
|
15
15
|
writeInfo,
|
|
16
16
|
writeSuccess
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-5DZECCFZ.js";
|
|
18
|
+
import "./chunk-BJYW7ISD.js";
|
|
19
|
+
import "./chunk-M3SPNRDT.js";
|
|
20
|
+
import "./chunk-23TCSI67.js";
|
|
21
|
+
import "./chunk-GIYWTOX5.js";
|
|
22
|
+
import "./chunk-REUY4MDC.js";
|
|
23
|
+
import "./chunk-KTLBDGE7.js";
|
|
24
24
|
import {
|
|
25
25
|
init_esm_shims
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-W2TU25OT.js";
|
|
27
27
|
|
|
28
28
|
// bin/pre-push.ts
|
|
29
29
|
init_esm_shims();
|
|
@@ -38,21 +38,34 @@ void (async () => {
|
|
|
38
38
|
checkPackageVersion(process.argv?.slice(1));
|
|
39
39
|
writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
|
|
40
40
|
const errors = [];
|
|
41
|
-
if (fs.existsSync(
|
|
42
|
-
|
|
41
|
+
if (fs.existsSync(
|
|
42
|
+
path.join(config.workspaceRoot ?? "./", "package-lock.json")
|
|
43
|
+
)) {
|
|
44
|
+
errors.push(
|
|
45
|
+
'Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"'
|
|
46
|
+
);
|
|
43
47
|
}
|
|
44
48
|
if (fs.existsSync(path.join(config.workspaceRoot ?? "./", "yarn.lock"))) {
|
|
45
|
-
errors.push(
|
|
49
|
+
errors.push(
|
|
50
|
+
'Invalid occurrence of "yarn.lock" file. Please remove it and use only "pnpm-lock.yaml"'
|
|
51
|
+
);
|
|
46
52
|
}
|
|
47
53
|
try {
|
|
48
|
-
const content = await readFile(
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
const content = await readFile(
|
|
55
|
+
path.join(config.workspaceRoot ?? "./", "pnpm-lock.yaml"),
|
|
56
|
+
{
|
|
57
|
+
encoding: "utf8"
|
|
58
|
+
}
|
|
59
|
+
);
|
|
51
60
|
if (content.match(/localhost:487/)) {
|
|
52
|
-
errors.push(
|
|
61
|
+
errors.push(
|
|
62
|
+
'The "pnpm-lock.yaml" has reference to local repository ("localhost:4873"). Please use ensure you disable local registry before running "pnpm i"'
|
|
63
|
+
);
|
|
53
64
|
}
|
|
54
65
|
if (content.match(/resolution: \{tarball/)) {
|
|
55
|
-
errors.push(
|
|
66
|
+
errors.push(
|
|
67
|
+
'The "pnpm-lock.yaml" has reference to tarball package. Please use npm registry only'
|
|
68
|
+
);
|
|
56
69
|
}
|
|
57
70
|
} catch {
|
|
58
71
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
@@ -69,14 +82,20 @@ void (async () => {
|
|
|
69
82
|
try {
|
|
70
83
|
run(config, "git-lfs version");
|
|
71
84
|
} catch (error) {
|
|
72
|
-
writeError(
|
|
73
|
-
|
|
85
|
+
writeError(
|
|
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
|
+
Error: ${error?.message}`,
|
|
88
|
+
config
|
|
89
|
+
);
|
|
74
90
|
exitWithError(config);
|
|
75
91
|
}
|
|
76
92
|
run(config, "git lfs pre-push origin");
|
|
77
93
|
exitWithSuccess(config);
|
|
78
94
|
} catch (error) {
|
|
79
|
-
writeFatal(
|
|
95
|
+
writeFatal(
|
|
96
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
97
|
+
config
|
|
98
|
+
);
|
|
80
99
|
exitWithError(config);
|
|
81
100
|
process.exit(1);
|
|
82
101
|
}
|
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 _chunkMRCW7ZWWcjs = require('./chunk-MRCW7ZWW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,31 +9,34 @@ var _chunkPW5R2BRUcjs = require('./chunk-PW5R2BRU.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
12
|
+
var _chunkA3QVIDKRcjs = require('./chunk-A3QVIDKR.cjs');
|
|
13
|
+
require('./chunk-Z3K5JTIC.cjs');
|
|
14
|
+
require('./chunk-34R4PCUS.cjs');
|
|
15
|
+
require('./chunk-H6RJC2EU.cjs');
|
|
16
|
+
require('./chunk-FY5QB5MQ.cjs');
|
|
17
|
+
require('./chunk-ANR3M366.cjs');
|
|
18
|
+
require('./chunk-AQDYBQBF.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkRHY34RLEcjs = require('./chunk-RHY34RLE.cjs');
|
|
22
22
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
|
-
|
|
24
|
+
_chunkRHY34RLEcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkA3QVIDKRcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkA3QVIDKRcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkA3QVIDKRcjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
|
-
|
|
31
|
+
_chunkMRCW7ZWWcjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkA3QVIDKRcjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkA3QVIDKRcjs.writeFatal.call(void 0,
|
|
36
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
37
|
+
config
|
|
38
|
+
);
|
|
39
|
+
_chunkA3QVIDKRcjs.exitWithError.call(void 0, config);
|
|
37
40
|
process.exit(1);
|
|
38
41
|
}
|
|
39
42
|
})();
|
package/bin/prepare.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
run
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PAW5GJNL.js";
|
|
5
5
|
import {
|
|
6
6
|
exitWithError,
|
|
7
7
|
exitWithSuccess,
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
handleProcess,
|
|
10
10
|
writeFatal,
|
|
11
11
|
writeInfo
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-5DZECCFZ.js";
|
|
13
|
+
import "./chunk-BJYW7ISD.js";
|
|
14
|
+
import "./chunk-M3SPNRDT.js";
|
|
15
|
+
import "./chunk-23TCSI67.js";
|
|
16
|
+
import "./chunk-GIYWTOX5.js";
|
|
17
|
+
import "./chunk-REUY4MDC.js";
|
|
18
|
+
import "./chunk-KTLBDGE7.js";
|
|
19
19
|
import {
|
|
20
20
|
init_esm_shims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W2TU25OT.js";
|
|
22
22
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
init_esm_shims();
|
|
@@ -32,7 +32,10 @@ void (async () => {
|
|
|
32
32
|
}
|
|
33
33
|
exitWithSuccess(config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
writeFatal(
|
|
35
|
+
writeFatal(
|
|
36
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
37
|
+
config
|
|
38
|
+
);
|
|
36
39
|
exitWithError(config);
|
|
37
40
|
process.exit(1);
|
|
38
41
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkFY5QB5MQcjs = require('./chunk-FY5QB5MQ.cjs');
|
|
5
|
+
require('./chunk-AQDYBQBF.cjs');
|
|
6
|
+
require('./chunk-RHY34RLE.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.parseTOML = _chunkFY5QB5MQcjs.ae; exports.stringifyTOML = _chunkFY5QB5MQcjs.ue;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isEqual,
|
|
3
3
|
serialize
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V3UDZCED.js";
|
|
5
5
|
import {
|
|
6
|
-
__name,
|
|
7
6
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W2TU25OT.js";
|
|
9
8
|
|
|
10
9
|
// ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/utils/index.mjs
|
|
11
10
|
init_esm_shims();
|
|
@@ -14,7 +13,6 @@ function diff(obj1, obj2) {
|
|
|
14
13
|
const h2 = _toHashedObject(obj2);
|
|
15
14
|
return _diff(h1, h2);
|
|
16
15
|
}
|
|
17
|
-
__name(diff, "diff");
|
|
18
16
|
function _diff(h1, h2) {
|
|
19
17
|
const diffs = [];
|
|
20
18
|
const allProps = /* @__PURE__ */ new Set([
|
|
@@ -39,7 +37,6 @@ function _diff(h1, h2) {
|
|
|
39
37
|
}
|
|
40
38
|
return diffs;
|
|
41
39
|
}
|
|
42
|
-
__name(_diff, "_diff");
|
|
43
40
|
function _toHashedObject(obj, key = "") {
|
|
44
41
|
if (obj && typeof obj !== "object") {
|
|
45
42
|
return new DiffHashedObject(key, obj, serialize(obj));
|
|
@@ -52,11 +49,7 @@ function _toHashedObject(obj, key = "") {
|
|
|
52
49
|
}
|
|
53
50
|
return new DiffHashedObject(key, obj, `{${hashes.join(":")}}`, props);
|
|
54
51
|
}
|
|
55
|
-
__name(_toHashedObject, "_toHashedObject");
|
|
56
52
|
var DiffEntry = class {
|
|
57
|
-
static {
|
|
58
|
-
__name(this, "DiffEntry");
|
|
59
|
-
}
|
|
60
53
|
constructor(key, type, newValue, oldValue) {
|
|
61
54
|
this.key = key;
|
|
62
55
|
this.type = type;
|
|
@@ -81,9 +74,6 @@ var DiffEntry = class {
|
|
|
81
74
|
}
|
|
82
75
|
};
|
|
83
76
|
var DiffHashedObject = class {
|
|
84
|
-
static {
|
|
85
|
-
__name(this, "DiffHashedObject");
|
|
86
|
-
}
|
|
87
77
|
constructor(key, value, hash, props) {
|
|
88
78
|
this.key = key;
|
|
89
79
|
this.value = value;
|