@storm-software/git-tools 2.89.15 → 2.89.17
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-6LPSSJ6A.cjs → chunk-DEGLIS62.cjs} +158 -55
- package/bin/{chunk-4NEXKJH5.js → chunk-OLYGBFVX.js} +163 -60
- package/bin/git.cjs +69 -69
- 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 +1 -1
package/bin/pre-commit.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _chunkBXSXKKIZcjs = require('./chunk-BXSXKKIZ.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
15
15
|
require('./chunk-JMRHG3KS.cjs');
|
|
16
16
|
require('./chunk-NHO7HSOE.cjs');
|
|
17
17
|
require('./chunk-WOZSAFMN.cjs');
|
|
@@ -25,19 +25,19 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunkBXSXKKIZcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
_chunkDEGLIS62cjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
41
41
|
process.exit(1);
|
|
42
42
|
}
|
|
43
43
|
})();
|
package/bin/pre-commit.js
CHANGED
package/bin/pre-install.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
13
13
|
require('./chunk-JMRHG3KS.cjs');
|
|
14
14
|
require('./chunk-NHO7HSOE.cjs');
|
|
15
15
|
require('./chunk-WOZSAFMN.cjs');
|
|
@@ -23,19 +23,19 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
39
39
|
process.exit(1);
|
|
40
40
|
}
|
|
41
41
|
})();
|
package/bin/pre-install.js
CHANGED
package/bin/pre-push.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
18
18
|
require('./chunk-JMRHG3KS.cjs');
|
|
19
19
|
require('./chunk-NHO7HSOE.cjs');
|
|
20
20
|
require('./chunk-WOZSAFMN.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 _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkDEGLIS62cjs.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(_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json"))) {
|
|
42
42
|
errors.push('Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"');
|
|
@@ -58,26 +58,26 @@ void (async () => {
|
|
|
58
58
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
59
59
|
}
|
|
60
60
|
if (errors.length > 0) {
|
|
61
|
-
|
|
61
|
+
_chunkDEGLIS62cjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
|
|
62
62
|
for (const error of errors) {
|
|
63
63
|
console.error(error);
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkDEGLIS62cjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
68
68
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
69
69
|
try {
|
|
70
70
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
|
|
71
71
|
} catch (error) {
|
|
72
|
-
|
|
72
|
+
_chunkDEGLIS62cjs.writeError.call(void 0, `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.
|
|
73
73
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
74
|
-
|
|
74
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
81
81
|
process.exit(1);
|
|
82
82
|
}
|
|
83
83
|
})();
|
package/bin/pre-push.js
CHANGED
package/bin/prepare.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
13
13
|
require('./chunk-JMRHG3KS.cjs');
|
|
14
14
|
require('./chunk-NHO7HSOE.cjs');
|
|
15
15
|
require('./chunk-WOZSAFMN.cjs');
|
|
@@ -23,17 +23,17 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
37
37
|
process.exit(1);
|
|
38
38
|
}
|
|
39
39
|
})();
|
package/bin/prepare.js
CHANGED
package/bin/version-warning.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var _chunkBXSXKKIZcjs = require('./chunk-BXSXKKIZ.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
11
11
|
require('./chunk-JMRHG3KS.cjs');
|
|
12
12
|
require('./chunk-NHO7HSOE.cjs');
|
|
13
13
|
require('./chunk-WOZSAFMN.cjs');
|
|
@@ -21,13 +21,13 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED