Skip to content

Commit 546e468

Browse files
committed
build: migrate to yarn
1 parent b470438 commit 546e468

File tree

9 files changed

+13159
-11398
lines changed

9 files changed

+13159
-11398
lines changed

.github/workflows/deploy-package.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "packages/msw-dev-tool/**"
99
- ".github/workflows/deploy-package.yml"
1010
- "package.json"
11-
- "pnpm-lock.yaml"
11+
- "yarn.lock"
1212

1313
jobs:
1414
release:
@@ -25,24 +25,21 @@ jobs:
2525
uses: actions/setup-node@v3
2626
with:
2727
node-version: "20"
28+
cache: 'yarn'
2829

29-
- name: Set up pnpm
30-
uses: pnpm/action-setup@v2
31-
with:
32-
version: 9.10.0
30+
- name: Enable Corepack
31+
run: corepack enable
3332

3433
- name: Config identity
3534
run: |
3635
git config --global user.email "${{ secrets.ADMIN_EMAIL }}"
3736
git config --global user.name "${{ secrets.ADMIN_NAME }}"
3837
3938
- name: Install dependencies
40-
working-directory: packages/msw-dev-tool
41-
run: pnpm install
39+
run: yarn install
4240

43-
- name: Build
44-
working-directory: packages/msw-dev-tool
45-
run: npm run build
41+
- name: Build msw-dev-tool
42+
run: yarn workspace msw-dev-tool build
4643

4744
- name: Get NPM package version
4845
id: get_version

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ node_modules
1111
dist
1212
dist-ssr
1313
*.local
14+
.yarn/*
1415

1516
# Editor directories and files
1617
.vscode/*

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
2-
"name": "msw-dev-tool-repo",
2+
"name": "msw-dev-tool-monorepo",
33
"private": true,
4-
"scripts": {},
5-
"packageManager": "pnpm@9.10.0",
6-
"dependencies": {
7-
}
4+
"workspaces": [
5+
"packages/*"
6+
],
7+
"scripts": {
8+
"dev": "yarn workspace docs dev",
9+
"build": "yarn workspaces run build",
10+
"lint": "yarn workspaces run lint",
11+
"test": "yarn workspaces run test"
12+
},
13+
"devDependencies": {
14+
"typescript": "^5.0.0"
15+
},
16+
"packageManager": "yarn@4.5.3"
817
}

packages/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
"public"
4242
]
4343
}
44-
}
44+
}

packages/example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
"public"
3535
]
3636
}
37-
}
37+
}

0 commit comments

Comments
 (0)