Skip to content

Commit 4a47b02

Browse files
committed
build: switch to pnpm
1 parent 8768db3 commit 4a47b02

File tree

6 files changed

+16612
-21
lines changed

6 files changed

+16612
-21
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,41 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v6
1515

1616
- name: Node setup
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v6
1818
with:
19-
node-version: 18
20-
cache: 'npm'
19+
node-version: 22
2120

22-
- run: npm i
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 10.32.1
24+
25+
- run: pnpm install --frozen-lockfile
2326

2427
- name: Build library
25-
run: npm run build:lib
28+
run: pnpm build:lib
2629

2730
- name: Build playground
28-
run: npm run build
31+
run: pnpm build
2932

3033
test:
3134
runs-on: ubuntu-latest
3235

3336
steps:
34-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v6
3538

3639
- name: Node setup
37-
uses: actions/setup-node@v3
40+
uses: actions/setup-node@v6
41+
with:
42+
node-version: 22
43+
44+
- uses: pnpm/action-setup@v4
3845
with:
39-
node-version: 18
40-
cache: 'npm'
46+
version: 10.28.0
4147

42-
- run: npm i
48+
- run: pnpm install --frozen-lockfile
4349

4450
- name: Test library
45-
run: npm run test:lib:headless
51+
run: pnpm test:lib:headless

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77
Start by installing all dependencies:
88

99
```bash
10-
npm i
10+
pnpm install --frozen-lockfile
1111
```
1212

1313
Run the tests:
1414

1515
```bash
16-
npm test
17-
npm run e2e
16+
pnpm test
17+
pnpm run e2e
1818
```
1919

2020
Run the playground app:
2121

2222
```bash
23-
npm start
23+
pnpm start
2424
```
2525

2626
## Building
2727

2828
```bash
29-
npm run build
29+
pnpm run build
3030
```
3131

3232
## <a name="rules"></a> Coding Rules

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@
7171
## Installation
7272

7373
```bash
74-
npm i @ngneat/overview
74+
npm install @ngneat/overview
7575
yarn add @ngneat/overview
76+
pnpm install @ngneat/overview
7677
```
7778

7879
## Table of Contents

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "overview-playground",
33
"version": "0.0.0",
4+
"packageManager": "pnpm@10.32.1",
45
"scripts": {
56
"start": "ng serve",
67
"build": "ng build",
@@ -10,7 +11,7 @@
1011
"build:lib": "ng build @ngneat/overview --configuration production && cp -r README.md dist/ngneat/overview",
1112
"test:lib": "ng test @ngneat/overview",
1213
"release": "cd projects/ngneat/overview && standard-version --infile ../../../CHANGELOG.md",
13-
"test:lib:headless": "cross-env CI=true npm run test:lib"
14+
"test:lib:headless": "cross-env CI=true pnpm test:lib"
1415
},
1516
"private": true,
1617
"dependencies": {
@@ -24,7 +25,8 @@
2425
"@angular/router": "^20.3.3",
2526
"rxjs": "~6.6.0",
2627
"tippy.js": "^6.2.7",
27-
"tslib": "^2.3.1"
28+
"tslib": "^2.3.1",
29+
"zone.js": "^0.16.1"
2830
},
2931
"devDependencies": {
3032
"@angular-devkit/build-angular": "^20.3.4",

0 commit comments

Comments
 (0)