Skip to content

Commit 20eafa6

Browse files
fix: remove legacy-peer-deps fallback from nextjs templates (#1371)
* fix: remove legacy-peer-deps fallback from nextjs templates - Set retryWithLegacyPeerDeps to false in template-manager config so npm install/ci never silently retries with --legacy-peer-deps - Upgrade eslint-config-next from ^13.2.1 to ^15.5.12 and eslint-plugin-react-hooks from ^4.6.0 to ^5.0.0 in all three nextjs templates (app, pages, express) to resolve peer dependency conflicts with React 19 - Add overrides.eslint-plugin-react-hooks to deduplicate the plugin and prevent ESLint duplicate-plugin errors - Regenerate package-lock.json for all three templates without flags - Improve error messages in regen.js (include command and stderr) and npm-ci.js (rethrow original error) for easier debugging Made-with: Cursor * changeset Made-with: Cursor * fix: regenerate package-lock.json for nextjs templates Regenerated stale lock files for gasket-template-nextjs-app, gasket-template-nextjs-express, and gasket-template-nextjs-pages so that npm ci can succeed in CI. Made-with: Cursor
1 parent 6346ff7 commit 20eafa6

File tree

10 files changed

+601
-913
lines changed

10 files changed

+601
-913
lines changed

.changeset/lemon-bananas-dream.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@gasket/template-nextjs-express": patch
3+
"@gasket/template-nextjs-pages": patch
4+
"@gasket/template-nextjs-app": patch
5+
---
6+
7+
update template deps so legacy dep flag is no longer needed

packages/gasket-template-nextjs-app/template/package-lock.json

Lines changed: 191 additions & 301 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/gasket-template-nextjs-app/template/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,17 @@
6161
"concurrently": "^9.1.2",
6262
"eslint": "^8.57.1",
6363
"eslint-config-godaddy-react": "^9.1.0",
64-
"eslint-config-next": "^13.2.1",
65-
"eslint-plugin-react-hooks": "^4.6.0",
64+
"eslint-config-next": "^15.5.12",
65+
"eslint-plugin-react-hooks": "^5.0.0",
6666
"jsdom": "^20.0.3",
6767
"search-insights": "^2.17.3",
6868
"typescript": "^5.8.2",
6969
"vitest": "^3.2.0",
7070
"webpack": "^5.98.0"
7171
},
72+
"overrides": {
73+
"eslint-plugin-react-hooks": "^5.0.0"
74+
},
7275
"type": "module",
7376
"eslintIgnore": [
7477
"dist",

packages/gasket-template-nextjs-express/template/package-lock.json

Lines changed: 191 additions & 301 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/gasket-template-nextjs-express/template/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,17 @@
6262
"concurrently": "^9.1.2",
6363
"eslint": "^8.57.1",
6464
"eslint-config-godaddy-react": "^9.1.0",
65-
"eslint-config-next": "^13.2.1",
66-
"eslint-plugin-react-hooks": "^4.6.0",
65+
"eslint-config-next": "^15.5.12",
66+
"eslint-plugin-react-hooks": "^5.0.0",
6767
"jsdom": "^20.0.3",
6868
"search-insights": "^2.17.3",
6969
"typescript": "^5.8.2",
7070
"vitest": "^3.2.0",
7171
"webpack": "^5.98.0"
7272
},
73+
"overrides": {
74+
"eslint-plugin-react-hooks": "^5.0.0"
75+
},
7376
"type": "module",
7477
"eslintIgnore": [
7578
"dist",

0 commit comments

Comments
 (0)