mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-30 05:55:48 +08:00
Add bin to package.json (#24187)
Summary: Add `bin` field to `package.json`. It will be required for initializing `react-native` with `npx`: ```sh npx react-native init ProjectName ``` [General] [Added] - Added bin to package.json cc thymikee cpojer Pull Request resolved: https://github.com/facebook/react-native/pull/24187 Differential Revision: D14672211 Pulled By: hramos fbshipit-source-id: 9e8633213bba4b3f02d20b54391a04d0a1a19376
This commit is contained in:
committed by
Facebook Github Bot
parent
81fcaa151d
commit
ab1edae669
1
cli.js
1
cli.js
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
/**
|
/**
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native",
|
"name": "react-native",
|
||||||
"version": "1000.0.0",
|
"version": "1000.0.0",
|
||||||
|
"bin": "./cli.js",
|
||||||
"description": "A framework for building native apps using React",
|
"description": "A framework for building native apps using React",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user