File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -38,3 +38,6 @@ yarn-error.log*
38
38
# typescript
39
39
* .tsbuildinfo
40
40
next-env.d.ts
41
+
42
+ # npm config
43
+ .npmrc
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ function banner {
19
19
# =========================================================
20
20
21
21
function task:init { # # Set up the project for local development
22
+ project:npm-config
22
23
project:git-config
23
24
task:update
24
25
task:help
@@ -51,6 +52,12 @@ function project:install-dependencies {
51
52
npm install
52
53
}
53
54
55
+ function project:npm-config {
56
+ title " Configuring NPM"
57
+ npm config --location=project set legacy-peer-deps=true \
58
+ && echo -e " All ${GREEN} good${RESET} ."
59
+ }
60
+
54
61
function project:git-config {
55
62
title " Setting git configuration"
56
63
git config --local core.hooksPath dev/git-hooks
You can’t perform that action at this time.
0 commit comments