Skip to content

Commit 5814f19

Browse files
committed
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
1 parent 36c543e commit 5814f19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"url": "http://bost.ocks.org/mike"
1717
},
1818
"main": "build/d3-dispatch.js",
19+
"module": "index",
1920
"jsnext:main": "index",
2021
"repository": {
2122
"type": "git",
@@ -25,12 +26,12 @@
2526
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-dispatch.js -- index.js",
2627
"test": "tape 'test/**/*-test.js' && eslint index.js src",
2728
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-dispatch.js -c -m -o build/d3-dispatch.min.js",
28-
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-dispatch.js ../d3.github.com/d3-dispatch.v1.js && cp build/d3-dispatch.min.js ../d3.github.com/d3-dispatch.v1.min.js && cd ../d3.github.com && git add d3-dispatch.v1.js d3-dispatch.v1.min.js && git commit -m \"d3-dispatch ${VERSION}\" && git push && cd - && zip -j build/d3-dispatch.zip -- LICENSE README.md build/d3-dispatch.js build/d3-dispatch.min.js"
29+
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-dispatch/build/d3-dispatch.js d3-dispatch.v1.js && cp ../d3-dispatch/build/d3-dispatch.min.js d3-dispatch.v1.min.js && git add d3-dispatch.v1.js d3-dispatch.v1.min.js && git commit -m \"d3-dispatch ${VERSION}\" && git push && cd - && zip -j build/d3-dispatch.zip -- LICENSE README.md build/d3-dispatch.js build/d3-dispatch.min.js"
2930
},
3031
"devDependencies": {
3132
"eslint": "2",
3233
"package-preamble": "0.0",
33-
"rollup": "0.31",
34+
"rollup": "0.34",
3435
"tape": "4",
3536
"uglify-js": "2"
3637
}

0 commit comments

Comments
 (0)