@storm-software/git-tools 2.113.10 → 2.113.11
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-QBLF3SVD.cjs → chunk-IRGUI27L.cjs} +1215 -4460
- package/bin/{chunk-2YVCKFIL.js → chunk-OQEBEKDJ.js} +1207 -4451
- package/bin/git.cjs +63 -63
- package/bin/git.js +1 -1
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/package.json +5 -3
package/bin/pre-commit.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIRGUI27Lcjs = require('./chunk-IRGUI27L.cjs');
|
|
15
15
|
require('./chunk-FMYKTN2Z.cjs');
|
|
16
16
|
require('./chunk-MXO7CLUN.cjs');
|
|
17
17
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -25,25 +25,25 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkIRGUI27Lcjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkIRGUI27Lcjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkIRGUI27Lcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunkHTVOKCRJcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
34
|
+
_chunkIRGUI27Lcjs.writeError.call(void 0,
|
|
35
35
|
"Please regenerate the package lock file before committing...",
|
|
36
36
|
config
|
|
37
37
|
);
|
|
38
|
-
|
|
38
|
+
_chunkIRGUI27Lcjs.exitWithError.call(void 0, config);
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
_chunkIRGUI27Lcjs.exitWithSuccess.call(void 0, config);
|
|
41
41
|
} catch (error) {
|
|
42
|
-
|
|
42
|
+
_chunkIRGUI27Lcjs.writeFatal.call(void 0,
|
|
43
43
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
44
44
|
config
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunkIRGUI27Lcjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/pre-commit.js
CHANGED
package/bin/pre-install.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkIRGUI27Lcjs = require('./chunk-IRGUI27L.cjs');
|
|
13
13
|
require('./chunk-FMYKTN2Z.cjs');
|
|
14
14
|
require('./chunk-MXO7CLUN.cjs');
|
|
15
15
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -23,22 +23,22 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkIRGUI27Lcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkIRGUI27Lcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkIRGUI27Lcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkIRGUI27Lcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkIRGUI27Lcjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkGWDOCACNcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkIRGUI27Lcjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
37
|
+
_chunkIRGUI27Lcjs.writeFatal.call(void 0,
|
|
38
38
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
39
39
|
config
|
|
40
40
|
);
|
|
41
|
-
|
|
41
|
+
_chunkIRGUI27Lcjs.exitWithError.call(void 0, config);
|
|
42
42
|
process.exit(1);
|
|
43
43
|
}
|
|
44
44
|
})();
|
package/bin/pre-install.js
CHANGED
package/bin/pre-push.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkIRGUI27Lcjs = require('./chunk-IRGUI27L.cjs');
|
|
18
18
|
require('./chunk-FMYKTN2Z.cjs');
|
|
19
19
|
require('./chunk-MXO7CLUN.cjs');
|
|
20
20
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -31,12 +31,12 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
31
31
|
var _promises = require('fs/promises');
|
|
32
32
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
33
33
|
void (async () => {
|
|
34
|
-
const config = await
|
|
34
|
+
const config = await _chunkIRGUI27Lcjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkIRGUI27Lcjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkIRGUI27Lcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkIRGUI27Lcjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
|
|
40
40
|
const errors = [];
|
|
41
41
|
if (_fs2.default.existsSync(
|
|
42
42
|
_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json")
|
|
@@ -71,32 +71,32 @@ void (async () => {
|
|
|
71
71
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
72
72
|
}
|
|
73
73
|
if (errors.length > 0) {
|
|
74
|
-
|
|
74
|
+
_chunkIRGUI27Lcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
|
|
75
75
|
for (const error of errors) {
|
|
76
76
|
console.error(error);
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
_chunkIRGUI27Lcjs.exitWithError.call(void 0, config);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
_chunkIRGUI27Lcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
81
81
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
82
82
|
try {
|
|
83
83
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
84
84
|
} catch (error) {
|
|
85
|
-
|
|
85
|
+
_chunkIRGUI27Lcjs.writeError.call(void 0,
|
|
86
86
|
`This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.
|
|
87
87
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
88
88
|
config
|
|
89
89
|
);
|
|
90
|
-
|
|
90
|
+
_chunkIRGUI27Lcjs.exitWithError.call(void 0, config);
|
|
91
91
|
}
|
|
92
92
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
93
|
-
|
|
93
|
+
_chunkIRGUI27Lcjs.exitWithSuccess.call(void 0, config);
|
|
94
94
|
} catch (error) {
|
|
95
|
-
|
|
95
|
+
_chunkIRGUI27Lcjs.writeFatal.call(void 0,
|
|
96
96
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
97
97
|
config
|
|
98
98
|
);
|
|
99
|
-
|
|
99
|
+
_chunkIRGUI27Lcjs.exitWithError.call(void 0, config);
|
|
100
100
|
process.exit(1);
|
|
101
101
|
}
|
|
102
102
|
})();
|
package/bin/pre-push.js
CHANGED
package/bin/prepare.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkIRGUI27Lcjs = require('./chunk-IRGUI27L.cjs');
|
|
13
13
|
require('./chunk-FMYKTN2Z.cjs');
|
|
14
14
|
require('./chunk-MXO7CLUN.cjs');
|
|
15
15
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -23,20 +23,20 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkIRGUI27Lcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkIRGUI27Lcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkIRGUI27Lcjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunkGWDOCACNcjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkIRGUI27Lcjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
35
|
+
_chunkIRGUI27Lcjs.writeFatal.call(void 0,
|
|
36
36
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkIRGUI27Lcjs.exitWithError.call(void 0, config);
|
|
40
40
|
process.exit(1);
|
|
41
41
|
}
|
|
42
42
|
})();
|
package/bin/prepare.js
CHANGED
package/bin/version-warning.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkIRGUI27Lcjs = require('./chunk-IRGUI27L.cjs');
|
|
11
11
|
require('./chunk-FMYKTN2Z.cjs');
|
|
12
12
|
require('./chunk-MXO7CLUN.cjs');
|
|
13
13
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -21,16 +21,16 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkIRGUI27Lcjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkIRGUI27Lcjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
29
|
+
_chunkIRGUI27Lcjs.writeFatal.call(void 0,
|
|
30
30
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
31
31
|
config
|
|
32
32
|
);
|
|
33
|
-
|
|
33
|
+
_chunkIRGUI27Lcjs.exitWithError.call(void 0, config);
|
|
34
34
|
process.exit(1);
|
|
35
35
|
}
|
|
36
36
|
})();
|
package/bin/version-warning.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/git-tools",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tools for managing Git repositories within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -214,6 +214,7 @@
|
|
|
214
214
|
"lefthook",
|
|
215
215
|
"lint-staged"
|
|
216
216
|
],
|
|
217
|
+
"peerDependencies": { "zod": ">=4.0.0" },
|
|
217
218
|
"dependencies": {
|
|
218
219
|
"@angular-devkit/architect": "0.1900.6",
|
|
219
220
|
"nx": "21.0.3",
|
|
@@ -260,8 +261,9 @@
|
|
|
260
261
|
"tsup": "8.4.0",
|
|
261
262
|
"underscore": "1.13.7",
|
|
262
263
|
"update-section": "0.3.3",
|
|
263
|
-
"word-wrap": "1.2.5"
|
|
264
|
+
"word-wrap": "1.2.5",
|
|
265
|
+
"zod": "^4.0.2"
|
|
264
266
|
},
|
|
265
267
|
"publishConfig": { "access": "public" },
|
|
266
|
-
"gitHead": "
|
|
268
|
+
"gitHead": "56f060816d1082fefc318aa1b65294279c0bfdcd"
|
|
267
269
|
}
|