@serenity-is/tsbuild 6.9.7 → 6.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -133,9 +133,17 @@ export const build = async (opt) => {
|
|
|
133
133
|
setInterval(() => {
|
|
134
134
|
process.stdout.write("");
|
|
135
135
|
}, 5000);
|
|
136
|
-
}
|
|
137
136
|
|
|
138
|
-
|
|
137
|
+
delete opt.watch;
|
|
138
|
+
const context = await esbuild.context(opt);
|
|
139
|
+
await context.rebuild()
|
|
140
|
+
await context.watch();
|
|
141
|
+
context.dispose();
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
delete opt.watch;
|
|
145
|
+
await esbuild.build(opt);
|
|
146
|
+
}
|
|
139
147
|
};
|
|
140
148
|
|
|
141
149
|
function scanDir(dir, org) {
|