@escape-game-over/atlas 0.1.47 → 0.1.48
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/package.json +1 -1
- package/src/astro/site-routes.ts +11 -0
package/package.json
CHANGED
package/src/astro/site-routes.ts
CHANGED
|
@@ -212,6 +212,7 @@ export function siteRoutes(options: SiteRoutesOptions): AstroIntegration {
|
|
|
212
212
|
"astro:config:setup": ({
|
|
213
213
|
config: current,
|
|
214
214
|
updateConfig,
|
|
215
|
+
addWatchFile,
|
|
215
216
|
logger,
|
|
216
217
|
}) => {
|
|
217
218
|
/**
|
|
@@ -290,6 +291,16 @@ export function siteRoutes(options: SiteRoutesOptions): AstroIntegration {
|
|
|
290
291
|
`updated config: ${JSON.stringify(config, null, 2)}`
|
|
291
292
|
);
|
|
292
293
|
reportOrphans();
|
|
294
|
+
|
|
295
|
+
// `atlas use` swaps the project by relinking `config/project`,
|
|
296
|
+
// and nothing Vite watches changes when it does: the files
|
|
297
|
+
// behind the link are new, but every module already loaded
|
|
298
|
+
// through it stays cached, so a running `astro dev` keeps
|
|
299
|
+
// serving the old project — its messages, its routes, a map
|
|
300
|
+
// from one country with the pins of another. Watching the link
|
|
301
|
+
// itself turns the relink into a restart. A project without
|
|
302
|
+
// overlays has no such link, and the watch is simply idle.
|
|
303
|
+
addWatchFile(new URL("config/project", current.root));
|
|
293
304
|
},
|
|
294
305
|
|
|
295
306
|
/**
|