From cd7ef4dcdfe375aa53e4624cd94b43d47324b5c6 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Wed, 11 Nov 2015 10:53:07 -0800 Subject: [PATCH] Use Rollup. --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8b8d8fc..b5aa453 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-color", - "version": "0.2.7", + "version": "0.2.8", "description": "Color spaces! RGB, HSL, Cubehelix, Lab and HCL (Lch).", "keywords": [ "d3", @@ -18,20 +18,20 @@ "name": "Mike Bostock", "url": "http://bost.ocks.org/mike" }, - "main": "build/color.cjs", + "main": "build/d3-color.js", "jsnext:main": "index", "repository": { "type": "git", "url": "https://github.com/d3/d3-color.git" }, "scripts": { - "pretest": "mkdir -p build && d3-bundler -x -f cjs -o build/color.cjs.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 -u d3-color -n d3_color -o build/d3-color.js -- build/bundle.js", "test": "faucet `find test -name '*-test.js'`", - "prepublish": "npm run test && d3-bundler -n color -o build/color.js && uglifyjs build/color.js -c -m -o build/color.min.js && rm -f build/color.zip && zip -j build/color.zip -- LICENSE README.md build/color.js build/color.min.js" + "prepublish": "npm run test && uglifyjs build/d3-color.js -c -m -o build/d3-color.min.js && rm -f build/d3-color.zip && zip -j build/d3-color.zip -- LICENSE README.md build/d3-color.js build/d3-color.min.js" }, "devDependencies": { - "d3-bundler": "~0.4.0", "faucet": "0.0", + "rollup": "0.20.5", "tape": "4", "uglify-js": "2" }