@absolutejs/absolute 0.19.0-beta.139 → 0.19.0-beta.140

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/index.js CHANGED
@@ -172377,31 +172377,32 @@ var detectFramework = (filePath, resolved) => {
172377
172377
  push(cfg.htmxDir, "styles");
172378
172378
  push(cfg.assetsDir);
172379
172379
  push(cfg.stylesDir);
172380
- const frameworkDirs = [
172380
+ const allDirs = [
172381
172381
  cfg.reactDir,
172382
172382
  cfg.svelteDir,
172383
172383
  cfg.vueDir,
172384
172384
  cfg.angularDir,
172385
172385
  cfg.htmlDir,
172386
- cfg.htmxDir,
172387
- cfg.assetsDir,
172388
- cfg.stylesDir
172386
+ cfg.htmxDir
172389
172387
  ].filter((d) => Boolean(d)).map(normalizePath);
172390
- const root = commonAncestor(frameworkDirs);
172391
- if (root) {
172392
- try {
172393
- const { readdirSync } = __require("fs");
172394
- const entries = readdirSync(root, { withFileTypes: true });
172395
- const knownDirs = new Set(frameworkDirs.map((d) => d.split("/").pop()));
172396
- knownDirs.add("build");
172397
- knownDirs.add("node_modules");
172398
- knownDirs.add(".absolutejs");
172399
- for (const entry of entries) {
172400
- if (entry.isDirectory() && !knownDirs.has(entry.name)) {
172401
- push(`${root}/${entry.name}`);
172388
+ if (allDirs.length > 0) {
172389
+ const root = commonAncestor(allDirs);
172390
+ if (root) {
172391
+ const knownNames = new Set([...allDirs, cfg.assetsDir, cfg.stylesDir].filter(Boolean).map((d) => normalizePath(d).split("/").pop()));
172392
+ knownNames.add("build");
172393
+ knownNames.add("node_modules");
172394
+ knownNames.add(".absolutejs");
172395
+ try {
172396
+ const { readdirSync } = __require("fs");
172397
+ for (const entry of readdirSync(root, {
172398
+ withFileTypes: true
172399
+ })) {
172400
+ if (entry.isDirectory() && !knownNames.has(entry.name)) {
172401
+ push(`${root}/${entry.name}`);
172402
+ }
172402
172403
  }
172403
- }
172404
- } catch {}
172404
+ } catch {}
172405
+ }
172405
172406
  }
172406
172407
  return paths;
172407
172408
  }, shouldIgnorePath = (path, resolved) => {
@@ -205729,5 +205730,5 @@ export {
205729
205730
  ANGULAR_INIT_TIMEOUT_MS
205730
205731
  };
205731
205732
 
205732
- //# debugId=D34AAE4210EFC86A64756E2164756E21
205733
+ //# debugId=473C07F3D0BE904364756E2164756E21
205733
205734
  //# sourceMappingURL=index.js.map