Skip to content

Commit

Permalink
build(types): generate dist/ with pnpm dev (#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed May 21, 2024
1 parent 8b07cdf commit ca29987
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/types/scripts/watch.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit ca29987

Please sign in to comment.