mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 21:53:30 +00:00
Specify path for Sinopia
Reviewed By: mkonicek Differential Revision:D3041448 Ninja: oss only fb-gh-sync-id: 1a977f1917062bd8b039bdc6f2b74662407a8edc shipit-source-id: 1a977f1917062bd8b039bdc6f2b74662407a8edc
This commit is contained in:
parent
9acf7417a8
commit
6f7a305831
@ -55,18 +55,24 @@ cd $TEMP
|
||||
# sinopia is npm registry proxy, it is used to make npm
|
||||
# think react-native and react-native-cli are actually
|
||||
# published on npm
|
||||
# Temporarily installing sinopia from a github fork
|
||||
# TODO t10060166 use npm repo when bug is fixed
|
||||
which sinopia || ${NPM_PATH}npm install -g sinopia
|
||||
|
||||
# but in order to make npm use sinopia we temporarily
|
||||
# replace its config file
|
||||
[ -f ~/.npmrc ] && cp ~/.npmrc ~/.npmrc.bak
|
||||
|
||||
# Point npm to Sinopia (localhost)
|
||||
cp $SCRIPTS/e2e-npmrc ~/.npmrc
|
||||
|
||||
sinopia --config $SCRIPTS/e2e-sinopia.config.yml &
|
||||
echo "======== npm config ========"
|
||||
${NPM_PATH}npm config list
|
||||
echo "======== ======== ========"
|
||||
|
||||
${SINOPIA_PATH}sinopia --config $SCRIPTS/e2e-sinopia.config.yml &
|
||||
SINOPIA_PID=$!
|
||||
|
||||
echo "=========== Sinopia is running, pid ${SINOPIA_PID}"
|
||||
|
||||
# Make sure to remove old version of react-native in
|
||||
# case it was cached
|
||||
${NPM_PATH}npm unpublish react-native --force
|
||||
|
Loading…
x
Reference in New Issue
Block a user