Skip to content

Commit

Permalink
fix rollup issue. move version to 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnb committed Dec 27, 2017
1 parent 70b14c4 commit 880983e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 8 deletions.
31 changes: 30 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "mui-datatables",
"version": "1.0.1",
"version": "1.0.2",
"description": "Datatables for React using Material-UI",
"main": "lib/index.js",
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server -d --progress --colors",
"test": "mocha --require babel-register test/**/*.test.js",
Expand Down Expand Up @@ -60,8 +63,8 @@
"rollup": "^0.52.0",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-commonjs": "^8.2.6",
"rollup-plugin-env": "^0.21.4",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-uglify": "^2.0.1",
"simulant": "^0.2.2",
"sinon": "^4.1.3",
Expand Down
8 changes: 5 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import babel from "rollup-plugin-babel";
import commonjs from "rollup-plugin-commonjs";
import replace from "rollup-plugin-replace";
import uglify from "rollup-plugin-uglify";
import env from "rollup-plugin-env";

export default {
input: 'src/index.js',
plugins: [
env({ NODE_ENV: "production" }),
replace({
'process.env.NODE_ENV': JSON.stringify('production')
}),
commonjs({
include: [
'node_modules/**'
Expand Down Expand Up @@ -49,7 +51,7 @@ export default {
})
],
output: {
file: 'lib/index.js',
file: 'dist/index.js',
format: 'cjs'
},
sourcemap: true
Expand Down
2 changes: 1 addition & 1 deletion src/MUIPopover/MUIPopover.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MUIPopover extends React.Component {
};

componentWillMount() {
this.anchorEl = false;
this.anchorEl = null;
}

componentDidMount() {
Expand Down

0 comments on commit 880983e

Please sign in to comment.