Skip to content

Commit ebe8dff

Browse files
committed
chore: npm -> pnpm
1 parent 2f3c3ad commit ebe8dff

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

backend/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
"start-bot-dev-debug": "DEBUG=true clinic heapprofiler --collect-only --dest .clinic-bot -- node --enable-source-maps --stack-trace-limit=30 --inspect=0.0.0.0:9229 dist/index.js",
1717
"start-bot-prod": "node --enable-source-maps --stack-trace-limit=30 dist/index.js",
1818
"start-bot-prod-debug": "DEBUG=true clinic heapprofiler --collect-only --dest .clinic-bot -- node --enable-source-maps --stack-trace-limit=30 dist/index.js",
19-
"watch-bot": "tsc-watch --build --onSuccess \"npm run start-bot-dev\"",
19+
"watch-bot": "tsc-watch --build --onSuccess \"pnpm run start-bot-dev\"",
2020
"start-api-dev": "node --enable-source-maps --stack-trace-limit=30 --inspect=0.0.0.0:9239 dist/api/index.js",
2121
"start-api-dev-debug": "DEBUG=true clinic heapprofiler --collect-only --dest .clinic-api -- node --enable-source-maps --stack-trace-limit=30 --inspect=0.0.0.0:9239 dist/api/index.js",
2222
"start-api-prod": "node --enable-source-maps --stack-trace-limit=30 dist/api/index.js",
2323
"start-api-prod-debug": "clinic heapprofiler --collect-only --dest .clinic-api -- node --enable-source-maps --stack-trace-limit=30 dist/api/index.js",
24-
"watch-api": "tsc-watch --build --onSuccess \"npm run start-api-dev\"",
24+
"watch-api": "tsc-watch --build --onSuccess \"pnpm run start-api-dev\"",
2525
"typeorm": "node ../node_modules/typeorm/cli.js",
26-
"migrate": "npm run typeorm -- migration:run -d dist/data/dataSource.js",
27-
"migrate-prod": "npm run migrate",
28-
"migrate-dev": "npm run build && npm run migrate",
29-
"migrate-rollback": "npm run typeorm -- migration:revert -d dist/data/dataSource.js",
30-
"migrate-rollback-prod": "npm run migrate-rollback",
31-
"migrate-rollback-dev": "npm run build && npm run migrate-rollback",
26+
"migrate": "pnpm run typeorm -- migration:run -d dist/data/dataSource.js",
27+
"migrate-prod": "pnpm run migrate",
28+
"migrate-dev": "pnpm run build && pnpm run migrate",
29+
"migrate-rollback": "pnpm run typeorm -- migration:revert -d dist/data/dataSource.js",
30+
"migrate-rollback-prod": "pnpm run migrate-rollback",
31+
"migrate-rollback-dev": "pnpm run build && pnpm run migrate-rollback",
3232
"validate-active-configs": "node --enable-source-maps dist/validateActiveConfigs.js > ../config-errors.txt",
3333
"export-config-json-schema": "node --enable-source-maps dist/exportSchemas.js ../config-checker/public/config-schema.json",
34-
"test": "npm run build && npm run run-tests",
34+
"test": "pnpm run build && pnpm run run-tests",
3535
"run-tests": "ava",
36-
"test-watch": "tsc-watch --build --onSuccess \"npx ava\""
36+
"test-watch": "tsc-watch --build --onSuccess \"pnpm exec ava\""
3737
},
3838
"dependencies": {
3939
"@silvia-odwyer/photon-node": "^0.3.1",

docs/DEVELOPMENT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ These commands are run inside the dev container. You should be able to open a te
5858

5959
### 1. Install dependencies
6060

61-
1. `npm ci`
61+
1. `pnpm install`
6262

6363
### Starting the backend (bot + api)
6464

6565
1. `cd ~/zeppelin/backend`
66-
2. `npm run watch`
66+
2. `pnpm run watch`
6767

6868
### Starting the dashboard
6969

7070
1. `cd ~/zeppelin/dashboard`
71-
2. `npm run watch`
71+
2. `pnpm run watch`
7272

7373
### Opening the dashboard
7474
Browse to https://localhost:3300 to view the dashboard

docs/PRODUCTION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ Zeppelin's production environment uses Docker. There are a few different ways to
6060
## Manual
6161
1. Build the Zeppelin image: `docker build --tag 'zeppelin' .`
6262
2. Run the service:
63-
* Bot: `docker run zeppelin npm run start-bot`
64-
* API: `docker run zeppelin npm run start-api`
65-
* Dashboard: `docker run zeppelin npm run start-dashboard`
63+
* Bot: `docker run zeppelin pnpm run start-bot`
64+
* API: `docker run zeppelin pnpm run start-api`
65+
* Dashboard: `docker run zeppelin pnpm run start-dashboard`
6666

6767
If you're using an application platform such as Railway, you can simply point it to Zeppelin's repository and it should pick up the Dockerfile from there.
68-
For the start command, you can use the same commands as above: `npm run start-bot`, `npm run start-api`, `npm run start-dashboard`.
68+
For the start command, you can use the same commands as above: `pnpm run start-bot`, `pnpm run start-api`, `pnpm run start-dashboard`.
6969
Make sure to also run migrations when you update the bot.
7070

7171
### Environment variables

0 commit comments

Comments
 (0)