Skip to content
This repository was archived by the owner on Nov 11, 2018. It is now read-only.

Commit 963647e

Browse files
committed
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
1 parent 21c2770 commit 963647e

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

0 commit comments

Comments
 (0)