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:
Kacper Wiszczuk 2019-03-28 14:14:15 -07:00 коммит произвёл Facebook Github Bot
Родитель 81fcaa151d
Коммит ab1edae669
2 изменённых файлов: 2 добавлений и 0 удалений

1
cli.js
Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env node
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*

Просмотреть файл

@ -1,6 +1,7 @@
{
"name": "react-native",
"version": "1000.0.0",
"bin": "./cli.js",
"description": "A framework for building native apps using React",
"license": "MIT",
"repository": {