oneuptime/Scripts/Index.ts
2022-05-17 16:45:59 +00:00

15 lines
406 B
TypeScript

import { question } from 'zx';
import ScriptOptions from './Types/ScriptOptions';
import Compile from './Services/Compile';
await (async (): Promise<void> => {
const token: $TSFixMe = await question('Choose Option: ', {
choices: [ScriptOptions.CompileTypeScript],
});
if (token === ScriptOptions.CompileTypeScript) {
await Compile.compileAllTypeScriptProjects();
}
})();