import { Group, startIfMain, Task } from 'dapes'; import { getAbsolutePath } from 'utftu'; const types = new Task({ name: 'types', exec: async ({ command }) => { await command('npm run types', { cwd: getAbsolutePath('.', import.meta), }); }, }); export const buildH11 = new Task({ name: 'build', children: [types], exec: async ({ command }) => { await command('npm run build', { cwd: getAbsolutePath('.', import.meta) }); }, }); export const groupH11 = new Group({ name: 'h11', tasks: [buildH11], }); startIfMain(groupH11, import.meta);