1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-16 19:14:16 +02:00

document resolver, reduce code duplication, refactoring

This commit is contained in:
Thomas Wilkerling
2025-03-19 14:33:22 +01:00
parent 0455fa4b74
commit d9f235ce3b
107 changed files with 11949 additions and 10740 deletions

View File

@@ -68,6 +68,11 @@ fs.existsSync("dist") || fs.mkdirSync("dist");
});
}
let content = fs.readFileSync("tmp/db/interface.js", "utf8");
content = content.replace(/import \{([^}]+)} from "\.\.\/type\.js";/, '');
fs.writeFileSync("tmp/db/interface.js", content);
//fs.copyFileSync("src/db/interface.js", "tmp/db/interface.js");
fs.copyFileSync("task/babel." + (debug ? "debug": (minify ? "min" : "bundle")) + ".json", "tmp/.babelrc");
fs.existsSync("dist/module" + (debug ? "-debug" : (minify ? "-min" : ""))) && fs.rmSync("dist/module" + (debug ? "-debug" : (minify ? "-min" : "")), { recursive: true });