gute
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @deprecated Nutze `npm run generate:suggestions`
|
||||
* (extract-phrases.mjs → clean-phrases.mjs → build-real-suggestions.mjs).
|
||||
*/
|
||||
import { spawnSync } from "child_process";
|
||||
import { dirname, join } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const dir = dirname(fileURLToPath(import.meta.url));
|
||||
const steps = ["extract-phrases.mjs", "clean-phrases.mjs", "build-real-suggestions.mjs"];
|
||||
for (const step of steps) {
|
||||
const r = spawnSync(process.execPath, [join(dir, step)], { stdio: "inherit" });
|
||||
if (r.status) process.exit(r.status ?? 1);
|
||||
}
|
||||
process.exit(0);
|
||||
Reference in New Issue
Block a user