Skip to content

Commit be3e99a

Browse files
chore: migrate from npm to pnpm
- Add packageManager field (pnpm@9.15.9) to package.json - Replace npm commands with pnpm in scripts - Move overrides to pnpm.overrides format - Create .npmrc with shamefully-hoist for Angular compatibility - Update CI and Deploy workflows to use pnpm/action-setup - Replace package-lock.json with pnpm-lock.yaml - Update README with pnpm instructions
1 parent 8d5253a commit be3e99a

8 files changed

Lines changed: 10484 additions & 16834 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,18 @@ jobs:
1111
- name: Get sources
1212
uses: actions/checkout@v4
1313

14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v4
16+
1417
- name: Use Node.js
1518
uses: actions/setup-node@v4
1619
with:
1720
node-version: '20'
21+
cache: 'pnpm'
1822

19-
- name: Restore npm cache
20-
uses: actions/cache@v4
21-
with:
22-
path: ./node_modules
23-
key: ${{ runner.os }}-node-modules
24-
25-
- name: Run npm ci
26-
run: npm ci --no-audit --no-fund
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
2725

2826
- name: Build
29-
run: npm run test
27+
run: pnpm run test
3028

.github/workflows/deploy.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,23 @@ jobs:
1212
- name: Get sources
1313
uses: actions/checkout@v4
1414

15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
1518
- name: Use Node.js
1619
uses: actions/setup-node@v4
1720
with:
1821
node-version: '20'
22+
cache: 'pnpm'
1923

20-
- name: Restore npm cache
21-
uses: actions/cache@v4
22-
with:
23-
path: ./node_modules
24-
key: ${{ runner.os }}-node-modules
25-
26-
- name: Run npm ci
27-
run: npm ci --no-audit --no-fund
24+
- name: Install dependencies
25+
run: pnpm install --frozen-lockfile
2826

2927
- name: Install Internal Package
3028
uses: DevExpress/github-actions/install-internal-package@main
3129

3230
- name: Build
33-
run: npm run build
31+
run: pnpm run build
3432

3533
- name: Deploy
3634
uses: JamesIves/github-pages-deploy-action@3.7.1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
/coverage
3131
/libpeerconnection.log
3232
npm-debug.log
33+
pnpm-debug.log
3334
yarn-error.log
3435
testem.log
3536
/typings

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
auto-install-peers=true
2+
shamefully-hoist=true

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ If you need to run the ThemeBuilder UI locally, clone this repository and follow
88

99
## Prerequisites
1010

11-
You will need Node.js 12.16 or higher and npm 5.5.1 or higher. The app is built using angular-cli. Run `npm install @angular/cli -g` to install it.
11+
You will need Node.js 20 or higher and pnpm 9 or higher. The app is built using angular-cli.
1212

1313
## Install required packages and Launch
1414

1515
Run the following commands:
1616

1717
```
18-
npm install
19-
npm start
18+
pnpm install
19+
pnpm start
2020
```
2121

2222
Go to http://localhost:4200/.

0 commit comments

Comments
 (0)