From 8e772508cf97faaf3759ba51e24b8cd39706a089 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Tue, 3 Nov 2015 23:30:08 -0800 Subject: [PATCH] Upgrade d3-bundler. --- package.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3f6d036..cb014e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-interpolate", - "version": "0.1.2", + "version": "0.1.3", "description": "Interpolate numbers, colors, strings, arrays, objects, whatever!", "keywords": [ "d3", @@ -13,20 +13,22 @@ "name": "Mike Bostock", "url": "http://bost.ocks.org/mike" }, - "main": "build/interpolate", + "main": "build/interpolate.cjs", "jsnext:main": "index", "repository": { "type": "git", "url": "https://github.com/d3/d3-interpolate.git" }, "scripts": { - "pretest": "mkdir -p build && d3-bundler --format=umd --name=interpolate -- index.js > build/interpolate.js", + "pretest": "mkdir -p build && d3-bundler -x -f cjs -o build/interpolate.cjs.js", "test": "faucet `find test -name '*-test.js'`", - "prepublish": "npm run test && uglifyjs build/interpolate.js -c -m -o build/interpolate.min.js && rm -f build/interpolate.zip && zip -j build/interpolate.zip -- LICENSE README.md build/interpolate.js build/interpolate.min.js" + "prepublish": "npm run test && d3-bundler -n interpolate -o build/interpolate.js && uglifyjs build/interpolate.js -c -m -o build/interpolate.min.js && rm -f build/interpolate.zip && zip -j build/interpolate.zip -- LICENSE README.md build/interpolate.js build/interpolate.min.js" + }, + "dependencies": { + "d3-color": "~0.2.7" }, "devDependencies": { - "d3-bundler": "~0.2.9", - "d3-color": "~0.2.6", + "d3-bundler": "~0.4.0", "faucet": "0.0", "tape": "4", "uglify-js": "2"