mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 15:18:10 +00:00
Summary: Updates the combine-js-to-schema to expose a cli and combine all passed files into a single schema output Note: as far as I could tell, there isn't a way for buck to pass a glob of directories, so instead of accepting a dir and crawling it, this update accepts a list of files and combines them. Which makes sense, since buck is good at crawling already Reviewed By: TheSavior Differential Revision: D14007193 fbshipit-source-id: dbc209bb8d1cadd381269e9f70dc71a90f77878e
12 lines
316 B
Bash
Executable File
12 lines
316 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -u
|
|
|
|
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
|
|
|
|
# shellcheck source=xplat/js/env-utils/setup_env_vars.sh
|
|
source "$THIS_DIR/../../../../env-utils/setup_env_vars.sh"
|
|
|
|
exec "$FLOW_NODE_BINARY" "$THIS_DIR/combine-js-to-schema-cli.js" "$@"
|