Skip to content

Commit cb3ac4f

Browse files
styflecursoragent
andauthored
chore: switch workspace package manager to pnpm (#491)
* Switch workspace package manager to pnpm Co-authored-by: Steven <styfle@users.noreply.github.com> * Use workspace micro package in tests Co-authored-by: Steven <styfle@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent e7b1059 commit cb3ac4f

9 files changed

Lines changed: 9769 additions & 7898 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ jobs:
99
strategy:
1010
matrix:
1111
node-version:
12-
- 16
12+
- 20
1313
steps:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: ${{ matrix.node-version }}
18+
- name: Enable pnpm
19+
run: corepack enable pnpm
1820
- name: Install dependencies
19-
run: yarn
21+
run: pnpm install --frozen-lockfile
2022
- name: Run tests
21-
run: yarn run test
23+
run: pnpm run test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ node_modules
33

44
# logs
55
npm-debug.log
6-
yarn-error.log
6+
pnpm-debug.log
77

88
# coverage
99
coverage

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"npmClient": "yarn",
2+
"npmClient": "pnpm",
33
"useWorkspaces": true,
44
"packages": [
55
"packages/*"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"private": true,
3+
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
34
"workspaces": [
45
"packages/*",
56
"test"
@@ -8,7 +9,7 @@
89
"prepublish": "lerna run prepublish",
910
"publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre",
1011
"publish-stable": "lerna version --force-publish",
11-
"test": "cd test && yarn run test"
12+
"test": "pnpm --dir test run test"
1213
},
1314
"license": "MIT",
1415
"devDependencies": {

packages/micro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"scripts": {
2020
"build": "tsc",
21-
"prepublishOnly": "yarn run build",
21+
"prepublishOnly": "pnpm run build",
2222
"eslint-check": "eslint --max-warnings=0 .",
2323
"prettier-check": "prettier --check .",
2424
"type-check": "tsc --noEmit"

pnpm-lock.yaml

Lines changed: 9750 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
packages:
2+
- "packages/*"
3+
- "test"
4+
5+
minimumReleaseAge: 2880
6+
7+
onlyBuiltDependencies:
8+
- core-js-pure

test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"tap": "16.3.0",
2323
"ts-node": "10.9.1",
2424
"typescript": "4.7.4",
25-
"micro": "*"
25+
"micro": "workspace:*"
2626
},
2727
"prettier": "@vercel/style-guide/prettier"
2828
}

0 commit comments

Comments
 (0)