Skip to content

Commit

Permalink
Remove .babelrc from the published package
Browse files Browse the repository at this point in the history
Installed from npm, this package doesn't work with React Native,
because although the released code is transpiled, .baberc is
also published to npm.

Fixed by adding the `files` property in package.json to prevent .babelrc from being published.

See:
facebook/react-native#4062
  • Loading branch information
fson committed Nov 3, 2016
1 parent 19944bd commit 828d96a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"type": "git",
"url": "https://github.com/ForbesLindesay/redux-optimist.git"
},
"files": [
"index.js",
"lib"
],
"author": "ForbesLindesay",
"license": "MIT"
}
}

0 comments on commit 828d96a

Please sign in to comment.