mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-30 08:15:31 +08:00
feat: optimize platform update command by omitting dev dependencies
This commit is contained in:
@@ -437,7 +437,8 @@ app.post('/api/system/update', authenticateToken, async (req, res) => {
|
|||||||
|
|
||||||
// Platform deployments use their own update workflow from the project root.
|
// Platform deployments use their own update workflow from the project root.
|
||||||
const updateCommand = IS_PLATFORM
|
const updateCommand = IS_PLATFORM
|
||||||
? 'git checkout main && git pull && npm install && npm run update:platform'
|
// In platform, husky and dev dependencies are not needed
|
||||||
|
? 'git checkout main && git pull && npm pkg delete scripts.prepare && npm install --omit=dev && npm run update:platform'
|
||||||
: installMode === 'git'
|
: installMode === 'git'
|
||||||
? 'git checkout main && git pull && npm install'
|
? 'git checkout main && git pull && npm install'
|
||||||
: 'npm install -g @cloudcli-ai/cloudcli@latest';
|
: 'npm install -g @cloudcli-ai/cloudcli@latest';
|
||||||
|
|||||||
Reference in New Issue
Block a user