Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure NPM to use legacy peer deps #16

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# npm config
.npmrc
7 changes: 7 additions & 0 deletions Taskfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function banner {
# =========================================================

function task:init { ## Set up the project for local development
project:npm-config
project:git-config
task:update
task:help
Expand Down Expand Up @@ -51,6 +52,12 @@ function project:install-dependencies {
npm install
}

function project:npm-config {
title "Configuring NPM"
npm config --location=project set legacy-peer-deps=true \
&& echo -e "All ${GREEN}good${RESET}."
}

function project:git-config {
title "Setting git configuration"
git config --local core.hooksPath dev/git-hooks
Expand Down
Loading