You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
289 B
TypeScript
19 lines
289 B
TypeScript
import { buildPages } from "./pages/build";
|
|
|
|
const abort = (e: any) => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
};
|
|
|
|
const check = <T>(p: Promise<T>) => p.catch(abort);
|
|
|
|
const gen = async () => {
|
|
const bp = check(buildPages());
|
|
|
|
await bp;
|
|
|
|
console.log("Generation done");
|
|
};
|
|
|
|
await gen();
|