Skip to content

Commit

Permalink
Merge pull request #916 from teitei-tk/chore/upgrade-yarn
Browse files Browse the repository at this point in the history
upgrade yarn 1 to 4
  • Loading branch information
teitei-tk authored May 9, 2024
2 parents 5b10acd + d3dfe11 commit d9387b4
Show file tree
Hide file tree
Showing 8 changed files with 5,117 additions and 2,468 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "yarn"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- name: Cache node_modules
uses: actions/cache@v4
Expand All @@ -27,7 +28,7 @@ jobs:
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install
run: yarn install --immutable

- name: format
run: yarn format
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ out/

# Local Netlify folder
.netlify

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.2.2.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: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"enabled": true
},
"files": {
"ignore": ["node_modules/**/*", ".next/**/*"]
"ignore": ["node_modules/**/*", ".next/**/*", ".yarn/**/*"]
},
"linter": {
"enabled": true,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
"next": "12.3.4",
"react": "17.0.2",
"react-dom": "17.0.2"
}
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"incremental": true,
"types": ["vitest/globals"]
},
"exclude": ["node_modules"],
"exclude": ["node_modules", ".next", ".yarn"],
"include": ["next-env.d.ts", "./src/**/*", "./types/**/*", "__tests__/**/*"]
}
6,668 changes: 4,205 additions & 2,463 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit d9387b4

Please sign in to comment.