mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Fix cli entry points
Reviewed By: frantic Differential Revision: D2565954 fb-gh-sync-id: 6fde9e1dbefd71944e8f857e9a40619bf599ef75
This commit is contained in:
committed by
facebook-github-bot-6
parent
17ef86d6bb
commit
32aeeea313
@@ -13,5 +13,6 @@ clear
|
||||
|
||||
THIS_DIR=$(dirname "$0")
|
||||
$THIS_DIR/packager.sh
|
||||
|
||||
echo "Process terminated. Press <enter> to close the window"
|
||||
read
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"lint": "node linter.js Examples/",
|
||||
"start": "react-native start"
|
||||
"start": "./packager.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"wordwrap": "^1.0.0"
|
||||
|
||||
11
packager/packager.sh
Executable file
11
packager/packager.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2015-present, Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD-style license found in the
|
||||
# LICENSE file in the root directory of this source tree. An additional grant
|
||||
# of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
THIS_DIR=$(dirname "$0")
|
||||
node "$THIS_DIR/../local-cli/cli.js" start "$@"
|
||||
Reference in New Issue
Block a user