Skip to content

Commit a410320

Browse files
authored
Configure NPM to use legacy peer deps (#16)
1 parent 074282b commit a410320

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ yarn-error.log*
3838
# typescript
3939
*.tsbuildinfo
4040
next-env.d.ts
41+
42+
# npm config
43+
.npmrc

Taskfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function banner {
1919
# =========================================================
2020

2121
function task:init { ## Set up the project for local development
22+
project:npm-config
2223
project:git-config
2324
task:update
2425
task:help
@@ -51,6 +52,12 @@ function project:install-dependencies {
5152
npm install
5253
}
5354

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+
5461
function project:git-config {
5562
title "Setting git configuration"
5663
git config --local core.hooksPath dev/git-hooks

0 commit comments

Comments
 (0)