Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit e1e00b5

Browse files
committed
Reset _export.ts forcely
1 parent 39bad47 commit e1e00b5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

server/dev.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,11 @@ export default async function dev(serverEntry?: string) {
110110
});
111111
const exportTs = deps.find((dep) => dep.specifier.startsWith("./") && dep.specifier.endsWith("/_export.ts"));
112112

113-
// ensure the `_export.ts` file exists
113+
// reset the `_export.ts` module
114114
if (exportTs) {
115115
const fp = path.join(appDir, exportTs.specifier);
116-
if (!(await existsFile(fp))) {
117-
await ensureDir(path.dirname(fp));
118-
await Deno.writeTextFile(fp, "export default {}");
119-
}
116+
await ensureDir(path.dirname(fp));
117+
await Deno.writeTextFile(fp, "export default {}");
120118
}
121119

122120
// watch server entry and its deps to restart the dev server

0 commit comments

Comments
 (0)