This commit is contained in:
2026-05-14 21:06:52 +01:00
parent d8834df50e
commit a17f3b50ba
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ The default deploy flow is:
```sh ```sh
git pull --ff-only git pull --ff-only
npm install --production=false --include=dev --omit=optional npm install --production=false --include=dev --include=optional
npm run build npm run build
pm2 reload tssbot-web --update-env pm2 reload tssbot-web --update-env
``` ```
+12 -3
View File
@@ -98,11 +98,11 @@ function run(command, args, options = {}) {
} }
async function ensureBuildDependencies() { async function ensureBuildDependencies() {
await run('npm', ['install', '--production=false', '--include=dev', '--omit=optional'], { await run('npm', ['install', '--production=false', '--include=dev', '--include=optional'], {
env: { env: {
NODE_ENV: 'development', NODE_ENV: 'development',
npm_config_include: 'dev', npm_config_include: 'dev,optional',
npm_config_omit: 'optional', npm_config_omit: '',
npm_config_production: 'false', npm_config_production: 'false',
}, },
}) })
@@ -112,6 +112,15 @@ async function ensureBuildDependencies() {
} catch { } catch {
throw new Error('@vitejs/plugin-react is missing after npm install; dev dependencies were not installed') throw new Error('@vitejs/plugin-react is missing after npm install; dev dependencies were not installed')
} }
if (process.platform === 'linux' && process.arch === 'x64') {
const libc = process.report?.getReport?.().header?.glibcVersionRuntime ? 'gnu' : 'musl'
try {
require.resolve(`@rollup/rollup-linux-x64-${libc}`)
} catch {
throw new Error(`@rollup/rollup-linux-x64-${libc} is missing after npm install; optional dependencies were not installed`)
}
}
} }
function postDiscordWebhook(payload) { function postDiscordWebhook(payload) {