build: output into "build" folder again → "dist" will be used for the final output in archive form

this will allow for cleaner separation -> build for the output from the build stage (i.e. TS/Webpack + asset copying) and dist for the archive format of the build folder
This commit is contained in:
Panagiotis Papadopoulos 2025-03-09 08:29:03 +01:00 committed by Panagiotis Papadopoulos
parent 064799e8cb
commit 607f9096aa
7 changed files with 9 additions and 9 deletions

View File

@ -10,8 +10,8 @@ COPY . .
RUN npm ci && \
npm run build:prepare-dist && \
npm cache clean --force && \
rm -rf dist/node_modules && \
mv dist/* \
rm -rf build/node_modules && \
mv build/* \
start-docker.sh \
/usr/src/app/ && \
rm -rf \

View File

@ -10,8 +10,8 @@ COPY . .
RUN npm ci && \
npm run build:prepare-dist && \
npm cache clean --force && \
rm -rf dist/node_modules && \
mv dist/* \
rm -rf build/node_modules && \
mv build/* \
start-docker.sh \
/usr/src/app/ && \
rm -rf \

View File

@ -1,7 +1,7 @@
import fs from "fs-extra";
import path from "path";
const DEST_DIR = "./dist";
const DEST_DIR = "./build";
const VERBOSE = process.env.VERBOSE;

View File

@ -3,7 +3,7 @@
"module": "NodeNext",
"declaration": false,
"sourceMap": true,
"outDir": "./dist",
"outDir": "./build",
"strict": true,
"noImplicitAny": true,
"resolveJsonModule": true,

View File

@ -3,7 +3,7 @@
"module": "NodeNext",
"declaration": false,
"sourceMap": true,
"outDir": "./dist",
"outDir": "./build",
"strict": true,
"noImplicitAny": true,
"resolveJsonModule": true,

View File

@ -3,7 +3,7 @@
"module": "NodeNext",
"declaration": false,
"sourceMap": true,
"outDir": "./dist",
"outDir": "./build",
"strict": true,
"noImplicitAny": true,
"resolveJsonModule": true,

View File

@ -19,7 +19,7 @@ const config: Configuration = {
},
output: {
publicPath: `${assetPath}/app-dist/`,
path: path.resolve(rootDir, "dist/src/public/app-dist"),
path: path.resolve(rootDir, "build/src/public/app-dist"),
filename: "[name].js"
},
plugins: [