mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(root): replace turbo watch with build-first dev scripts (#1114)
This commit is contained in:
@@ -313,12 +313,9 @@ function debounce(fn: () => void, ms: number): () => void {
|
||||
}
|
||||
|
||||
async function main(): Promise<void> {
|
||||
console.log('Building icons...\n');
|
||||
cleanDist();
|
||||
await build();
|
||||
console.log('\nBuild complete!');
|
||||
|
||||
if (isWatch) {
|
||||
console.log('Watching icons for changes...\n');
|
||||
|
||||
const rebuild = debounce(() => {
|
||||
console.log('\nRebuilding icons...\n');
|
||||
build()
|
||||
@@ -332,8 +329,11 @@ async function main(): Promise<void> {
|
||||
rebuild();
|
||||
}
|
||||
});
|
||||
|
||||
console.log('\nWatching for changes...');
|
||||
} else {
|
||||
console.log('Building icons...\n');
|
||||
cleanDist();
|
||||
await build();
|
||||
console.log('\nBuild complete!');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user