Skip to content

Commit

Permalink
feat(package.json): Export es modules (#54)
Browse files Browse the repository at this point in the history
Preserve import/export statements so users can take advantage of tree shaking

Fixes #29
  • Loading branch information
jamsea authored Sep 19, 2017
1 parent 2af96f5 commit 2d7a3ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
es/
node_modules/
lib/
dist/
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.3.0",
"description": "A react display ad component using Google Publisher Tag",
"main": "lib/index.js",
"jsnext:main": "es/index.js",
"contributors": [
{
"name": "NFL Engineering"
Expand Down Expand Up @@ -97,6 +98,7 @@
"commit": "git-cz",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"build": "npm run clean && npm run compile",
"build:es": "BABEL_ENV=es babel --copy-files ./src -d es",
"build:umd":
"NODE_ENV=development webpack src/index.js dist/react-gpt.js",
"build:umd:min":
Expand All @@ -111,7 +113,7 @@
"npm run build && env BABEL_ENV=examples node examples/server/index.js",
"pretest": "npm run build",
"prepublish":
"npm run build && npm run build:umd && npm run build:umd:min",
"npm run build && npm run build:es && npm run build:umd && npm run build:umd:min",
"test": "npm run lint && karma start",
"update-apilist": "node ./scripts/updateAPIList.js"
},
Expand Down

0 comments on commit 2d7a3ec

Please sign in to comment.