From 78d4be8e1e1906103f20bff8dc4e161c734df3be Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Wed, 8 May 2024 23:49:54 +0900 Subject: [PATCH] build(types): generate dist/ with pnpm dev --- packages/types/scripts/watch.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/types/scripts/watch.ts b/packages/types/scripts/watch.ts index c2c165ce6..017cb6d53 100644 --- a/packages/types/scripts/watch.ts +++ b/packages/types/scripts/watch.ts @@ -1,8 +1,14 @@ import { watch } from 'chokidar' -import { main } from './postbuild' +import { main as postbuild } from './postbuild' +import { main as build } from './build' import { join } from 'path' +const main = () => { + build() + return postbuild() +} + main().then(() => { watch(join(__dirname, '..', 'src')).on('change', () => { console.log('Rebuild types')