Repository: tatethurston/nextjs-routes
Pull request #211 (2024-12-31 22:08:25)

2.2.5

codecov[bot]: ## [Codecov](https://app.codecov.io/gh/tatethurston/nextjs-routes/pull/211?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 98.10%. Comparing base [(`e9a1073`)](https://app.codecov.io/gh/tatethurston/nextjs-routes/commit/e9a1073502e590753775471b821cf16761062a8f?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston) to head [(`df3a114`)](https://app.codecov.io/gh/tatethurston/nextjs-routes/commit/df3a114d9dc873507591f66093475841d3c2e000?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston).

<details><summary>Additional details and impacted files</summary>


```diff
@@           Coverage Diff           @@
##             main     #211   +/-   ##
=======================================
  Coverage   98.10%   98.10%           
=======================================
  Files           3        3           
  Lines         158      158           
  Branches       52       52           
=======================================
  Hits          155      155           
  Misses          3        3           
```

</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/tatethurston/nextjs-routes/pull/211?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston).


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8630437..75d8e66 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Changelog
 
+## 2.2.5
+
+- Fix CLI invocation on Windows.
+
 ## 2.2.4
 
 - CLI invocation now reads next.config.js or next.config.mjs.
diff --git a/examples/app/@types/nextjs-routes.d.ts b/examples/app/@types/nextjs-routes.d.ts
index e1b4218..da339c3 100644
--- a/examples/app/@types/nextjs-routes.d.ts
+++ b/examples/app/@types/nextjs-routes.d.ts
@@ -1,6 +1,6 @@
 // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
diff --git a/examples/cjs/types/nextjs-routes.d.ts b/examples/cjs/types/nextjs-routes.d.ts
index 3167c2b..ee937ee 100644
--- a/examples/cjs/types/nextjs-routes.d.ts
+++ b/examples/cjs/types/nextjs-routes.d.ts
@@ -1,6 +1,6 @@
 // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
diff --git a/examples/intl/@types/nextjs-routes.d.ts b/examples/intl/@types/nextjs-routes.d.ts
index 71c2a0f..abb0324 100644
--- a/examples/intl/@types/nextjs-routes.d.ts
+++ b/examples/intl/@types/nextjs-routes.d.ts
@@ -1,6 +1,6 @@
 // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
diff --git a/examples/typescript/types/nextjs-routes.d.ts b/examples/typescript/types/nextjs-routes.d.ts
index 66c029e..db5e258 100644
--- a/examples/typescript/types/nextjs-routes.d.ts
+++ b/examples/typescript/types/nextjs-routes.d.ts
@@ -1,6 +1,6 @@
 // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
diff --git a/packages/nextjs-routes/package.json b/packages/nextjs-routes/package.json
index 615e2ed..319aa55 100644
--- a/packages/nextjs-routes/package.json
+++ b/packages/nextjs-routes/package.json
@@ -1,6 +1,6 @@
 {
   "name": "nextjs-routes",
-  "version": "2.2.4",
+  "version": "2.2.5",
   "description": "Type safe routing for Next.js",
   "license": "MIT",
   "author": "Tate <tatethurston@gmail.com>",
diff --git a/packages/nextjs-routes/src/core.ts b/packages/nextjs-routes/src/core.ts
index 4d0833f..661d70c 100644
--- a/packages/nextjs-routes/src/core.ts
+++ b/packages/nextjs-routes/src/core.ts
@@ -7,7 +7,7 @@ import { findFiles, getAppDirectory, getPagesDirectory } from "./utils.js";
 // by node 17+
 // import pkg from "../package.json" assert { type: "json" };
 const pkg = {
-  version: "2.2.4",
+  version: "2.2.5",
 };
 
 type QueryType = "dynamic" | "catch-all" | "optional-catch-all";


Test patch:
diff --git a/packages/e2e/@types/nextjs-routes.d.ts b/packages/e2e/@types/nextjs-routes.d.ts
index decfc9a..ff4a8bc 100644
--- a/packages/e2e/@types/nextjs-routes.d.ts
+++ b/packages/e2e/@types/nextjs-routes.d.ts
@@ -1,6 +1,6 @@
 // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
diff --git a/packages/nextjs-routes/src/__snapshots__/core.test.ts.snap b/packages/nextjs-routes/src/__snapshots__/core.test.ts.snap
index 18aaedf..2ee0cda 100644
--- a/packages/nextjs-routes/src/__snapshots__/core.test.ts.snap
+++ b/packages/nextjs-routes/src/__snapshots__/core.test.ts.snap
@@ -6,7 +6,7 @@ exports[`route generation app directory generates routes 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -261,7 +261,7 @@ exports[`route generation app directory handles intercept routes 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -510,7 +510,7 @@ exports[`route generation app directory handles parallel routes 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -760,7 +760,7 @@ exports[`route generation app directory handles windows paths 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -1009,7 +1009,7 @@ exports[`route generation configuration i18n 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -1209,7 +1209,7 @@ exports[`route generation configuration outDir 1`] = `
     "src/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -1385,7 +1385,7 @@ exports[`route generation configuration pageExtensions configured 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -1563,7 +1563,7 @@ exports[`route generation configuration pageExtensions default 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -1739,7 +1739,7 @@ exports[`route generation dedupes 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -1915,7 +1915,7 @@ exports[`route generation no routes 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -2091,7 +2091,7 @@ exports[`route generation pages and app directory generates routes 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -2342,7 +2342,7 @@ exports[`route generation transforms windows paths 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore
@@ -2518,7 +2518,7 @@ exports[`route generation typescript 1`] = `
     "@types/nextjs-routes.d.ts",
     "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
 // This file will be automatically regenerated when your Next.js server is running.
-// nextjs-routes version: 2.2.4
+// nextjs-routes version: 2.2.5
 /* eslint-disable */
 
 // prettier-ignore