From 20db890ac7fb86a39c8f14b7bfb18d546625bb42 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 9 Oct 2021 14:29:17 +0200 Subject: [PATCH] try to use tsconfig instead --- backend/Dockerfile | 4 ---- database/tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 6dec1cb37..d13c4bdd7 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -64,14 +64,10 @@ FROM base as build COPY ./backend/ ./ # Also copy external enities from database COPY ./database/entity/ ../database/entity/ -# RUN mkdir -p ../node_modules/ -# RUN sudo mount -o bind ./node_modules ../node_modules/ # npm install RUN yarn install --production=false --frozen-lockfile --non-interactive -COPY ./node_modules ../node_modules - # npm build RUN yarn run build diff --git a/database/tsconfig.json b/database/tsconfig.json index d48524ba5..250ec5201 100644 --- a/database/tsconfig.json +++ b/database/tsconfig.json @@ -47,7 +47,7 @@ // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + "rootDirs": [".", "../database"], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ // "types": [], /* Type declaration files to be included in compilation. */ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */