@absolutejs/absolute 0.19.0-beta.136 → 0.19.0-beta.137

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/build.js CHANGED
@@ -172268,13 +172268,6 @@ var detectFramework = (filePath, resolved) => {
172268
172268
  }
172269
172269
  return "unknown";
172270
172270
  }, getWatchPaths = (config, resolved) => {
172271
- const paths = [];
172272
- const push = (base, sub) => {
172273
- if (!base)
172274
- return;
172275
- const normalizedBase = normalizePath(base);
172276
- paths.push(sub ? `${normalizedBase}/${sub}` : normalizedBase);
172277
- };
172278
172271
  const cfg = resolved ?? {
172279
172272
  angularDir: config.angularDirectory,
172280
172273
  assetsDir: config.assetsDirectory,
@@ -172285,18 +172278,20 @@ var detectFramework = (filePath, resolved) => {
172285
172278
  svelteDir: config.svelteDirectory,
172286
172279
  vueDir: config.vueDirectory
172287
172280
  };
172288
- push(cfg.reactDir);
172289
- push(cfg.svelteDir);
172290
- push(cfg.vueDir);
172291
- push(cfg.angularDir);
172292
- push(cfg.htmlDir, "pages");
172293
- push(cfg.htmlDir, "scripts");
172294
- push(cfg.htmlDir, "styles");
172295
- push(cfg.htmxDir, "pages");
172296
- push(cfg.htmxDir, "styles");
172297
- push(cfg.assetsDir);
172298
- push(cfg.stylesDir);
172299
- return paths;
172281
+ const allDirs = [
172282
+ cfg.reactDir,
172283
+ cfg.svelteDir,
172284
+ cfg.vueDir,
172285
+ cfg.angularDir,
172286
+ cfg.htmlDir,
172287
+ cfg.htmxDir,
172288
+ cfg.assetsDir,
172289
+ cfg.stylesDir
172290
+ ].filter((d) => Boolean(d)).map(normalizePath);
172291
+ const root = commonAncestor(allDirs);
172292
+ if (root)
172293
+ return [root];
172294
+ return allDirs;
172300
172295
  }, shouldIgnorePath = (path, resolved) => {
172301
172296
  const normalizedPath = path.replace(/\\/g, "/");
172302
172297
  if (resolved?.stylesDir && normalizedPath.startsWith(resolved.stylesDir)) {
@@ -172304,7 +172299,9 @@ var detectFramework = (filePath, resolved) => {
172304
172299
  }
172305
172300
  return normalizedPath.includes("/build/") || normalizedPath.includes("/compiled/") || normalizedPath.includes("/indexes/") || normalizedPath.includes("/server/") || normalizedPath.includes("/client/") || normalizedPath.includes("/node_modules/") || normalizedPath.includes("/.git/") || normalizedPath.endsWith(".log") || normalizedPath.endsWith(".tmp") || normalizedPath.startsWith(".") || normalizedPath === "compiled" || normalizedPath.endsWith("/compiled") || normalizedPath.endsWith("/compiled/");
172306
172301
  };
172307
- var init_pathUtils = () => {};
172302
+ var init_pathUtils = __esm(() => {
172303
+ init_commonAncestor();
172304
+ });
172308
172305
 
172309
172306
  // src/dev/fileWatcher.ts
172310
172307
  import { watch } from "fs";
@@ -205037,5 +205034,5 @@ export {
205037
205034
  build
205038
205035
  };
205039
205036
 
205040
- //# debugId=1438AD2CFD737EC464756E2164756E21
205037
+ //# debugId=DF6C903EF35751CA64756E2164756E21
205041
205038
  //# sourceMappingURL=build.js.map