From d61a279a86f2775fac92a9bb4db73f9c867e87f7 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Fri, 29 Jan 2016 10:36:51 -0800 Subject: [PATCH] Generate anonymous AMD. Also update Rollup. Related mbostock/d3#2725. --- package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 29da01b..68f6056 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-shape", - "version": "0.5.0", + "version": "0.5.1", "description": "Graphical primitives for visualization, such as lines and areas.", "keywords": [ "d3", @@ -22,9 +22,10 @@ "url": "https://github.com/d3/d3-shape.git" }, "scripts": { - "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 -g d3-path:d3_path -u d3-shape -n d3_shape -o build/d3-shape.js -- build/bundle.js", + "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 -g d3-path:d3_path -n d3_shape -o build/d3-shape.js -- build/bundle.js", "test": "faucet `find test -name '*-test.js'` && eslint index.js src", - "prepublish": "npm run test && uglifyjs build/d3-shape.js -c -m -o build/d3-shape.min.js && rm -f build/d3-shape.zip && zip -j build/d3-shape.zip -- LICENSE README.md build/d3-shape.js build/d3-shape.min.js" + "prepublish": "npm run test && uglifyjs build/d3-shape.js -c -m -o build/d3-shape.min.js && rm -f build/d3-shape.zip && zip -j build/d3-shape.zip -- LICENSE README.md build/d3-shape.js build/d3-shape.min.js", + "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-shape.js ../d3.github.com/d3-shape.v0.5.js && cp build/d3-shape.min.js ../d3.github.com/d3-shape.v0.5.min.js && cd ../d3.github.com && git add d3-shape.v0.5.js d3-shape.v0.5.min.js && git commit -m \"d3-shape ${VERSION}\" && git push" }, "dependencies": { "d3-path": "~0.1.3" @@ -32,7 +33,7 @@ "devDependencies": { "d3-polygon": "~0.1.0", "faucet": "0.0", - "rollup": "0.20.5", + "rollup": "0.25", "tape": "4", "uglify-js": "2" }