Skip to content
This repository has been archived by the owner on Nov 11, 2018. It is now read-only.

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Aug 24, 2018
1 parent cc5c494 commit 370329e
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 21 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/
4 changes: 2 additions & 2 deletions d3-collection.sublime-project
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
],
"build_systems": [
{
"name": "npm test",
"cmd": ["npm", "test"],
"name": "yarn test",
"cmd": ["yarn", "test"],
"file_regex": "\\((...*?):([0-9]*):([0-9]*)\\)",
"working_dir": "$project_path"
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"name": "Mike Bostock",
"url": "http://bost.ocks.org/mike"
},
"main": "build/d3-collection.js",
"main": "dist/d3-collection.min.js",
"module": "index",
"jsnext:main": "index",
"repository": {
"type": "git",
"url": "https://github.com/d3/d3-collection.git"
},
"scripts": {
"pretest": "rm -rf build && mkdir build && rollup -c",
"pretest": "rollup -c",
"test": "tape 'test/**/*-test.js' && eslint index.js src test",
"prepublish": "yarn test",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-collection/build/d3-collection.js d3-collection.v1.js && cp ../d3-collection/build/d3-collection.min.js d3-collection.v1.min.js && git add d3-collection.v1.js d3-collection.v1.min.js && git commit -m \"d3-collection ${npm_package_version}\" && git push && cd - && zip -j build/d3-collection.zip -- LICENSE README.md build/d3-collection.js build/d3-collection.min.js"
"prepublishOnly": "rm -rf dist && yarn test",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v1.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v1.min.js && git add ${npm_package_name}.v1.js ${npm_package_name}.v1.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd - && zip -j dist/${npm_package_name}.zip -- LICENSE README.md dist/${npm_package_name}.js dist/${npm_package_name}.min.js"
},
"devDependencies": {
"d3-array": "1",
Expand Down
7 changes: 4 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ const config = {
input: "index.js",
external: Object.keys(meta.dependencies || {}),
output: {
file: `build/${meta.name}.js`,
file: `dist/${meta.name}.js`,
name: "d3",
format: "umd",
indent: false,
extend: true,
banner: `// ${meta.homepage} Version ${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}.`,
banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`,
globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).map(key => ({[key]: "d3"})))
},
plugins: []
Expand All @@ -21,7 +22,7 @@ export default [
...config,
output: {
...config.output,
file: `build/${meta.name}.min.js`
file: `dist/${meta.name}.min.js`
},
plugins: [
...config.plugins,
Expand Down
1 change: 0 additions & 1 deletion test/map-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var tape = require("tape"),
tape("map() returns an empty map", function(test) {
var m = d3.map();
test.equal(m instanceof d3.map, true);
test.equal(m.constructor.name, "Map");
test.deepEqual(m.keys(), []);
test.end();
});
Expand Down
1 change: 0 additions & 1 deletion test/set-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var tape = require("tape"),
tape("set() returns an empty set", function(test) {
var s = d3.set();
test.equal(s instanceof d3.set, true);
test.equal(s.constructor.name, "Set");
test.deepEqual(s.values(), []);
test.end();
});
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@


"@babel/code-frame@^7.0.0-beta.47":
version "7.0.0-rc.2"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-rc.2.tgz#12b6daeb408238360744649d16c0e9fa7ab3859e"
version "7.0.0-rc.3"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-rc.3.tgz#d77a587401f818a3168700f596e41cd6905947b2"
dependencies:
"@babel/highlight" "7.0.0-rc.2"
"@babel/highlight" "7.0.0-rc.3"

"@babel/highlight@7.0.0-rc.2":
version "7.0.0-rc.2"
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-rc.2.tgz#0af688a69e3709d9cf392e1837cda18c08d34d4f"
"@babel/highlight@7.0.0-rc.3":
version "7.0.0-rc.3"
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-rc.3.tgz#c2ee83f8e5c0c387279a8c48e06fef2e32027004"
dependencies:
chalk "^2.0.0"
esutils "^2.0.2"
Expand Down Expand Up @@ -187,8 +187,8 @@ cross-spawn@^6.0.5:
which "^1.2.9"

d3-array@1:
version "1.2.2"
resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-1.2.2.tgz#586b0261f27da1e411d164a8ffe047401c84ed75"
version "1.2.3"
resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-1.2.3.tgz#d705413d19a48fd82c570b4442170d6b9f5df794"

debug@^3.1.0:
version "3.1.0"
Expand Down

0 comments on commit 370329e

Please sign in to comment.