Skip to content

Commit 726f07f

Browse files
committed
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
1 parent e742c1e commit 726f07f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

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

0 commit comments

Comments
 (0)