@flamingo-stack/openframe-frontend-core 0.0.833 → 0.0.834
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.
|
@@ -127,13 +127,15 @@ async function stylesheetBuilder({ root, input, config }) {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
/** Every file under `dir` whose
|
|
130
|
+
/** Every file under `dir` whose path ends with `suffix` (a name, `.html`, or a path such as `.next-styles/build.json`). */
|
|
131
131
|
function filesUnder(dir, suffix, out = []) {
|
|
132
132
|
if (!fs.existsSync(dir)) return out;
|
|
133
133
|
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
134
134
|
const path = join(dir, entry.name);
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
// A standalone build copies its dependencies under node_modules: no page or marker of the app is there.
|
|
136
|
+
if (entry.isDirectory()) {
|
|
137
|
+
if (entry.name !== 'node_modules') filesUnder(path, suffix, out);
|
|
138
|
+
} else if (path.endsWith(suffix)) out.push(path);
|
|
137
139
|
}
|
|
138
140
|
return out;
|
|
139
141
|
}
|