@cmmn/tools 1.6.15 → 1.6.17
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/bundle/rollup.config.js +9 -1
- package/package.json +2 -2
package/bundle/rollup.config.js
CHANGED
|
@@ -204,6 +204,7 @@ export class ConfigCreator {
|
|
|
204
204
|
}
|
|
205
205
|
if (this.options.html || this.options.input.endsWith('.html')) {
|
|
206
206
|
result.push(this.html);
|
|
207
|
+
result.push(watcher([path.join(this.root, this.options.html)]))
|
|
207
208
|
}
|
|
208
209
|
if (this.options.stats) {
|
|
209
210
|
result.push(this.visualizer);
|
|
@@ -272,8 +273,15 @@ export class ConfigCreator {
|
|
|
272
273
|
buildDelay: 300,
|
|
273
274
|
clearScreen: false,
|
|
274
275
|
exclude: this.getExternals().concat(path.join(this.root, this.outDir)),
|
|
275
|
-
// include: path.join(this.root, 'dist/esm')
|
|
276
276
|
}
|
|
277
277
|
}]
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
+
|
|
281
|
+
const watcher = (files) => ({
|
|
282
|
+
buildStart() {
|
|
283
|
+
for (const file of files) {
|
|
284
|
+
this.addWatchFile(file);
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmmn/tools",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.17",
|
|
4
4
|
"description": "Compilation, bundling, code generator, testing.",
|
|
5
5
|
"main": "dist/rollup.config.js",
|
|
6
6
|
"type": "module",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
},
|
|
82
82
|
"author": "",
|
|
83
83
|
"license": "ISC",
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "b4664b7dddc9ca6b490b62a922f560d447bb532d"
|
|
85
85
|
}
|