Skip to content

Commit

Permalink
[snap] Add react-compiler-runtime as a dependency
Browse files Browse the repository at this point in the history
We need `react-compiler-runtime` to use the same version of React as
snap

ghstack-source-id: d4f8556db8801a5787196ac08240a9457592b645
Pull Request resolved: #31053
  • Loading branch information
poteto committed Sep 24, 2024
1 parent 6becca4 commit 93bac4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/packages/snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"src"
],
"scripts": {
"prebuild": "yarn --silent workspace react-compiler-runtime build --silent",
"build": "rimraf dist && tsc --build",
"test": "echo 'no tests'",
"prettier": "prettier --write 'src/**/*.ts'"
Expand All @@ -35,7 +36,8 @@
"react": "19.0.0-beta-b498834eab-20240506",
"react-dom": "19.0.0-beta-b498834eab-20240506",
"readline": "^1.3.0",
"yargs": "^17.7.1"
"yargs": "^17.7.1",
"react-compiler-runtime": "file:../react-compiler-runtime"
},
"devDependencies": {
"@babel/core": "^7.19.1",
Expand Down
3 changes: 3 additions & 0 deletions compiler/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8630,6 +8630,9 @@ re-resizable@^6.9.16:
resolved "https://registry.yarnpkg.com/re-resizable/-/re-resizable-6.9.16.tgz#d040a3ba9ccb25a3cc85b7622d4eafdee48cf2c2"
integrity sha512-D9+ofwgPQRC6PL6cwavCZO9MUR8TKKxV1nHjbutSdNaFHK9v5k8m6DcESMXrw1+mRJn7fBHJRhZpa7EQ1ZWEEA==

"react-compiler-runtime@file:packages/react-compiler-runtime":
version "0.0.1"

[email protected]:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
Expand Down

0 comments on commit 93bac4b

Please sign in to comment.