diff --git a/compiler/packages/snap/package.json b/compiler/packages/snap/package.json index 5cc4eca5003d4..f103bc69c2711 100644 --- a/compiler/packages/snap/package.json +++ b/compiler/packages/snap/package.json @@ -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'" @@ -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", diff --git a/compiler/yarn.lock b/compiler/yarn.lock index 002e43a408bfb..c33cf659cf09c 100644 --- a/compiler/yarn.lock +++ b/compiler/yarn.lock @@ -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" + react-dom@18.2.0: version "18.2.0" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"