Skip to content

Commit 64689b1

Browse files
committed
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
1 parent fb9e1bf commit 64689b1

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
@@ -20,6 +20,7 @@
2020
"url": "http://bost.ocks.org/mike"
2121
},
2222
"main": "build/d3-array.js",
23+
"module": "index",
2324
"jsnext:main": "index",
2425
"repository": {
2526
"type": "git",
@@ -29,12 +30,12 @@
2930
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-array.js -- index.js",
3031
"test": "tape 'test/**/*-test.js' && eslint index.js src",
3132
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-array.js -c -m -o build/d3-array.min.js",
32-
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-array.js ../d3.github.com/d3-array.v1.js && cp build/d3-array.min.js ../d3.github.com/d3-array.v1.min.js && cd ../d3.github.com && git add d3-array.v1.js d3-array.v1.min.js && git commit -m \"d3-array ${VERSION}\" && git push && cd - && zip -j build/d3-array.zip -- LICENSE README.md build/d3-array.js build/d3-array.min.js"
33+
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-array/build/d3-array.js d3-array.v1.js && cp ../d3-array/build/d3-array.min.js d3-array.v1.min.js && git add d3-array.v1.js d3-array.v1.min.js && git commit -m \"d3-array ${VERSION}\" && git push && cd - && zip -j build/d3-array.zip -- LICENSE README.md build/d3-array.js build/d3-array.min.js"
3334
},
3435
"devDependencies": {
3536
"eslint": "2",
3637
"package-preamble": "0.0",
37-
"rollup": "0.31",
38+
"rollup": "0.34",
3839
"seedrandom": "2",
3940
"tape": "4",
4041
"uglify-js": "2"

0 commit comments

Comments
 (0)