Skip to content

Commit 8a49d6c

Browse files
committed
actually build the scripts if we aren't watching
1 parent 4b2fc0b commit 8a49d6c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/core/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ builds.forEach(async (build) => {
3939
console.log(`Watching ${build.entryPoints} (${build.format})…`)
4040
await context.watch()
4141
} else {
42-
console.log(`Built ${build.entryPoints} (${build.format})…`)
42+
await context.rebuild()
4343
context.dispose()
44+
console.log(`Built ${build.entryPoints} (${build.format})…`)
4445
}
4546
})

packages/react/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ builds.forEach(async (build) => {
3939
console.log(`Watching ${build.entryPoints} (${build.format})…`)
4040
await context.watch()
4141
} else {
42-
console.log(`Built ${build.entryPoints} (${build.format})…`)
42+
await context.rebuild()
4343
context.dispose()
44+
console.log(`Built ${build.entryPoints} (${build.format})…`)
4445
}
4546
})

packages/vue3/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ builds.forEach(async (build) => {
3939
console.log(`Watching ${build.entryPoints} (${build.format})…`)
4040
await context.watch()
4141
} else {
42-
console.log(`Built ${build.entryPoints} (${build.format})…`)
42+
await context.rebuild()
4343
context.dispose()
44+
console.log(`Built ${build.entryPoints} (${build.format})…`)
4445
}
4546
})

0 commit comments

Comments
 (0)