mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
15 lines
400 B
TypeScript
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();
|
|
}
|
|
})();
|