Skip to content

Commit

Permalink
Fix dist
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds committed Aug 1, 2017
1 parent 684b4a3 commit 3f6aa5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"license": "MIT",
"files": [
"index.js",
"index.js.flow"
"index.js.flow",
"dist/styled-theming.js",
"dist/styled-theming.min.js"
],
"scripts": {
"test": "jest",
"example": "browserify -t babelify example/index.js -o example/bundle.js --debug",
"build": "rollup -c && NODE_ENV=production rollup -c",
"build": "rm -rf dist && rollup -c && NODE_ENV=production rollup -c",
"prepublish": "yarn build"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ let dest;
let plugins = [commonjs()];

if (process.env.NODE_ENV === 'production') {
dest = 'dist/bundle.min.js';
dest = 'dist/styled-theming.min.js';
plugins.push(uglify());
} else {
dest = 'dist/bundle.js';
dest = 'dist/styled-theming.js';
}

export default {
Expand Down

0 comments on commit 3f6aa5a

Please sign in to comment.