silgi 0.21.3 → 0.21.5
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/_chunks/index.mjs +1 -1
- package/dist/cli/dev.mjs +3 -1
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/dev.mjs
CHANGED
|
@@ -86,7 +86,7 @@ const dev = defineCommand({
|
|
|
86
86
|
join(silgi.options.silgi.serverDir, "config"),
|
|
87
87
|
join(silgi.options.rootDir, "silgi.config.ts")
|
|
88
88
|
);
|
|
89
|
-
const watchReloadEvents = /* @__PURE__ */ new Set(["add", "addDir", "unlink", "unlinkDir"]);
|
|
89
|
+
const watchReloadEvents = /* @__PURE__ */ new Set(["add", "addDir", "unlink", "unlinkDir", "change"]);
|
|
90
90
|
let watcher;
|
|
91
91
|
if (silgi.options.devServer.watch.length > 0) {
|
|
92
92
|
watcher = watch(silgi.options.devServer.watch, silgi.options.watchOptions);
|
|
@@ -104,6 +104,8 @@ const dev = defineCommand({
|
|
|
104
104
|
const endTime = performance.now();
|
|
105
105
|
const elapsedTime = Math.round(endTime - startTime);
|
|
106
106
|
silgi.logger.success(`${basename(path)} - ${elapsedTime}ms`);
|
|
107
|
+
}).on("error", (error) => {
|
|
108
|
+
consola.withTag("silgi").error(error);
|
|
107
109
|
});
|
|
108
110
|
}
|
|
109
111
|
process.on("SIGINT", async () => {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED