File tree Expand file tree Collapse file tree 10 files changed +8503
-8490
lines changed
Expand file tree Collapse file tree 10 files changed +8503
-8490
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -7,26 +7,26 @@ A simple node boilerplate made in typescript using swc which generates `cjs` and
77``` sh
88git clone https://github.com/maxgfr/typescript-swc-starter # For cloning the repository
99cd 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
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments