-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7b8585
commit f0e9a6e
Showing
8 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
.yarn | ||
node_modules | ||
coverage | ||
dist | ||
.env | ||
.DS_Store | ||
.idea | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Thx https://stackoverflow.com/a/53239387/6612932 | ||
|
||
import { execSync } from "node:child_process"; | ||
|
||
const env = process.env; | ||
|
||
if ( | ||
// if INIT_CWD (yarn/npm install invocation path) and PWD | ||
// are the same, then local (dev) install/add is taking place | ||
env.INIT_CWD === env.PWD || | ||
// local (dev) yarn install may have been run | ||
// from a project subfolder | ||
env.INIT_CWD.indexOf(env.PWD) === 0 | ||
) { | ||
// do post-installation things | ||
execSync("husky install"); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.