zhichyu commited on
Commit
ac847bc
·
1 Parent(s): eba9f1d

Reverted replacing npm with yarn (#2531)

Browse files

Reverted replacing npm with yarn

### Type of change

- [x] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):

Dockerfile.scratch CHANGED
@@ -36,12 +36,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
36
  apt update && apt install -y nodejs npm && \
37
  rm -rf /var/lib/apt/lists/*
38
 
39
- # if you located in China, you can use taobao registry to speed up npm and yarn
40
- RUN npm config set registry https://registry.npmmirror.com/
41
-
42
- # https://yarnpkg.com/getting-started/install
43
  COPY web web
44
- RUN cd web && npm install -g corepack && corepack enable && yarn install && yarn run build
45
 
46
  # install dependencies from poetry.lock file
47
  COPY pyproject.toml poetry.toml poetry.lock ./
 
36
  apt update && apt install -y nodejs npm && \
37
  rm -rf /var/lib/apt/lists/*
38
 
 
 
 
 
39
  COPY web web
40
+ RUN cd web && npm i --force && npm run build
41
 
42
  # install dependencies from poetry.lock file
43
  COPY pyproject.toml poetry.toml poetry.lock ./
web/package-lock.json ADDED
The diff for this file is too large to render. See raw diff
 
web/package.json CHANGED
@@ -8,7 +8,7 @@
8
  "lint": "umi lint --eslint-only",
9
  "prepare": "cd .. && husky web/.husky",
10
  "setup": "umi setup",
11
- "start": "yarn dev",
12
  "test": "jest --no-cache --coverage"
13
  },
14
  "lint-staged": {
 
8
  "lint": "umi lint --eslint-only",
9
  "prepare": "cd .. && husky web/.husky",
10
  "setup": "umi setup",
11
+ "start": "npm run dev",
12
  "test": "jest --no-cache --coverage"
13
  },
14
  "lint-staged": {
web/yarn.lock DELETED
The diff for this file is too large to render. See raw diff