Skip to content

Commit

Permalink
Use PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Aug 11, 2023
1 parent 88ac25d commit e92011f
Show file tree
Hide file tree
Showing 5 changed files with 847 additions and 868 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup pnpm
# Pulls version from packageManager key in package.json
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache: 'pnpm'
- name: Install dependencies
run: yarn install
run: pnpm install
- name: Run prettier
run: yarn format:check
run: pnpm format:check
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
yarn.lock
pnpm-lock.yaml
.gitignore
node_modules/*
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
],
"scripts": {
"test": "yarn",
"format": "yarn prettier --write .",
"format:check": "yarn prettier --check ."
"format": "pnpm prettier --write .",
"format:check": "pnpm prettier --check ."
},
"devDependencies": {
"miragejs": "~0.1.43",
Expand All @@ -24,5 +24,6 @@
"msw": "^0.39.2"
},
"author": "Brian Gantzler",
"license": "MIT"
"license": "MIT",
"packageManager": "[email protected]"
}
Loading

0 comments on commit e92011f

Please sign in to comment.