Skip to content

Commit 8a0b1d8

Browse files
authored
Update install scripts for improved dependency handling (#9441)
Replaces 'npm ci' with 'npm install --legacy-peer-deps' in install and update scripts to address peer dependency issues. Adds global npm update and turbo prune steps to the update script for better Docker build support.
1 parent d2a103c commit 8a0b1d8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ct/documenso.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ function update_script() {
4646
export NEXT_TELEMETRY_DISABLED=1
4747
export CYPRESS_INSTALL_BINARY=0
4848
export NODE_OPTIONS="--max-old-space-size=4096"
49-
$STD npm ci
49+
$STD turbo prune --scope=@documenso/remix --docker
50+
cd out
51+
$STD cp ../lingui.config.ts .
52+
$STD cp ../turbo.json .
53+
$STD cp -r json/* .
54+
$STD npm install --legacy-peer-deps
55+
$STD cp -r full/* .
5056
$STD turbo run build --filter=@documenso/remix
5157
$STD npm run prisma:migrate-deploy
5258
$STD turbo daemon stop

install/documenso-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ cd out
7676
$STD cp ../lingui.config.ts .
7777
$STD cp ../turbo.json .
7878
$STD cp -r json/* .
79-
$STD npm ci
79+
$STD npm install --legacy-peer-deps
8080
$STD cp -r full/* .
8181
$STD turbo run build --filter=@documenso/remix
8282
$STD npm run prisma:migrate-deploy

0 commit comments

Comments
 (0)