You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,20 @@
4
4
This package gets info about your git repo (*long hash* + *short hash* + *branch*) and stores this data in your `package.json`.
5
5
6
6
### Why?
7
-
I faced next issue:
7
+
I faced next issue:
8
8
If we can't use `git log` inside Docker container in git subrepo in production, we need to store info about git in local files. Storing info about the current git state in `package.json` was a good decision.
9
9
This module solves my issue.
10
10
11
11
### Install
12
12
```bash
13
-
npm i git-hash-package
13
+
npm i git+https://github.com/axi92/git-hash-package.git
14
14
```
15
+
You can run it local with `npx git-hash-package`
15
16
16
17
Or if you want to run it globally(Thanks to [@teebu](https://github.com/teebu) and his awesome PR):
17
18
18
19
```
19
-
npm i -g git-hash-package
20
+
npm i -g git+https://github.com/axi92/git-hash-package.git
0 commit comments