Skip to content

Commit

Permalink
fix #4 transpile even the module-based export
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjt committed Aug 22, 2017
1 parent 63a0fef commit cc5e5d3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"env": {
"es6": {
"es": {
"presets": [
["env", {"modules": false}]
],
"plugins": [
["transform-object-rest-spread", {"useBuiltIns": true}]
]
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ coverage

# Babel
lib
es6
es
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ coverage
.gitignore

examples

# GitHub Pages / Jekyll
_config.yml
_layouts
CNAME
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "redux-data-structures",
"version": "0.1.5",
"version": "0.1.6",
"description": "Creator functions for common reducers",
"main": "lib/index.js",
"module": "es6/index.js",
"module": "es/index.js",
"scripts": {
"test": "rm -rf coverage && jest --verbose --coverage src",
"build:es6": "rm -rf es6 && BABEL_ENV=es6 babel src --out-dir es6 --ignore __tests__",
"build:es": "rm -rf es && BABEL_ENV=es babel src --out-dir es --ignore __tests__",
"build:commonjs": "rm -rf lib && BABEL_ENV=commonjs babel src --out-dir lib --ignore __tests__",
"build": "npm run build:es6 && npm run build:commonjs"
"build": "npm run build:es && npm run build:commonjs"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit cc5e5d3

Please sign in to comment.