@react-router/fs-routes 7.0.2 → 7.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # `@react-router/fs-routes`
2
2
 
3
+ ## 7.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Throw error in `flatRoutes` if routes directory is missing ([#12407](https://github.com/remix-run/react-router/pull/12407))
8
+ - Updated dependencies:
9
+ - `@react-router/dev@7.1.0`
10
+
3
11
  ## 7.0.2
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/fs-routes v7.0.2
2
+ * @react-router/fs-routes v7.1.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -141,7 +141,7 @@ function flatRoutes(appDirectory, ignoredFilePatterns = [], prefix = "routes") {
141
141
  `Could not find a root route module in the app directory: ${appDirectory}`
142
142
  );
143
143
  }
144
- if (!import_node_fs.default.existsSync(rootRoute)) {
144
+ if (!import_node_fs.default.existsSync(routesDir)) {
145
145
  throw new Error(
146
146
  `Could not find the routes directory: ${routesDir}. Did you forget to create it?`
147
147
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/fs-routes",
3
- "version": "7.0.2",
3
+ "version": "7.1.0",
4
4
  "description": "File system routing conventions for React Router, for use within routes.ts",
5
5
  "bugs": {
6
6
  "url": "https://github.com/remix-run/react-router/issues"
@@ -40,11 +40,11 @@
40
40
  "tsup": "^8.3.0",
41
41
  "typescript": "^5.1.6",
42
42
  "wireit": "0.14.9",
43
- "@react-router/dev": "7.0.2"
43
+ "@react-router/dev": "7.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "typescript": "^5.1.0",
47
- "@react-router/dev": "^7.0.2"
47
+ "@react-router/dev": "^7.1.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "typescript": {