@storm-software/git-tools 1.2.16 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.2.16](https://github.com/storm-software/storm-ops/compare/git-tools-v1.2.15...git-tools-v1.2.16) (2023-11-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Resolved issue setting private package.json field in node-library generator ([7e570c5](https://github.com/storm-software/storm-ops/commit/7e570c5d62b206bca2840e8e92c0a9920d8b571e))
7
+
1
8
  ## [1.2.15](https://github.com/storm-software/storm-ops/compare/git-tools-v1.2.14...git-tools-v1.2.15) (2023-11-10)
2
9
 
3
10
 
package/README.md CHANGED
@@ -15,7 +15,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
15
15
 
16
16
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
17
17
 
18
- [![Version](https://img.shields.io/badge/version-1.2.14-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
18
+ [![Version](https://img.shields.io/badge/version-1.2.15-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
19
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
20
20
 
21
21
  <h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ - This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync } = require("node:child_process");
4
+
5
+ try {
6
+ console.log("Running Storm post-checkout hook...");
7
+
8
+ execSync(
9
+ 'changedFiles="$(git diff-tree -r --name-only --no-commit-id $1 $2)" && node @storm-software/git-tools/scripts/package-version-warning.cjs $changedFiles'
10
+ );
11
+
12
+ const result = execSync(
13
+ "command -v git-lfs >/dev/null 2>&1 || echo >&2 '\nThis 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.\n' && exit(2) ",
14
+ "utf8"
15
+ );
16
+ if (Number(result)) {
17
+ console.error(`Git LFS error: ${result}`);
18
+ process.exit(1);
19
+ }
20
+ execSync('git lfs post-checkout "$@"');
21
+ } catch (e) {
22
+ console.error(e);
23
+ process.exit(1);
24
+ }
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync } = require("node:child_process");
4
+
5
+ try {
6
+ console.log("Running Storm post-commit hook...");
7
+
8
+ const result = execSync(
9
+ "command -v git-lfs >/dev/null 2>&1 || echo >&2 '\nThis 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.\n' && exit(2) ",
10
+ "utf8"
11
+ );
12
+ if (Number(result)) {
13
+ console.error(`Git LFS error: ${result}`);
14
+ process.exit(1);
15
+ }
16
+ execSync('git lfs post-commit "$@"');
17
+ } catch (e) {
18
+ console.error(e);
19
+ process.exit(1);
20
+ }
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync } = require("node:child_process");
4
+
5
+ try {
6
+ console.log("Running Storm post-merge hook...");
7
+
8
+ execSync(
9
+ 'changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" && @storm-software/git-tools/scripts/package-version-warning.cjs $changedFiles'
10
+ );
11
+
12
+ const result = execSync(
13
+ "command -v git-lfs >/dev/null 2>&1 || echo >&2 '\nThis 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.\n' && exit(2) ",
14
+ "utf8"
15
+ );
16
+ if (Number(result)) {
17
+ console.error(`Git LFS error: ${result}`);
18
+ process.exit(1);
19
+ }
20
+ execSync('git lfs post-merge "$@"');
21
+ } catch (e) {
22
+ console.error(e);
23
+ process.exit(1);
24
+ }
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync } = require("node:child_process");
4
+
5
+ try {
6
+ console.log("Running Storm pre-commit hook...");
7
+
8
+ execSync(
9
+ 'pnpm lint-staged --concurrent false --config="@storm-software/git-tools/lint-staged/config.cjs"'
10
+ );
11
+ execSync("pnpm test");
12
+ } catch (e) {
13
+ console.error(e);
14
+ process.exit(1);
15
+ }
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync } = require("node:child_process");
4
+
5
+ try {
6
+ console.log("Running Storm pre-push hook...");
7
+
8
+ execSync("node @storm-software/git-tools/scripts/check-lock-file.cjs");
9
+
10
+ const result = execSync(
11
+ "command -v git-lfs >/dev/null 2>&1 || echo >&2 '\nThis 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.\n' && exit(2) ",
12
+ "utf8"
13
+ );
14
+ if (Number(result)) {
15
+ console.error(`Git LFS error: ${result}`);
16
+ process.exit(1);
17
+ }
18
+ execSync('git lfs pre-push "$@"');
19
+ } catch (e) {
20
+ console.error(e);
21
+ process.exit(1);
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "private": false,
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "keywords": [
@@ -31,11 +31,11 @@
31
31
  "type": "module",
32
32
  "bin": {
33
33
  "storm-git": "./bin/cli.js",
34
- "storm-post-checkout": "./hooks/post-checkout.cjs",
35
- "storm-post-commit": "./hooks/post-commit.cjs",
36
- "storm-post-merge": "./hooks/post-merge.cjs",
37
- "storm-pre-commit": "./hooks/pre-commit.cjs",
38
- "storm-pre-push": "./hooks/pre-push.cjs"
34
+ "storm-post-checkout": "./bin/post-checkout.cjs",
35
+ "storm-post-commit": "./bin/post-commit.cjs",
36
+ "storm-post-merge": "./bin/post-merge.cjs",
37
+ "storm-pre-commit": "./bin/pre-commit.cjs",
38
+ "storm-pre-push": "./bin/pre-push.cjs"
39
39
  },
40
40
  "dependencies": {
41
41
  "@commitlint/cli": "18.2.0",
@@ -1,10 +0,0 @@
1
- const { execSync } = require("node:child_process");
2
-
3
- execSync(
4
- 'changedFiles="$(git diff-tree -r --name-only --no-commit-id $1 $2)" && node @storm-software/git-tools/scripts/package-version-warning.cjs $changedFiles'
5
- );
6
-
7
- execSync(
8
- "command -v git-lfs >/dev/null 2>&1 || { echo >&2 '\nThis 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.\n'; exit 2; }"
9
- );
10
- execSync('git lfs post-checkout "$@"');
@@ -1,6 +0,0 @@
1
- const { execSync } = require("node:child_process");
2
-
3
- execSync(
4
- "command -v git-lfs >/dev/null 2>&1 || { echo >&2 '\nThis 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.\n'; exit 2; }"
5
- );
6
- execSync('git lfs post-commit "$@"');
@@ -1,10 +0,0 @@
1
- const { execSync } = require("node:child_process");
2
-
3
- execSync(
4
- 'changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" && @storm-software/git-tools/scripts/package-version-warning.cjs $changedFiles'
5
- );
6
-
7
- execSync(
8
- "command -v git-lfs >/dev/null 2>&1 || { echo >&2 '\nThis 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.\n'; exit 2; }"
9
- );
10
- execSync('git lfs post-merge "$@"');
@@ -1,6 +0,0 @@
1
- const { execSync } = require("node:child_process");
2
-
3
- execSync(
4
- 'pnpm lint-staged --concurrent false --config="@storm-software/git-tools/lint-staged/config.cjs"'
5
- );
6
- execSync("pnpm test");
@@ -1,8 +0,0 @@
1
- const { execSync } = require("node:child_process");
2
-
3
- execSync("node @storm-software/git-tools/scripts/check-lock-file.cjs");
4
-
5
- execSync(
6
- "command -v git-lfs >/dev/null 2>&1 || { echo >&2 '\nThis 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.\n'; exit 2; }"
7
- );
8
- execSync('git lfs pre-push "$@"');