Skip to content

Commit

Permalink
Windows build compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 14, 2016
1 parent a6da8f3 commit 2a620a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export {version} from "./build/version";
export {version} from "./build/package";
export {default as timeInterval} from "./src/interval";

import millisecond from "./src/millisecond";
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
"url": "https://github.com/d3/d3-time.git"
},
"scripts": {
"pretest": "mkdir -p build && node -e 'process.stdout.write(\"export var version = \\\"\" + require(\"./package.json\").version + \"\\\";\\n\");' > build/version.js && rollup -f umd -n d3_time -o build/d3-time.js -- index.js",
"test": "TZ=America/Los_Angeles faucet `find test -name '*-test.js'` && test/test-time-zones && eslint index.js src",
"prepublish": "npm run test && uglifyjs build/d3-time.js -c -m -o build/d3-time.min.js && rm -f build/d3-time.zip",
"pretest": "rm -rf build && mkdir build && json2module package.json > build/package.js && rollup -f umd -n d3_time -o build/d3-time.js -- index.js",
"test": "TZ=America/Los_Angeles faucet && test/test-time-zones && eslint index.js src",
"prepublish": "npm run test && uglifyjs build/d3-time.js -c -m -o build/d3-time.min.js",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-time.js ../d3.github.com/d3-time.v0.2.js && cp build/d3-time.min.js ../d3.github.com/d3-time.v0.2.min.js && cd ../d3.github.com && git add d3-time.v0.2.js d3-time.v0.2.min.js && git commit -m \"d3-time ${VERSION}\" && git push && cd - && zip -j build/d3-time.zip -- LICENSE README.md build/d3-time.js build/d3-time.min.js"
},
"devDependencies": {
"faucet": "0.0",
"json2module": "0.0",
"rollup": "0.25",
"tape": "4",
"uglify-js": "2"
Expand Down

0 comments on commit 2a620a6

Please sign in to comment.