Skip to content

Commit

Permalink
chore: migrate to yarn v4
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Nov 3, 2023
1 parent 5b7677f commit baf5fec
Show file tree
Hide file tree
Showing 7 changed files with 14,901 additions and 10,758 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ jobs:
node-version: ${{ matrix.node }}
cache: yarn

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
run: yarn --frozen-lockfile
run: yarn --immutable

- name: Build and Lint
run: yarn run-s build lint
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.*cache
.vercel
.yarn/*
!.yarn/plugins
*.tsbuildinfo
/public/index.html
node_modules
/public/index.html
2 changes: 1 addition & 1 deletion .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('@1stg/lint-staged')
module.exports = require('@1stg/lint-staged/tsc')
1 change: 1 addition & 0 deletions .yarn/plugins/plugin-prepare-lifecycle.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports={name:"plugin-prepare-lifecycle",factory:e=>({hooks:{afterAllInstalled(r){if(!r.topLevelWorkspace.manifest.scripts.get("prepare"))return;e("@yarnpkg/shell").execute("yarn prepare")}}})};
6 changes: 6 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nodeLinker: node-modules

plugins:
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,28 @@
"repository": "git+https://github.com/un-ts/appcenter.git",
"author": "JounQin (https://www.1stG.me) <[email protected]>",
"license": "MIT",
"private": true,
"packageManager": "[email protected]",
"scripts": {
"build": "tsx scripts/build",
"lint": "run-p lint:*",
"lint": "run-p 'lint:*'",
"lint:es": "eslint . --cache",
"lint:tsc": "tsc --noEmit",
"prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
"prepare": "simple-git-hooks",
"start": "vc dev"
},
"dependencies": {
"@vercel/edge": "^1.1.0"
},
"devDependencies": {
"@1stg/common-config": "^9.0.0",
"@octokit/request": "^8.1.4",
"@types/web": "^0.0.119",
"commitlint": "^18.2.0",
"eslint": "^8.52.0",
"lint-staged": "^13.3.0",
"npm-run-all": "^4.1.5",
"simple-git-hooks": "^2.9.0",
"tsx": "^3.14.0",
"typescript": "^5.2.2",
"vercel": "^32.5.0",
"yarn-deduplicate": "^6.0.2"
"vercel": "^32.5.0"
},
"resolutions": {
"prettier": "^2.8.8"
Expand Down
Loading

0 comments on commit baf5fec

Please sign in to comment.