Skip to content

Commit

Permalink
Move build to dist.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Apr 16, 2018
1 parent 601a15b commit eff2eeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.sublime-workspace
.DS_Store
build/
dist/
node_modules
npm-debug.log
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.sublime-*
build/*.zip
dist/*.zip
test/
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
"name": "Mike Bostock",
"url": "http://bost.ocks.org/mike"
},
"main": "build/d3-hierarchy.js",
"main": "dist/d3-hierarchy.js",
"module": "index",
"jsnext:main": "index",
"repository": {
"type": "git",
"url": "https://github.com/d3/d3-hierarchy.git"
},
"scripts": {
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-hierarchy.js -- index.js",
"pretest": "rm -rf dist && mkdir dist && rollup --banner \"$(preamble)\" -f umd -n d3 -o dist/d3-hierarchy.js -- index.js",
"test": "tape 'test/**/*-test.js' && eslint index.js src",
"prepublishOnly": "npm run test && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" build/d3-hierarchy.js -c -m -o build/d3-hierarchy.min.js",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-hierarchy/build/d3-hierarchy.js d3-hierarchy.v1.js && cp ../d3-hierarchy/build/d3-hierarchy.min.js d3-hierarchy.v1.min.js && git add d3-hierarchy.v1.js d3-hierarchy.v1.min.js && git commit -m \"d3-hierarchy ${npm_package_version}\" && git push && cd - && zip -j build/d3-hierarchy.zip -- LICENSE README.md build/d3-hierarchy.js build/d3-hierarchy.min.js"
"prepublishOnly": "npm run test && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" dist/d3-hierarchy.js -c -m -o dist/d3-hierarchy.min.js",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-hierarchy/dist/d3-hierarchy.js d3-hierarchy.v1.js && cp ../d3-hierarchy/dist/d3-hierarchy.min.js d3-hierarchy.v1.min.js && git add d3-hierarchy.v1.js d3-hierarchy.v1.min.js && git commit -m \"d3-hierarchy ${npm_package_version}\" && git push && cd - && zip -j dist/d3-hierarchy.zip -- LICENSE README.md dist/d3-hierarchy.js dist/d3-hierarchy.min.js"
},
"devDependencies": {
"benchmark": "^2.1.4",
Expand Down

0 comments on commit eff2eeb

Please sign in to comment.