Skip to content

Commit 230a580

Browse files
committed
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
1 parent 50b7703 commit 230a580

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
@@ -14,6 +14,7 @@
1414
"url": "http://bost.ocks.org/mike"
1515
},
1616
"main": "build/d3-quadtree.js",
17+
"module": "index",
1718
"jsnext:main": "index",
1819
"repository": {
1920
"type": "git",
@@ -23,13 +24,13 @@
2324
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-quadtree.js -- index.js",
2425
"test": "tape 'test/**/*-test.js' && eslint index.js src",
2526
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-quadtree.js -c -m -o build/d3-quadtree.min.js",
26-
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-quadtree.js ../d3.github.com/d3-quadtree.v1.js && cp build/d3-quadtree.min.js ../d3.github.com/d3-quadtree.v1.min.js && cd ../d3.github.com && git add d3-quadtree.v1.js d3-quadtree.v1.min.js && git commit -m \"d3-quadtree ${VERSION}\" && git push && cd - && zip -j build/d3-quadtree.zip -- LICENSE README.md build/d3-quadtree.js build/d3-quadtree.min.js"
27+
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-quadtree/build/d3-quadtree.js d3-quadtree.v1.js && cp ../d3-quadtree/build/d3-quadtree.min.js d3-quadtree.v1.min.js && git add d3-quadtree.v1.js d3-quadtree.v1.min.js && git commit -m \"d3-quadtree ${VERSION}\" && git push && cd - && zip -j build/d3-quadtree.zip -- LICENSE README.md build/d3-quadtree.js build/d3-quadtree.min.js"
2728
},
2829
"devDependencies": {
2930
"d3-array": "1",
3031
"eslint": "2",
3132
"package-preamble": "0.0",
32-
"rollup": "0.31",
33+
"rollup": "0.34",
3334
"tape": "4",
3435
"uglify-js": "2"
3536
}

0 commit comments

Comments
 (0)