Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 5bf173f

Browse files
committed
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
1 parent 6165cb8 commit 5bf173f

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

0 commit comments

Comments
 (0)