mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[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:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
6
compiler/forget/scripts/hash.sh
Executable file
6
compiler/forget/scripts/hash.sh
Executable 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 }'
|
||||
Reference in New Issue
Block a user