Skip to content

Commit 012d6b9

Browse files
committed
chore: switch from npm to pnpm for package management
1 parent 07d8210 commit 012d6b9

File tree

6 files changed

+2764
-7200
lines changed

6 files changed

+2764
-7200
lines changed

CLAUDE.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ This is an rssCloud Server v2 implementation in Node.js - a notification protoco
88

99
## Development Commands
1010

11+
This project uses pnpm with corepack. Run `corepack enable` to set up pnpm automatically.
12+
1113
### Start Development
1214

13-
- `npm start` - Start server with nodemon (auto-reload on changes)
14-
- `npm run client` - Start client with nodemon
15+
- `pnpm start` - Start server with nodemon (auto-reload on changes)
16+
- `pnpm run client` - Start client with nodemon
1517

1618
### Testing & Quality
1719

18-
- `npm test` - Run Mocha test suite (called by test-api)
19-
- `npm run test-api` - Run full API tests using Docker containers (MacOS tested)
20-
- `npm run lint` - Run ESLint with auto-fix on controllers/, services/, test/
20+
- `pnpm test` - Run Mocha test suite (called by test-api)
21+
- `pnpm run test-api` - Run full API tests using Docker containers (MacOS tested)
22+
- `pnpm run lint` - Run ESLint with auto-fix on controllers/, services/, test/
2123

2224
### Data Management
2325

24-
- `npm run import-data` - Import data using bin/import-data.js
26+
- `pnpm run import-data` - Import data using bin/import-data.js
2527

2628
## Architecture
2729

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
66
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
77
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
88

9+
# Enable corepack for pnpm
10+
RUN corepack enable
11+
912
RUN mkdir -p /app
1013

1114
WORKDIR /app
1215

1316
COPY package.json .
14-
COPY package-lock.json .
17+
COPY pnpm-lock.yaml .
1518

1619
FROM base AS dependencies
1720

18-
RUN npm ci
21+
RUN pnpm install --frozen-lockfile
1922

2023
FROM dependencies AS runtime
2124

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ services:
2020

2121
rsscloud-tests:
2222
build: .
23-
command: dockerize -wait tcp://mongodb:27017 -wait http://rsscloud:5337 -timeout 10s bash -c "npm test"
23+
command: dockerize -wait tcp://mongodb:27017 -wait http://rsscloud:5337 -timeout 10s bash -c "pnpm test"
2424
environment:
2525
APP_URL: http://rsscloud:5337
2626
MONGODB_URI: mongodb://mongodb:27017/rsscloud

0 commit comments

Comments
 (0)