@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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/build.js +20 -19
- package/dist/build.js.map +3 -3
- package/dist/index.js +20 -19
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
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
|
|
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
|
-
|
|
172312
|
-
|
|
172313
|
-
|
|
172314
|
-
const
|
|
172315
|
-
|
|
172316
|
-
|
|
172317
|
-
|
|
172318
|
-
|
|
172319
|
-
|
|
172320
|
-
|
|
172321
|
-
|
|
172322
|
-
|
|
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
|
-
}
|
|
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=
|
|
205071
|
+
//# debugId=A8D8386B57D6B16564756E2164756E21
|
|
205071
205072
|
//# sourceMappingURL=build.js.map
|