Switch to pnpm
TBH I don't really care between pnpm and yarn, but the new runner image only has pnpm so here I go
This commit is contained in:
parent
6d49de0421
commit
50ff732413
7 changed files with 3030 additions and 2311 deletions
|
@ -17,4 +17,4 @@ jobs:
|
|||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
- name: Audit
|
||||
run: yarn audit
|
||||
run: pnpm audit
|
||||
|
|
|
@ -13,13 +13,13 @@ jobs:
|
|||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
run: pnpm install
|
||||
- name: Check code formatting
|
||||
run: yarn lint:prettier
|
||||
run: pnpm lint:prettier
|
||||
- name: Check code quality
|
||||
run: yarn lint:eslint
|
||||
run: pnpm lint:eslint
|
||||
- name: Check types
|
||||
run: yarn lint:tsc
|
||||
run: pnpm lint:tsc
|
||||
|
||||
build:
|
||||
name: Build
|
||||
|
@ -30,9 +30,9 @@ jobs:
|
|||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
run: pnpm install
|
||||
- name: Build
|
||||
run: yarn build
|
||||
run: pnpm build
|
||||
- name: Save build
|
||||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
public/
|
||||
pnpm-lock.yaml
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "bash render.bash",
|
||||
"build:targets": "yarn build:client && yarn build:server",
|
||||
"build:targets": "pnpm build:client && pnpm build:server",
|
||||
"build:client": "tsc -b && vite build --outDir dist/client",
|
||||
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
|
||||
"lint": "yarn lint:tsc && yarn lint:eslint && yarn lint:prettier",
|
||||
"lint": "pnpm lint:tsc && pnpm lint:eslint && pnpm lint:prettier",
|
||||
"lint:prettier": "prettier --check .",
|
||||
"lint:eslint": "eslint .",
|
||||
"lint:tsc": "tsc -b --noEmit",
|
||||
|
|
3019
pnpm-lock.yaml
generated
Normal file
3019
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,7 @@ set -o nounset
|
|||
set -o pipefail
|
||||
set -o xtrace
|
||||
|
||||
yarn "build:targets"
|
||||
pnpm "build:targets"
|
||||
|
||||
PROD='dist/prod'
|
||||
if [[ -d "$PROD" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue