Skip to content

Commit 0a0a5c0

Browse files
committed
[compiler:playground] Wait for build before running playground
Explicitly waits for the build to finish since the playground requires them to run ghstack-source-id: 0bd7d52 Pull Request resolved: #29180
1 parent 8f3c052 commit 0a0a5c0

File tree

2 files changed

+77
-31
lines changed

2 files changed

+77
-31
lines changed

compiler/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"start": "yarn workspace playground run start",
2323
"next": "yarn workspace playground run dev",
2424
"build": "yarn workspaces run build",
25-
"dev": "concurrently --kill-others -n compiler,runtime,playground \"yarn workspace babel-plugin-react-compiler run build --watch\" \"yarn workspace react-compiler-runtime run build --watch\" \"yarn workspace playground run dev\"",
25+
"dev": "concurrently --kill-others -n compiler,runtime,playground \"yarn workspace babel-plugin-react-compiler run build --watch\" \"yarn workspace react-compiler-runtime run build --watch\" \"wait-on packages/babel-plugin-react-compiler/dist/index.js && yarn workspace playground run dev\"",
2626
"test": "yarn workspaces run test",
2727
"snap": "yarn workspace babel-plugin-react-compiler run snap",
2828
"snap:build": "yarn workspace snap run build",
@@ -45,6 +45,7 @@
4545
"rollup-plugin-banner2": "^1.2.3",
4646
"rollup-plugin-prettier": "^4.1.1",
4747
"typescript": "^5.4.3",
48+
"wait-on": "^7.2.0",
4849
"yargs": "^17.7.2"
4950
},
5051
"resolutions": {

compiler/yarn.lock

Lines changed: 75 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,18 @@
17741774
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.0.tgz#a5417ae8427873f1dd08b70b3574b453e67b5f7f"
17751775
integrity sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==
17761776

1777+
"@hapi/hoek@^9.0.0", "@hapi/hoek@^9.3.0":
1778+
version "9.3.0"
1779+
resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb"
1780+
integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==
1781+
1782+
"@hapi/topo@^5.1.0":
1783+
version "5.1.0"
1784+
resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012"
1785+
integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==
1786+
dependencies:
1787+
"@hapi/hoek" "^9.0.0"
1788+
17771789
"@heroicons/react@^1.0.6":
17781790
version "1.0.6"
17791791
resolved "https://registry.yarnpkg.com/@heroicons/react/-/react-1.0.6.tgz#35dd26987228b39ef2316db3b1245c42eb19e324"
@@ -2801,6 +2813,23 @@
28012813
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz#5f1b518ec5fa54437c0b7c4a821546c64fed6922"
28022814
integrity sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA==
28032815

2816+
"@sideway/address@^4.1.5":
2817+
version "4.1.5"
2818+
resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.5.tgz#4bc149a0076623ced99ca8208ba780d65a99b9d5"
2819+
integrity sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==
2820+
dependencies:
2821+
"@hapi/hoek" "^9.0.0"
2822+
2823+
"@sideway/formula@^3.0.1":
2824+
version "3.0.1"
2825+
resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f"
2826+
integrity sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==
2827+
2828+
"@sideway/pinpoint@^2.0.0":
2829+
version "2.0.0"
2830+
resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
2831+
integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
2832+
28042833
"@sinclair/typebox@^0.24.1":
28052834
version "0.24.42"
28062835
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.42.tgz#a74b608d494a1f4cc079738e050142a678813f52"
@@ -3625,6 +3654,15 @@ axe-core@^4.6.2:
36253654
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.7.2.tgz#040a7342b20765cb18bb50b628394c21bccc17a0"
36263655
integrity sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==
36273656

3657+
axios@^1.6.1:
3658+
version "1.7.1"
3659+
resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.1.tgz#522145622a09dfaf49359837db9649ff245a35b9"
3660+
integrity sha512-+LV37nQcd1EpFalkXksWNBiA17NZ5m5/WspmHGmZmdx1qBOg/VNq/c4eRJiA9VQQHBOs+N0ZhhdU10h2TyNK7Q==
3661+
dependencies:
3662+
follow-redirects "^1.15.6"
3663+
form-data "^4.0.0"
3664+
proxy-from-env "^1.1.0"
3665+
36283666
axobject-query@^3.1.1:
36293667
version "3.1.1"
36303668
resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-3.1.1.tgz#3b6e5c6d4e43ca7ba51c5babf99d22a9c68485e1"
@@ -5333,6 +5371,11 @@ folder-hash@^4.0.4:
53335371
debug "^4.3.3"
53345372
minimatch "~5.1.2"
53355373

5374+
follow-redirects@^1.15.6:
5375+
version "1.15.6"
5376+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
5377+
integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==
5378+
53365379
for-each@^0.3.3:
53375380
version "0.3.3"
53385381
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
@@ -7341,6 +7384,17 @@ jiti@^1.18.2:
73417384
resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.18.2.tgz#80c3ef3d486ebf2450d9335122b32d121f2a83cd"
73427385
integrity sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==
73437386

7387+
joi@^17.11.0:
7388+
version "17.13.1"
7389+
resolved "https://registry.yarnpkg.com/joi/-/joi-17.13.1.tgz#9c7b53dc3b44dd9ae200255cc3b398874918a6ca"
7390+
integrity sha512-vaBlIKCyo4FCUtCm7Eu4QZd/q02bWcxfUO6YSXAZOWF6gzcLBeba8kwotUdYJjDLW8Cz8RywsSOqiNJZW0mNvg==
7391+
dependencies:
7392+
"@hapi/hoek" "^9.3.0"
7393+
"@hapi/topo" "^5.1.0"
7394+
"@sideway/address" "^4.1.5"
7395+
"@sideway/formula" "^3.0.1"
7396+
"@sideway/pinpoint" "^2.0.0"
7397+
73447398
js-sdsl@^4.1.4:
73457399
version "4.4.2"
73467400
resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.4.2.tgz#2e3c031b1f47d3aca8b775532e3ebb0818e7f847"
@@ -7769,7 +7823,7 @@ minimatch@^5.0.1, minimatch@~5.1.2:
77697823
dependencies:
77707824
brace-expansion "^2.0.1"
77717825

7772-
minimist@^1.2.0:
7826+
minimist@^1.2.0, minimist@^1.2.8:
77737827
version "1.2.8"
77747828
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
77757829
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
@@ -8456,6 +8510,11 @@ prop-types@^15.8.1:
84568510
object-assign "^4.1.1"
84578511
react-is "^16.13.1"
84588512

8513+
proxy-from-env@^1.1.0:
8514+
version "1.1.0"
8515+
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
8516+
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
8517+
84598518
psl@^1.1.33:
84608519
version "1.9.0"
84618520
resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7"
@@ -8807,7 +8866,7 @@ run-parallel@^1.1.9:
88078866
dependencies:
88088867
queue-microtask "^1.2.2"
88098868

8810-
rxjs@^7.0.0:
8869+
rxjs@^7.0.0, rxjs@^7.8.1:
88118870
version "7.8.1"
88128871
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543"
88138872
integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==
@@ -9073,16 +9132,7 @@ string-length@^4.0.1:
90739132
char-regex "^1.0.2"
90749133
strip-ansi "^6.0.0"
90759134

9076-
"string-width-cjs@npm:string-width@^4.2.0":
9077-
version "4.2.3"
9078-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
9079-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
9080-
dependencies:
9081-
emoji-regex "^8.0.0"
9082-
is-fullwidth-code-point "^3.0.0"
9083-
strip-ansi "^6.0.1"
9084-
9085-
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
9135+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
90869136
version "4.2.3"
90879137
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
90889138
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -9175,14 +9225,7 @@ string_decoder@^1.1.1:
91759225
dependencies:
91769226
safe-buffer "~5.2.0"
91779227

9178-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
9179-
version "6.0.1"
9180-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
9181-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
9182-
dependencies:
9183-
ansi-regex "^5.0.1"
9184-
9185-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
9228+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
91869229
version "6.0.1"
91879230
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
91889231
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -9683,6 +9726,17 @@ w3c-xmlserializer@^4.0.0:
96839726
dependencies:
96849727
xml-name-validator "^4.0.0"
96859728

9729+
wait-on@^7.2.0:
9730+
version "7.2.0"
9731+
resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-7.2.0.tgz#d76b20ed3fc1e2bebc051fae5c1ff93be7892928"
9732+
integrity sha512-wCQcHkRazgjG5XoAq9jbTMLpNIjoSlZslrJ2+N9MxDsGEv1HnFoVjOCexL0ESva7Y9cu350j+DWADdk54s4AFQ==
9733+
dependencies:
9734+
axios "^1.6.1"
9735+
joi "^17.11.0"
9736+
lodash "^4.17.21"
9737+
minimist "^1.2.8"
9738+
rxjs "^7.8.1"
9739+
96869740
walker@^1.0.8:
96879741
version "1.0.8"
96889742
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f"
@@ -9822,7 +9876,7 @@ wordwrap@>=0.0.2:
98229876
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
98239877
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
98249878

9825-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
9879+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
98269880
version "7.0.0"
98279881
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
98289882
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -9840,15 +9894,6 @@ wrap-ansi@^6.2.0:
98409894
string-width "^4.1.0"
98419895
strip-ansi "^6.0.0"
98429896

9843-
wrap-ansi@^7.0.0:
9844-
version "7.0.0"
9845-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
9846-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
9847-
dependencies:
9848-
ansi-styles "^4.0.0"
9849-
string-width "^4.1.0"
9850-
strip-ansi "^6.0.0"
9851-
98529897
wrap-ansi@^8.1.0:
98539898
version "8.1.0"
98549899
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)