@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/build.js CHANGED
@@ -172298,31 +172298,32 @@ var detectFramework = (filePath, resolved) => {
172298
172298
  push(cfg.htmxDir, "styles");
172299
172299
  push(cfg.assetsDir);
172300
172300
  push(cfg.stylesDir);
172301
- const frameworkDirs = [
172301
+ const allDirs = [
172302
172302
  cfg.reactDir,
172303
172303
  cfg.svelteDir,
172304
172304
  cfg.vueDir,
172305
172305
  cfg.angularDir,
172306
172306
  cfg.htmlDir,
172307
- cfg.htmxDir,
172308
- cfg.assetsDir,
172309
- cfg.stylesDir
172307
+ cfg.htmxDir
172310
172308
  ].filter((d) => Boolean(d)).map(normalizePath);
172311
- const root = commonAncestor(frameworkDirs);
172312
- if (root) {
172313
- try {
172314
- const { readdirSync } = __require("fs");
172315
- const entries = readdirSync(root, { withFileTypes: true });
172316
- const knownDirs = new Set(frameworkDirs.map((d) => d.split("/").pop()));
172317
- knownDirs.add("build");
172318
- knownDirs.add("node_modules");
172319
- knownDirs.add(".absolutejs");
172320
- for (const entry of entries) {
172321
- if (entry.isDirectory() && !knownDirs.has(entry.name)) {
172322
- push(`${root}/${entry.name}`);
172309
+ if (allDirs.length > 0) {
172310
+ const root = commonAncestor(allDirs);
172311
+ if (root) {
172312
+ const knownNames = new Set([...allDirs, cfg.assetsDir, cfg.stylesDir].filter(Boolean).map((d) => normalizePath(d).split("/").pop()));
172313
+ knownNames.add("build");
172314
+ knownNames.add("node_modules");
172315
+ knownNames.add(".absolutejs");
172316
+ try {
172317
+ const { readdirSync } = __require("fs");
172318
+ for (const entry of readdirSync(root, {
172319
+ withFileTypes: true
172320
+ })) {
172321
+ if (entry.isDirectory() && !knownNames.has(entry.name)) {
172322
+ push(`${root}/${entry.name}`);
172323
+ }
172323
172324
  }
172324
- }
172325
- } catch {}
172325
+ } catch {}
172326
+ }
172326
172327
  }
172327
172328
  return paths;
172328
172329
  }, shouldIgnorePath = (path, resolved) => {
@@ -205067,5 +205068,5 @@ export {
205067
205068
  build
205068
205069
  };
205069
205070
 
205070
- //# debugId=4912C25A26BF141964756E2164756E21
205071
+ //# debugId=A8D8386B57D6B16564756E2164756E21
205071
205072
  //# sourceMappingURL=build.js.map