Skip to content

Commit a5cdd6c

Browse files
committed
Add module entry. Related rollup/rollup-plugin-node-resolve#48.
1 parent 0290256 commit a5cdd6c

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
@@ -16,6 +16,7 @@
1616
"url": "http://bost.ocks.org/mike"
1717
},
1818
"main": "build/d3-queue.js",
19+
"module": "index",
1920
"jsnext:main": "index",
2021
"repository": {
2122
"type": "git",
@@ -25,12 +26,12 @@
2526
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-queue.js -- index.js",
2627
"test": "tape 'test/**/*-test.js' && eslint index.js src",
2728
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-queue.js -c -m -o build/d3-queue.min.js",
28-
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp -v README.md LICENSE build/d3-queue.js ../d3-queue-bower && cd ../d3-queue-bower && git add README.md LICENSE d3-queue.js && git commit -m \"Release $VERSION.\" && git tag -am \"Release $VERSION.\" v${VERSION} && git push && git push --tags && cd ../d3-queue && cp build/d3-queue.js ../d3.github.com/d3-queue.v3.js && cp build/d3-queue.min.js ../d3.github.com/d3-queue.v3.min.js && cd ../d3.github.com && git add d3-queue.v3.js d3-queue.v3.min.js && git commit -m \"d3-queue ${VERSION}\" && git push && cd - && zip -j build/d3-queue.zip -- LICENSE README.md build/d3-queue.js build/d3-queue.min.js"
29+
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3-queue-bower && git pull && cp -v ../d3-queue/README.md ../d3-queue/LICENSE ../d3-queue/build/d3-queue.js . && git add README.md LICENSE d3-queue.js && git commit -m \"Release $VERSION.\" && git tag -am \"Release $VERSION.\" v${VERSION} && git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-queue/build/d3-queue.js d3-queue.v3.js && cp ../d3-queue/build/d3-queue.min.js d3-queue.v3.min.js && git add d3-queue.v3.js d3-queue.v3.min.js && git commit -m \"d3-queue ${VERSION}\" && git push && cd - && zip -j build/d3-queue.zip -- LICENSE README.md build/d3-queue.js build/d3-queue.min.js"
2930
},
3031
"devDependencies": {
3132
"eslint": "2",
3233
"package-preamble": "0.0",
33-
"rollup": "0.31",
34+
"rollup": "0.34",
3435
"tape": "4",
3536
"uglify-js": "2"
3637
}

0 commit comments

Comments
 (0)