Skip to content

Commit 4d676d2

Browse files
committed
README
1 parent 0647f67 commit 4d676d2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66

77
Script to prevent dependencies to execute postinstall when installed directly from git.
88

9+
## Why?
10+
11+
Sometimes when working with private projects, we have the need to reuse some parts of our code in many projects. But, we know that maintain a private `npm registry` is a pain and require a lot of attention.
12+
13+
So, the easiest way, is to install our private repo as a dependency directly from git. But, this come with some caveats like the inability to use `.npmignore` and the **the lack of an option to "prevents pre/post scripts" when installed as a dependency.**
14+
15+
Some examples of scripts that we might want to prevent from running when installed as a dependency is:
16+
17+
- husky install
18+
- npx pod-install
19+
920
## Usage
1021

1122
```json

0 commit comments

Comments
 (0)