Skip to content

Commit

Permalink
Add umd export
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign committed Aug 15, 2018
1 parent 7b9fa70 commit 92e121f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
node_modules
es
lib
dist
coverage

# Trailing dotted files
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"browser": "dist/index.js",
"files": [
"dist",
"es",
"lib"
"lib",
"src"
],
"scripts": {
"test": "jest",
"test:all": "npm run lint && npm t -- --coverage",
"clean": "rm -rf lib es",
"clean": "rm -rf lib es dist",
"compile": "npm run clean && BABEL_ENV=rollup rollup -c",
"contrib:add": "all-contributors add",
"contrib:generate": "all-contributors generate",
Expand Down
10 changes: 10 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,15 @@ export default {
format: 'es',
sourcemap: true,
},
{
file: 'dist/index.js',
format: 'umd',
sourcemap: true,
exports: 'named',
name: 'ReactMinimalPieChart',
globals: {
reselect: 'Reselect',
},
},
],
};

0 comments on commit 92e121f

Please sign in to comment.