Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Aug 19, 2019
1 parent bb13745 commit 9eba1b6
Show file tree
Hide file tree
Showing 6 changed files with 273 additions and 92 deletions.
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

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 "./dist/package";
export {version} from "./dist/package.js";
export * from "d3-array";
export * from "d3-axis";
export * from "d3-brush";
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,23 @@
"type": "git",
"url": "https://github.com/d3/d3.git"
},
"files": [
"dist/**/*.js",
"index.js"
],
"scripts": {
"pretest": "rimraf dist && mkdir dist && json2module package.json > dist/package.js && node rollup.node",
"pretest": "rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c",
"test": "tape 'test/**/*-test.js'",
"prepublishOnly": "yarn test && rollup -c",
"prepublishOnly": "yarn test",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m \"d3 ${npm_package_version}\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \"${npm_package_version}\" && git tag -am \"${npm_package_version}\" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js"
},
"devDependencies": {
"json2module": "0.0",
"rimraf": "2",
"rollup": "0.64",
"rollup": "1",
"rollup-plugin-ascii": "0.0",
"rollup-plugin-node-resolve": "3",
"rollup-plugin-terser": "1",
"rollup-plugin-terser": "5",
"tape": "4"
},
"dependencies": {
Expand Down
12 changes: 10 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ const copyright = `// ${meta.homepage} v${meta.version} Copyright ${(new Date).g

export default [
{
input: "index",
input: "index.js",
external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)),
output: {
file: "dist/d3.node.js",
format: "cjs"
}
},
{
input: "index.js",
plugins: [
node(),
ascii()
Expand All @@ -22,7 +30,7 @@ export default [
}
},
{
input: "index",
input: "index.js",
plugins: [
node(),
ascii(),
Expand Down
22 changes: 0 additions & 22 deletions rollup.node.js

This file was deleted.

Loading

0 comments on commit 9eba1b6

Please sign in to comment.