Reverted replacing npm with yarn (#2531)

Reverted replacing npm with yarn

### Type of change

- [x] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
This commit is contained in:
Zhichang Yu 2024-09-23 11:08:31 +08:00 committed by GitHub
parent f6ceb43e36
commit 139268de6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 28008 additions and 14516 deletions

View File

@ -36,12 +36,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt update && apt install -y nodejs npm && \
rm -rf /var/lib/apt/lists/*
# if you located in China, you can use taobao registry to speed up npm and yarn
RUN npm config set registry https://registry.npmmirror.com/
# https://yarnpkg.com/getting-started/install
COPY web web
RUN cd web && npm install -g corepack && corepack enable && yarn install && yarn run build
RUN cd web && npm i --force && npm run build
# install dependencies from poetry.lock file
COPY pyproject.toml poetry.toml poetry.lock ./

28006
web/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
"lint": "umi lint --eslint-only",
"prepare": "cd .. && husky web/.husky",
"setup": "umi setup",
"start": "yarn dev",
"start": "npm run dev",
"test": "jest --no-cache --coverage"
},
"lint-staged": {

File diff suppressed because it is too large Load Diff