From 6d15e016f3caf2f75e1d156966b9a7243e210c66 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Tue, 3 Nov 2015 23:53:09 -0800 Subject: [PATCH] Upgrade d3-bundler. --- package.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7298bfe..f4e9f80 100644 --- a/package.json +++ b/package.json @@ -15,20 +15,22 @@ "name": "Mike Bostock", "url": "http://bost.ocks.org/mike" }, - "main": "build/shape", + "main": "build/shape.cjs", "jsnext:main": "index", "repository": { "type": "git", "url": "https://github.com/d3/d3-shape.git" }, "scripts": { - "pretest": "mkdir -p build && d3-bundler --polyfill-map --format=umd --name=shape -- index.js > build/shape.js", + "pretest": "mkdir -p build && d3-bundler -x -f cjs -o build/shape.cjs.js", "test": "faucet `find test -name '*-test.js'`", - "prepublish": "npm run test && uglifyjs build/shape.js -c -m -o build/shape.min.js && rm -f build/shape.zip && zip -j build/shape.zip -- LICENSE README.md build/shape.js build/shape.min.js" + "prepublish": "npm run test && d3-bundler -n shape -o build/shape.js && uglifyjs build/shape.js -c -m -o build/shape.min.js && rm -f build/shape.zip && zip -j build/shape.zip -- LICENSE README.md build/shape.js build/shape.min.js" + }, + "dependencies": { + "d3-path": "~0.0.1" }, "devDependencies": { - "d3-bundler": "~0.2.5", - "d3-path": "~0.0.1", + "d3-bundler": "~0.4.0", "faucet": "0.0", "tape": "4", "uglify-js": "2"