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 2b2a3fe commit b5ef152
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -15,6 +15,7 @@
"url": "http://bost.ocks.org/mike"
},
"main": "build/d3-brush.js",
"module": "index",
"jsnext:main": "index",
"repository": {
"type": "git",
Expand All @@ -24,7 +25,7 @@
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -g d3-dispatch:d3,d3-drag:d3,d3-interpolate:d3,d3-selection:d3,d3-transition:d3 -f umd -n d3 -o build/d3-brush.js -- index.js",
"test": "tape 'test/**/*-test.js' && eslint index.js src",
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-brush.js -c -m -o build/d3-brush.min.js",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-brush.js ../d3.github.com/d3-brush.v1.js && cp build/d3-brush.min.js ../d3.github.com/d3-brush.v1.min.js && cd ../d3.github.com && git add d3-brush.v1.js d3-brush.v1.min.js && git commit -m \"d3-brush ${VERSION}\" && git push && cd - && zip -j build/d3-brush.zip -- LICENSE README.md build/d3-brush.js build/d3-brush.min.js"
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-brush/build/d3-brush.js d3-brush.v1.js && cp ../d3-brush/build/d3-brush.min.js d3-brush.v1.min.js && git add d3-brush.v1.js d3-brush.v1.min.js && git commit -m \"d3-brush ${VERSION}\" && git push && cd - && zip -j build/d3-brush.zip -- LICENSE README.md build/d3-brush.js build/d3-brush.min.js"
},
"dependencies": {
"d3-dispatch": "1",
Expand All @@ -36,7 +37,7 @@
"devDependencies": {
"eslint": "2",
"package-preamble": "0.0",
"rollup": "0.33",
"rollup": "0.34",
"tape": "4",
"uglify-js": "2"
}
Expand Down

0 comments on commit b5ef152

Please sign in to comment.