@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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  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
- await esbuild.build(esbuildOptions(opt));
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenity-is/tsbuild",
3
- "version": "6.9.7",
3
+ "version": "6.9.8",
4
4
  "author": "Serenity (https://serenity.is)",
5
5
  "bugs": "https://github.com/serenity-is/serenity/issues",
6
6
  "description": "Serenity ESBuild functions",