Skip to content

Commit 0580c8f

Browse files
committed
feat: use pnpm
1 parent 2c330d3 commit 0580c8f

File tree

10 files changed

+8503
-8490
lines changed

10 files changed

+8503
-8490
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ jobs:
1212
uses: actions/setup-node@v4
1313
with:
1414
node-version: 20
15-
cache: 'yarn'
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
1619
- name: Install
17-
run: yarn --frozen-lockfile
20+
run: pnpm install --frozen-lockfile
1821
- name: Build
19-
run: yarn build
22+
run: pnpm build
2023
- name: Bundle
21-
run: yarn bundle
24+
run: pnpm bundle

.github/workflows/lint.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
uses: actions/setup-node@v4
1313
with:
1414
node-version: 20
15-
cache: 'yarn'
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
1619
- name: Install
17-
run: yarn --frozen-lockfile
20+
run: pnpm install --frozen-lockfile
1821
- name: Lint
19-
run: yarn lint
22+
run: pnpm lint

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: 20
21-
cache: 'yarn'
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 9
2225
- name: Install
23-
run: yarn --frozen-lockfile
26+
run: pnpm install --frozen-lockfile
2427
- name: Bundle
25-
run: yarn bundle
28+
run: pnpm bundle
2629
- name: Release
27-
run: yarn release
30+
run: pnpm release

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
uses: actions/setup-node@v4
1313
with:
1414
node-version: 20
15-
cache: 'yarn'
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
1619
- name: Install
17-
run: yarn
20+
run: pnpm install
1821
- name: Test
19-
run: yarn test
22+
run: pnpm test

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ A simple node boilerplate made in typescript using swc which generates `cjs` and
77
```sh
88
git clone https://github.com/maxgfr/typescript-swc-starter # For cloning the repository
99
cd typescript-swc-starter # To navigate to the repository root
10-
yarn # Install dependencies
10+
pnpm install # Install dependencies
1111
```
1212

1313
:warning: You have to use at least `node@20` to run this project.
1414

1515
## Commands
1616

1717
```sh
18-
yarn dev # For running the code in development thanks to swc and nodemon
18+
pnpm dev # For running the code in development thanks to swc and nodemon
1919

20-
yarn test # For running unit test
21-
yarn test:watch # For watching unit test
20+
pnpm test # For running unit test
21+
pnpm test:watch # For watching unit test
2222

23-
yarn lint # For linting the code
24-
yarn lint:fix # For linting the code and fix issues
23+
pnpm lint # For linting the code
24+
pnpm lint:fix # For linting the code and fix issues
2525

26-
yarn bundle # For generating bundling in cjs and esm
26+
pnpm bundle # For generating bundling in cjs and esm
2727

28-
yarn start:cjs # For running the code builded in cjs
29-
yarn start:esm # For running the code builded in esm
28+
pnpm start:cjs # For running the code builded in cjs
29+
pnpm start:esm # For running the code builded in esm
3030
```
3131

3232
## Publish to npm

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
"typescript": "5.9.3",
8383
"unbuild": "^2.0.0"
8484
},
85-
"resolutions": {
86-
"wrap-ansi": "7.0.0"
85+
"pnpm": {
86+
"overrides": {
87+
"wrap-ansi": "7.0.0"
88+
}
8789
}
8890
}

0 commit comments

Comments
 (0)