16 lines
575 B
JavaScript
16 lines
575 B
JavaScript
/**
|
|
* @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);
|