mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
build(copy-dist): move "pruning" to copy-dist from copy-trilium.sh
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import fs from "fs-extra";
|
||||
import path from "path";
|
||||
import { execSync } from "node:child_process";
|
||||
|
||||
const DEST_DIR = "./build";
|
||||
|
||||
@@ -56,6 +57,9 @@ try {
|
||||
|
||||
console.log("Copying complete!")
|
||||
|
||||
// TriliumNextTODO: for Docker this needs to run separately *after* build-stage
|
||||
console.log("Pruning npm packages...")
|
||||
execSync(`npm ci --omit=dev --prefix ${DEST_DIR}`);
|
||||
} catch(err) {
|
||||
console.error("Error during copy:", err)
|
||||
process.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user