Skip to content

Commit

Permalink
Migrate to PNPM (#12)
Browse files Browse the repository at this point in the history
* rm yarn.lock && pnpm install

* replace yarn with pnpm in CI + package.json

* bump netlify node version

* use pnpm/action-setup@v2 in CI
  • Loading branch information
janosh authored Oct 17, 2022
1 parent 266fab3 commit 8e87e9c
Show file tree
Hide file tree
Showing 7 changed files with 3,675 additions and 2,361 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Set up node
uses: actions/setup-node@v3
with:
cache: yarn
cache: pnpm

- name: Install dependencies
run: |
yarn
npx playwright install
pnpm install
npx playwright install chromium
- name: Run tests
id: tests
run: yarn test
run: pnpm test
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ repos:
hooks:
- id: codespell
stages: [commit, commit-msg]
exclude: yarn.lock
exclude: pnpm-lock.yaml
args: [--ignore-words-list, 'te,ba,nd,ore']
5 changes: 2 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[build]
command = "yarn build"
command = "pnpm build"
publish = "build"

[build.environment]
NODE_VERSION = "18.6.0"
YARN_VERSION = "1.22.19"
NODE_VERSION = "18.9.0"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"serve": "yarn build && yarn preview",
"serve": "pnpm build && pnpm preview",
"check": "svelte-check",
"test": "vitest --run tests/unit/*.ts && playwright test tests/*.ts"
},
Expand Down
Loading

0 comments on commit 8e87e9c

Please sign in to comment.