Skip to content

Commit

Permalink
move to yarn berry, pnp
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Sep 22, 2021
1 parent afeab60 commit be9aaf3
Show file tree
Hide file tree
Showing 6 changed files with 1,066 additions and 284 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
id: node-cache
with:
# https://dev.to/mpocock1/how-to-cache-nodemodules-in-github-actions-with-yarn-24eh
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
path: '.yarn/cache'
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
- name: Install Dependencies
run: yarn install
- name: Build Project
Expand Down
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
node_modules

dist

.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
631 changes: 631 additions & 0 deletions .yarn/releases/yarn-berry.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: pnp

yarnPath: .yarn/releases/yarn-berry.cjs
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dist"
],
"scripts": {
"preinstall": "npx only-allow yarn",
"clean": "rm -rf dist",
"build": "tsc",
"watch": "tsc --watch",
Expand Down
Loading

0 comments on commit be9aaf3

Please sign in to comment.