[build] yarn bundle:meta builds and uploads all packages

Some changes to our build infra to create a Meta bundle containing all packages. 
Needs corresponding changes in the internal upgrade commands
This commit is contained in:
Lauren Tan
2023-06-15 12:52:55 -04:00
parent aae9b01f91
commit b6c1ca9718
4 changed files with 8 additions and 8 deletions

View File

@@ -9,6 +9,8 @@
"url": "git+https://github.com/facebook/react-forget.git"
},
"scripts": {
"bundle:meta": "scripts/bundle-meta.sh",
"hash": "scripts/hash.sh",
"start": "yarn workspace playground run start",
"next": "yarn workspace playground run dev",
"build": "yarn workspaces run build",

View File

@@ -9,8 +9,6 @@
],
"scripts": {
"build": "rimraf dist && tsc",
"bundle:meta": "scripts/bundle-meta.sh",
"hash": "scripts/hash-dist.sh",
"test": "yarn jest && yarn snap:build && yarn snap",
"jest": "tsc && jest",
"snap": "node ../snap/dist/main.js",

View File

@@ -1,6 +0,0 @@
#!/usr/bin/env bash
set -eo pipefail
# Hashes JS files in the dist directory to create a cache-breaker
find dist -name '*.js' | sort | xargs shasum | shasum | awk '{ print $1 }' > dist/HASH

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail
# Hashes JS files in the provided directory to create a cache-breaker
find $1 -name '*.js' | sort | xargs shasum | shasum | awk '{ print $1 }'