Update pnpm from v7 to v8
That suppose to help with Dependabot security updates not updating lockfile.
This commit is contained in:
committed by
Umputun
parent
63048cc798
commit
3001b37812
@@ -35,7 +35,7 @@ jobs:
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
@@ -161,7 +161,7 @@ jobs:
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Check bundle size
|
||||
@@ -191,7 +191,7 @@ jobs:
|
||||
uses: pnpm/action-setup@v4.0.0
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ COPY ./frontend/apps/remark42/package.json /srv/frontend/apps/remark42/
|
||||
RUN \
|
||||
if [[ -z "$SKIP_FRONTEND_BUILD" || -z "$SKIP_FRONTEND_TEST" ]]; then \
|
||||
apk add --no-cache --update git && \
|
||||
npm i -g pnpm@7; \
|
||||
npm i -g pnpm@8; \
|
||||
fi
|
||||
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.pnpm-store/v3 \
|
||||
|
||||
@@ -7,7 +7,7 @@ WORKDIR /srv/frontend
|
||||
COPY ./frontend/package.json ./frontend/pnpm-lock.yaml ./frontend/pnpm-workspace.yaml /srv/frontend/
|
||||
COPY ./frontend/apps/remark42/package.json /srv/frontend/apps/remark42/package.json
|
||||
|
||||
RUN apk add --no-cache --update git && npm i -g pnpm@7
|
||||
RUN apk add --no-cache --update git && npm i -g pnpm@8
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.pnpm-store/v3 pnpm i
|
||||
|
||||
FROM frontend-deps AS build-frontend
|
||||
|
||||
@@ -5,7 +5,7 @@ WORKDIR /frontend
|
||||
|
||||
COPY ./package.json ./pnpm-workspace.yaml ./pnpm-lock.yaml /frontend/
|
||||
COPY ./e2e/package.json /frontend/e2e/
|
||||
RUN corepack enable && corepack prepare pnpm@7.33.6 --activate && pnpm install
|
||||
RUN corepack enable && corepack prepare pnpm@8 --activate && pnpm install
|
||||
|
||||
COPY ./e2e/playwright.config.ts /frontend/e2e/
|
||||
COPY ./e2e/tests /frontend/e2e/tests/
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
"translation:check": "node ./tasks/checkTranslation.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.15 <=17.*",
|
||||
"pnpm": "7.*"
|
||||
"node": ">=16.15 <=22.*",
|
||||
"pnpm": "8.*"
|
||||
},
|
||||
"packageManager": "pnpm@7.33.7",
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"dependencies": {
|
||||
"@github/markdown-toolbar-element": "^2.1.1",
|
||||
"@github/text-expander-element": "^2.2.2",
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"type-check:api": "turbo run type-check --filter=@remark42/api",
|
||||
"lint:api": "turbo run lint --filter=@remark42/api"
|
||||
},
|
||||
"packageManager": "pnpm@7.33.7",
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"devDependencies": {
|
||||
"husky": "^8.0.1",
|
||||
"lint-staged": "^13.0.3",
|
||||
|
||||
@@ -4,7 +4,7 @@ Implementation of API methods for Remark42
|
||||
|
||||
## Development
|
||||
|
||||
- If you don't have `pnpm` installed run `npm i -g pnpm@7`
|
||||
- If you don't have `pnpm` installed run `npm i -g pnpm@8`
|
||||
- Install dependencies `pnpm i`
|
||||
- Run development mode with `pnpm run dev`
|
||||
- Build lib with `pnpm run build`
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"type-check": "tsc --noEmit",
|
||||
"lint-staged:lint": "eslint --fix --ext .cjs,.mjs,.ts"
|
||||
},
|
||||
"packageManager": "pnpm@7.33.7",
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.0.5",
|
||||
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
||||
|
||||
Generated
+2199
-2074
File diff suppressed because it is too large
Load Diff
@@ -21,7 +21,7 @@ While developing, we set up environment which imitates real world example. We se
|
||||
You must have at least 2GB RAM or swap enabled for building.
|
||||
|
||||
- install [Node.js 16](https://nodejs.org/en/) or higher (we recommend using [NVM](https://github.com/nvm-sh/nvm) for node version autoswitch)
|
||||
- install [PNPM 7](https://pnpm.io/installation)
|
||||
- install [PNPM 8](https://pnpm.io/installation)
|
||||
- run `pnpm i` inside `./frontend`
|
||||
|
||||
Running `pnpm i` will set up pre-commit hooks into your git repository. They are used to reformat your frontend code using `prettier` and lint with `eslint` and `stylelint` before every commit.
|
||||
|
||||
Reference in New Issue
Block a user