Skip to content

Commit

Permalink
Switch to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Jun 18, 2022
1 parent da322ca commit 6e53406
Show file tree
Hide file tree
Showing 4 changed files with 49,573 additions and 18,916 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dist
build
.swp
stats.json
package-lock.json
public/build-meta.json


Expand All @@ -46,3 +45,8 @@ public/build-meta.json
!.yarn/releases
!.yarn/sdks
!.yarn/versions


# Using NPM
# package-lock.json
yarn.lock
20 changes: 9 additions & 11 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[build]
publish = "build/"
command = "CI='' yarn run build"
command = "CI='' npm run build"

[build.environment]
NPM_FLAGS = "--legacy-peer-deps"

## Yarn 3 cache does not work out of the box as of Jan 2022. Context:
## https://github.com/netlify/build/issues/1535#issuecomment-1021947989
Expand All @@ -12,19 +15,14 @@ command = "CI='' yarn run build"
## YARN_ENABLE_GLOBAL_CACHE = "true"
## YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"

## [build.environment]
## NODE_VERSION = "16"
## YARN_VERSION = "3.2.1"
## NPM_FLAGS = "--version"

[build.environment]
NODE_VERSION = "16"
YARN_VERSION = "3.2.1"
YARN_FLAGS = "--mode=update-lockfile"
YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"
## YARN_VERSION = "3.2.1"
## YARN_FLAGS = "--mode=update-lockfile"
## YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"

[[plugins]]
package = "/.netlify/netlify-plugin-yarn"
## [[plugins]]
## package = "/.netlify/netlify-plugin-yarn"

[[redirects]]
from = "/api/*"
Expand Down
Loading

0 comments on commit 6e53406

Please sign in to comment.