Skip to content

Build your personal knowledge base with Trilium Notes

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

Panagiotis Papadopoulos607f9096aa5c
diff --git a/Dockerfile b/Dockerfile
index 2436a8124f..4aac3160fd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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 \
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index 9370bd6da4..f837893999 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -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 \
diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts
index 289334321c..19a48eaf0a 100644
--- a/bin/copy-dist.ts
+++ b/bin/copy-dist.ts
@@ -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;
diff --git a/tsconfig.build.json b/tsconfig.build.json
index 4d4ffd342f..1987c96c0e 100644
--- a/tsconfig.build.json
+++ b/tsconfig.build.json
@@ -3,7 +3,7 @@
"module": "NodeNext",
"declaration": false,
"sourceMap": true,
- "outDir": "./dist",
+ "outDir": "./build",
"strict": true,
"noImplicitAny": true,
"resolveJsonModule": true,
diff --git a/tsconfig.json b/tsconfig.json
index d94fcef82b..c1f3ef48bf 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -3,7 +3,7 @@
"module": "NodeNext",
"declaration": false,
"sourceMap": true,
- "outDir": "./dist",
+ "outDir": "./build",
"strict": true,
"noImplicitAny": true,
"resolveJsonModule": true,
diff --git a/tsconfig.webpack.json b/tsconfig.webpack.json
index cbfe8cbdb4..ed622818b3 100644
--- a/tsconfig.webpack.json
+++ b/tsconfig.webpack.json
@@ -3,7 +3,7 @@
"module": "NodeNext",
"declaration": false,
"sourceMap": true,
- "outDir": "./dist",
+ "outDir": "./build",
"strict": true,
"noImplicitAny": true,
"resolveJsonModule": true,
diff --git a/webpack.config.ts b/webpack.config.ts
index 207ff2fcf8..82439ea6d0 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -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: [