Skip to content

Commit

Permalink
Fix the file names for React Native
Browse files Browse the repository at this point in the history
  • Loading branch information
amsul committed Dec 13, 2017
1 parent 5a306c6 commit 70f1b89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -23,9 +23,9 @@
"dist/**",
"lib/**"
],
"main": "dist/react-translated.umd.js",
"module": "dist/react-translated.js",
"jsnext:main": "dist/react-translated.js",
"main": "dist/react-translated.js",
"module": "dist/react-translated.es.js",
"jsnext:main": "dist/react-translated.es.js",
"keywords": [
"react",
"react-dom",
Expand Down
13 changes: 5 additions & 8 deletions rollup.config.js
Expand Up @@ -6,31 +6,28 @@ export default {
input: 'lib/index.js',
output: [
{
file: 'dist/react-translated.js',
file: 'dist/react-translated.es.js',
format: 'es',
exports: 'named',
},
{
file: 'dist/react-translated.umd.js',
file: 'dist/react-translated.js',
format: 'umd',
exports: 'named',
name: 'ReactTranslated',
globals: {
'prop-types': 'PropTypes',
'react': 'React',
react: 'React',
},
},
],
plugins: [
flow(),
babel({
exclude: 'node_modules/**',
presets: ['es2015-rollup', 'stage-0', "react"],
presets: ['es2015-rollup', 'stage-0', 'react'],
}),
nodeResolve(),
],
external: [
'prop-types',
'react',
],
external: ['prop-types', 'react'],
}

0 comments on commit 70f1b89

Please sign in to comment.