Skip to content

Commit

Permalink
Switch Build to npm; Remove Yarn Config (ohcnetwork#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeswibon authored Jun 19, 2022
1 parent 615ffc4 commit 15d784f
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 1,473 deletions.
546 changes: 0 additions & 546 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

33 changes: 0 additions & 33 deletions .yarn/plugins/@yarnpkg/plugin-outdated.cjs

This file was deleted.

786 changes: 0 additions & 786 deletions .yarn/releases/yarn-3.2.1.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions .yarnrc.yml

This file was deleted.

7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ FROM node:lts-buster-slim as build-stage

WORKDIR /app

COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn/ .yarn/
COPY package.json package-lock.json ./

RUN yarn install --check-cache
RUN npm install --legacy-peer-deps

COPY . .

RUN yarn run build
RUN npm run build


#production-stage
Expand Down
4 changes: 1 addition & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
publish = "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
## [build.environment]
Expand All @@ -17,6 +14,7 @@ command = "CI='' npm run build"

[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--legacy-peer-deps"
## YARN_VERSION = "3.2.1"
## YARN_FLAGS = "--mode=update-lockfile"
## YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"
Expand Down
Loading

0 comments on commit 15d784f

Please sign in to comment.