bun-plugin-stx 0.2.315 → 0.2.316

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.
@@ -242,9 +242,11 @@ class Router {
242
242
  return bSegments - aSegments;
243
243
  return a.pattern.localeCompare(b.pattern);
244
244
  });
245
- const stxDir = path4.resolve(baseDir, config.stateDir || process.env.STX_DIR?.trim() || ".stx");
246
- generateRouteTypes(this.routes, stxDir);
247
- generateRouteManifest(this.routes, stxDir, this.pagesDir);
245
+ if (config.emit !== false) {
246
+ const stxDir = path4.resolve(baseDir, config.stateDir || process.env.STX_DIR?.trim() || ".stx");
247
+ generateRouteTypes(this.routes, stxDir);
248
+ generateRouteManifest(this.routes, stxDir, this.pagesDir);
249
+ }
248
250
  }
249
251
  match(pathname) {
250
252
  const normalizedPath = pathname === "" ? "/" : pathname;
package/dist/serve.js CHANGED
@@ -9724,7 +9724,7 @@ function __stxOverlay(errs){
9724
9724
  pageMiddlewarePatterns.length = 0;
9725
9725
  await Promise.all(files.map((f) => detectPageMiddleware(f)));
9726
9726
  try {
9727
- const { Router } = await import("./chunk-3c6zbghg.js");
9727
+ const { Router } = await import("./chunk-71hprtbd.js");
9728
9728
  const pagesDirs = patterns.map((p) => p.replace(/\/$/, "")).filter(Boolean);
9729
9729
  const router = new Router(process19.cwd(), { pagesDirs, stateDir: stateDirName() });
9730
9730
  if (!options.quiet)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-stx",
3
3
  "type": "module",
4
- "version": "0.2.315",
4
+ "version": "0.2.316",
5
5
  "description": "A Bun plugin that allows for using Laravel Blade-like syntax.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",