From 82ef467f64f4cb2175c62806b6cfb45992dfa991 Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Sat, 5 Jul 2025 18:48:10 +0000 Subject: [PATCH] chore: use pnpm for builds --- cli/README.md | 12 ++++++++---- open-api/bin/generate-open-api.sh | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cli/README.md b/cli/README.md index 8fa2ace483..05213bfc22 100644 --- a/cli/README.md +++ b/cli/README.md @@ -6,8 +6,10 @@ Please see the [Immich CLI documentation](https://immich.app/docs/features/comma Before building the CLI, you must build the immich server and the open-api client. To build the server run the following in the server folder: - $ npm install - $ npm run build + # if you don't have node installed + $ npm install -g pnpm + $ pnpm install + $ pnpm build Then, to build the open-api client run the following in the open-api folder: @@ -15,8 +17,10 @@ Then, to build the open-api client run the following in the open-api folder: To run the Immich CLI from source, run the following in the cli folder: - $ npm install - $ npm run build + # if you don't have node installed + $ npm install -g pnpm + $ pnpm install + $ pnpm build $ ts-node . You'll need ts-node, the easiest way to install it is to use npm: diff --git a/open-api/bin/generate-open-api.sh b/open-api/bin/generate-open-api.sh index 9780bca6fb..f8652ff95b 100755 --- a/open-api/bin/generate-open-api.sh +++ b/open-api/bin/generate-open-api.sh @@ -34,7 +34,7 @@ function typescript { # requires server to be built ( - cd .. + cd .. pnpm --filter immich install pnpm --filter immich build pnpm --filter immich sync:open-api