mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
14 lines
394 B
TypeScript
14 lines
394 B
TypeScript
import Project from '../Utils/Projects';
|
|
import { $ } from 'zx';
|
|
|
|
export default class Compile {
|
|
public static async compileAllTypeScriptProjects(): Promise<void> {
|
|
const projects: $TSFixMe = Project.getProjects();
|
|
for (const project of projects) {
|
|
await $`cd ${project.path}`;
|
|
await $`npm run compile`;
|
|
await $`cd ..`;
|
|
}
|
|
}
|
|
}
|