Skip to content

Commit 87f8d59

Browse files
committed
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
1 parent 7fbe91a commit 87f8d59

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

0 commit comments

Comments
 (0)