Skip to content

Build your personal knowledge base with Trilium Notes

build: fix missing copying of etapi.openapi.yaml into dist folder

Panagiotis Papadopoulos010783102a39
diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts
index 6ffc2cf988..85013e992e 100644
--- a/bin/copy-dist.ts
+++ b/bin/copy-dist.ts
@@ -29,7 +29,7 @@ const copy = async () => {
fs.copySync(path.join("build", srcFile), destFile, { recursive: true });
}
- const filesToCopy = ["config-sample.ini", "tsconfig.webpack.json"];
+ const filesToCopy = ["config-sample.ini", "tsconfig.webpack.json", "./src/etapi/etapi.openapi.yaml"];
for (const file of filesToCopy) {
log(`Copying ${file}`);
await fs.copy(file, path.join(DEST_DIR, file));