Skip to content

Commit d4c0912

Browse files
committed
Generate anonymous AMD.
Also update Rollup. Related d3/d3#2725.
1 parent 61841e2 commit d4c0912

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "d3-selection",
3-
"version": "0.6.3",
3+
"version": "0.6.5",
44
"description": "Data-driven DOM manipulation: select elements and join them to data.",
55
"keywords": [
66
"d3",
@@ -21,13 +21,14 @@
2121
"url": "https://github.com/d3/d3-selection.git"
2222
},
2323
"scripts": {
24-
"pretest": "mkdir -p build && node -e 'process.stdout.write(\"var version = \\\"\" + require(\"./package.json\").version + \"\\\"; export * from \\\"../index\\\"; export {version};\");' > build/bundle.js && rollup -f umd -u d3-selection -n d3_selection -o build/d3-selection.js -- build/bundle.js",
24+
"pretest": "mkdir -p build && node -e 'process.stdout.write(\"var version = \\\"\" + require(\"./package.json\").version + \"\\\"; export * from \\\"../index\\\"; export {version};\");' > build/bundle.js && rollup -f umd -n d3_selection -o build/d3-selection.js -- build/bundle.js",
2525
"test": "faucet `find test -name '*-test.js'` && eslint index.js src",
26-
"prepublish": "npm test && uglifyjs build/d3-selection.js -c -m -o build/d3-selection.min.js && rm -f build/d3-selection.zip && zip -j build/d3-selection.zip -- LICENSE README.md build/d3-selection.js build/d3-selection.min.js"
26+
"prepublish": "npm test && uglifyjs build/d3-selection.js -c -m -o build/d3-selection.min.js && rm -f build/d3-selection.zip && zip -j build/d3-selection.zip -- LICENSE README.md build/d3-selection.js build/d3-selection.min.js",
27+
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git tag -am \"Release $VERSION.\" v${VERSION} && git push --tags && cp build/d3-selection.js ../d3.github.com/d3-selection.v0.6.js && cp build/d3-selection.min.js ../d3.github.com/d3-selection.v0.6.min.js && cd ../d3.github.com && git add d3-selection.v0.6.js d3-selection.v0.6.min.js && git commit -m \"d3-selection ${VERSION}\" && git push"
2728
},
2829
"devDependencies": {
2930
"faucet": "0.0",
30-
"rollup": "0.20.5",
31+
"rollup": "0.25",
3132
"jsdom": "8",
3233
"tape": "4",
3334
"uglify-js": "2"

0 commit comments

Comments
 (0)