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
> Replace `your && scripts && here` by any post/pre install script that you want, like `husky install`, `npx pod-install` or both.
47
+
48
+
Now, when you run `yarn install` or `npm install` in `./my-library` the `your && scripts && here` will run normally.
49
+
50
+
But, when you install `my-library` as a dependency (aka `yarn add url/to/my-library.git`) in another repository, the `your && scripts && here` will be ignored.
27
51
28
52
## How it works
29
53
30
-
Check if exists `.git` folders.
54
+
Considering the [usage](#usage) example.
55
+
56
+
When `npx --yes ignore-dependency-scripts` is executed, it will check if exists a `.git` folder inside the root directory.
57
+
58
+
If `.git` folder exists, then you are installing the dependencies of `./my-library` directly.
59
+
60
+
If `.git` folder DOES NOT exists, then you are installing `my-library` as a dependency in another repository.
31
61
32
-
TODO: complete
62
+
> I think that in future we can extend this package to use another strategies too. PRs will be welcome.
0 commit comments