Skip to content

Commit 488e053

Browse files
committed
chore: swap to pnpm and use directly lib for example
1 parent 3bd1046 commit 488e053

10 files changed

Lines changed: 5089 additions & 7143 deletions

File tree

.github/workflows/nodejs-ci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,27 @@ jobs:
1818
steps:
1919
- name: Repository checkout
2020
uses: actions/checkout@v4
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v3
24+
2125
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v3.8.1
26+
uses: actions/setup-node@v4
2327
with:
2428
node-version: ${{ matrix.node-version }}
25-
- name: Install latest npm
26-
run: npm install -g npm
29+
cache: pnpm
30+
2731
- name: Install dependencies
28-
run: npm ci
32+
run: pnpm install
33+
2934
- name: Run lint
30-
run: npm run lint
35+
run: pnpm lint
36+
3137
- name: Run build
32-
run: npm run build
38+
run: pnpm build
39+
3340
- name: Run tests
34-
run: npm run test:coverage
41+
run: pnpm test:coverage
42+
3543
- name: Code coverage
3644
uses: codecov/codecov-action@v1

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-manager-strict=false

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ Fork the repository
9292
Install dependencies
9393

9494
```sh
95-
npm install
95+
pnpm install
9696
```
9797

9898
Make your proposed changes. Add tests if applicable, lint the code. Submit a pull request.
9999

100100
## Tests
101101

102102
```sh
103-
npm run test
103+
pnpm run test
104104
```
105105

106106
## Lint
107107

108108
```sh
109-
npm run lint
109+
pnpm run lint
110110
```

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cd duo_universal_nodejs/example
1616

1717
Install dependencies
1818
```
19-
npm install
19+
pnpm install
2020
```
2121

2222
## Run the application
@@ -25,7 +25,7 @@ npm install
2525

2626
2. Start the application
2727
```
28-
npm run start
28+
pnpm run start
2929
```
3030

3131
3. Navigate to http://localhost:3000

0 commit comments

Comments
 (0)