@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.js
CHANGED
|
@@ -2175,7 +2175,7 @@ function discoverMatchingPages(config, pathname) {
|
|
|
2175
2175
|
for (const [priority, source] of (0, _farm_js_core.getFarmSourceRoots)(config).entries()) {
|
|
2176
2176
|
const appDirectory = node_path.default.join(source.root, source.srcDir, "app");
|
|
2177
2177
|
if ((0, node_fs.existsSync)(appDirectory)) for (const filePath of walkFiles(appDirectory)) {
|
|
2178
|
-
if (!/^page\.(?:tsx?|jsx?|vue|mdx?)$/.test(node_path.default.basename(filePath))) continue;
|
|
2178
|
+
if (!/^page\.(?:tsx?|jsx?|vue|svelte|mdx?)$/.test(node_path.default.basename(filePath))) continue;
|
|
2179
2179
|
const relativeDirectory = node_path.default.relative(appDirectory, node_path.default.dirname(filePath));
|
|
2180
2180
|
if (relativeDirectory.split(node_path.default.sep).includes("api") || isRouteSlotDirectory(relativeDirectory)) continue;
|
|
2181
2181
|
const pattern = directoryToRoutePattern(relativeDirectory);
|