Skip to content

Commit

Permalink
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Aug 2, 2016
1 parent 691480c commit 40fc524
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"url": "http://bost.ocks.org/mike"
},
"main": "build/d3-color.js",
"module": "index",
"jsnext:main": "index",
"repository": {
"type": "git",
Expand All @@ -29,12 +30,12 @@
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-color.js -- index.js",
"test": "tape 'test/**/*-test.js' && eslint index.js src test",
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-color.js -c -m -o build/d3-color.min.js",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-color.js ../d3.github.com/d3-color.v1.js && cp build/d3-color.min.js ../d3.github.com/d3-color.v1.min.js && cd ../d3.github.com && git add d3-color.v1.js d3-color.v1.min.js && git commit -m \"d3-color ${VERSION}\" && git push && cd - && zip -j build/d3-color.zip -- LICENSE README.md build/d3-color.js build/d3-color.min.js"
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && cp ../d3-color/build/d3-color.js d3-color.v1.js && cp ../d3-color/build/d3-color.min.js d3-color.v1.min.js && git add d3-color.v1.js d3-color.v1.min.js && git commit -m \"d3-color ${VERSION}\" && git push && cd - && zip -j build/d3-color.zip -- LICENSE README.md build/d3-color.js build/d3-color.min.js"
},
"devDependencies": {
"eslint": "2",
"package-preamble": "0.0",
"rollup": "0.31",
"rollup": "0.34",
"tape": "4",
"uglify-js": "2"
}
Expand Down

0 comments on commit 40fc524

Please sign in to comment.