Skip to content

Commit

Permalink
Enforce install of React version with fixed exports field
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 17, 2024
1 parent aa13b7d commit 4a8645e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/create-next-app/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ export const installTemplate = async ({
* Default dependencies.
*/
dependencies: {
react: "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0",
react: "19.0.0-rc-dfd30974ab-20240613",
"react-dom": "19.0.0-rc-dfd30974ab-20240613",
next: version,
},
devDependencies: {},
Expand Down
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
"@opentelemetry/api": "^1.1.0",
"@playwright/test": "^1.41.2",
"babel-plugin-react-compiler": "*",
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0",
"react": "19.0.0-rc-dfd30974ab-20240613",
"react-dom": "19.0.0-rc-dfd30974ab-20240613",
"sass": "^1.3.0"
},
"peerDependenciesMeta": {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/next-test/first-time-setup-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"next": "canary",
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0"
"react": "19.0.0-rc-dfd30974ab-20240613",
"react-dom": "19.0.0-rc-dfd30974ab-20240613"
}
}
4 changes: 2 additions & 2 deletions test/e2e/next-test/first-time-setup-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"next": "canary",
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0"
"react": "19.0.0-rc-dfd30974ab-20240613",
"react-dom": "19.0.0-rc-dfd30974ab-20240613"
},
"devDependencies": {
"@types/react": "^18",
Expand Down
2 changes: 1 addition & 1 deletion test/lib/next-modes/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class NextInstance {
)

const reactVersion =
process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc.0'
process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc-dfd30974ab-20240613'
const finalDependencies = {
react: reactVersion,
'react-dom': reactVersion,
Expand Down

0 comments on commit 4a8645e

Please sign in to comment.