Skip to content

Commit ea3dc47

Browse files
chore: reduce deps size
1 parent ed93f8c commit ea3dc47

5 files changed

Lines changed: 16 additions & 7 deletions

File tree

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
**/.*
2+
lib/vendor
23
node_modules

lib/diff-clusters/clusters-joiner.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
'use strict';
22

33
const DiffArea = require('../diff-area');
4-
const jsgraphs = require('js-graph-algorithms');
4+
// https://www.npmjs.com/package/js-graph-algorithms
5+
// https://github.com/chen0040/js-graph-algorithms/blob/master/build/jsgraphs.min.js
6+
/**
7+
* @type import('js-graph-algorithms')
8+
*/
9+
const jsgraphs = require('../vendor/jsgraphs.min.js');
510

611
const hasOverlap = (cluster1, cluster2) => {
712
if (cluster1.left > cluster2.right || cluster2.left > cluster1.right) {

lib/vendor/jsgraphs.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"dependencies": {
1111
"color-diff": "^1.1.0",
1212
"fs-extra": "^8.1.0",
13-
"js-graph-algorithms": "1.0.18",
1413
"lodash": "^4.17.3",
1514
"nested-error-stacks": "^2.1.0",
1615
"parse-color": "^1.0.0",
@@ -23,6 +22,7 @@
2322
"eslint": "^5.3.0",
2423
"eslint-config-gemini-testing": "^3.0.0",
2524
"gm": "^1.23.1",
25+
"js-graph-algorithms": "^1.0.18",
2626
"mocha": "^5.2.0",
2727
"proxyquire": "^1.7.10",
2828
"sinon": "^6.1.5",

0 commit comments

Comments
 (0)