@farm.js/cli 0.1.0-beta.29 → 0.1.0-beta.31
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2174,7 +2174,7 @@ function discoverMatchingPages(config, pathname) {
|
|
|
2174
2174
|
for (const [priority, source] of getFarmSourceRoots(config).entries()) {
|
|
2175
2175
|
const appDirectory = path.join(source.root, source.srcDir, "app");
|
|
2176
2176
|
if (existsSync(appDirectory)) for (const filePath of walkFiles(appDirectory)) {
|
|
2177
|
-
if (!/^page\.(?:tsx?|jsx?|vue|mdx?)$/.test(path.basename(filePath))) continue;
|
|
2177
|
+
if (!/^page\.(?:tsx?|jsx?|vue|svelte|mdx?)$/.test(path.basename(filePath))) continue;
|
|
2178
2178
|
const relativeDirectory = path.relative(appDirectory, path.dirname(filePath));
|
|
2179
2179
|
if (relativeDirectory.split(path.sep).includes("api") || isRouteSlotDirectory(relativeDirectory)) continue;
|
|
2180
2180
|
const pattern = directoryToRoutePattern(relativeDirectory);
|