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: 76e9558fdcc0f6b1bbfe1b8cf5cabd52216d7d85
Pull Request resolved: #31053
  • Loading branch information
poteto committed Sep 27, 2024
1 parent a5249b0 commit f7b6f4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions 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 && ./scripts/link-react-compiler-runtime.sh && yarn workspace snap install",
"build": "rimraf dist && tsc --build",
"test": "echo 'no tests'",
"prettier": "prettier --write 'src/**/*.ts'"
Expand Down
10 changes: 10 additions & 0 deletions compiler/packages/snap/scripts/link-react-compiler-runtime.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

set -eo pipefail

yarn --silent workspace react-compiler-runtime link
yarn --silent workspace snap link react-compiler-runtime

0 comments on commit f7b6f4e

Please sign in to comment.