oneuptime/Scripts/Index.ts
Nawaz Dhandala e63f47a342
fix
2022-04-14 14:57:52 +01:00

15 lines
400 B
TypeScript

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