Fix Companion build output and Dockerfile (#5917)

Without `rootDir` we now have a nested structure in `lib/src` instead of
the files directly in `lib/.
This commit is contained in:
Merlijn Vos 2025-08-21 18:25:10 +02:00 committed by GitHub
parent 27f0ca081e
commit 938c7a89db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
FROM node:18.17.1-alpine as build
FROM node:22.18.0-alpine AS build
# Create link to node on amd64 so that corepack can find it
RUN if [ "$(uname -m)" == "aarch64" ]; then mkdir -p /usr/local/sbin/ && ln -s /usr/local/bin/node /usr/local/sbin/node; fi
@ -17,7 +17,7 @@ RUN cd /app && corepack yarn workspace @uppy/companion build
# Now remove all non-prod dependencies for a leaner image
RUN cd /app && corepack yarn workspaces focus @uppy/companion --production
FROM node:18.17.1-alpine
FROM node:22.18.0-alpine
WORKDIR /app

View file

@ -2,6 +2,7 @@
"extends": "./tsconfig.shared",
"compilerOptions": {
"outDir": "./lib",
"rootDir": "./src",
"noEmitOnError": true
},
"include": ["src/**/*"]