Skip to content

Commit

Permalink
Add bin to package.json (#24187)
Browse files Browse the repository at this point in the history
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: #24187

Differential Revision: D14672211

Pulled By: hramos

fbshipit-source-id: 9e8633213bba4b3f02d20b54391a04d0a1a19376
  • Loading branch information
Esemesek authored and facebook-github-bot committed Mar 28, 2019
1 parent 81fcaa1 commit ab1edae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit ab1edae

Please sign in to comment.