Skip to content

Commit

Permalink
Updating dependencies, fixing build in node 11
Browse files Browse the repository at this point in the history
  • Loading branch information
jpb12 committed Mar 8, 2019
1 parent 8ce2c4a commit 3ba3154
Show file tree
Hide file tree
Showing 9 changed files with 1,049 additions and 972 deletions.
4 changes: 1 addition & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
.gitignore
.npmignore
.travis.yml
index.js
rollup.config.js
__tests__
coverage
Components
coverage
16 changes: 9 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
? (module.exports = factory(
require('core-js/fn/array/find'),
require('core-js/fn/object/assign'),
require('clone'),
require('d3-ease'),
require('d3-hierarchy'),
require('prop-types'),
require('react'),
require('core-js/fn/array/find'),
require('core-js/fn/object/assign')
require('react')
))
: typeof define === 'function' && define.amd
? define([
'core-js/fn/array/find',
'core-js/fn/object/assign',
'clone',
'd3-ease',
'd3-hierarchy',
'prop-types',
'react',
'core-js/fn/array/find',
'core-js/fn/object/assign'
'react'
], factory)
: ((global = global || self),
(global.ReactTreeGraph = factory(
null,
null,
global.clone,
global.d3,
global.d3,
global.PropTypes,
global.React
)));
})(this, function(clone, d3Ease, d3Hierarchy, PropTypes, React) {
})(this, function(find, assign, clone, d3Ease, d3Hierarchy, PropTypes, React) {
'use strict';

function _classCallCheck(instance, Constructor) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions index.js

This file was deleted.

1,948 changes: 1,018 additions & 930 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
},
"homepage": "https://jpb12.github.io/react-tree-graph",
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/preset-react": "^7.0.0",
"babel-jest": "^24.1.0",
"coveralls": "^3.0.2",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.9.1",
"babel-jest": "^24.3.1",
"coveralls": "^3.0.3",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.10.0",
"enzyme-to-json": "^3.3.5",
"eslint": "^5.13.0",
"eslint": "^5.15.1",
"eslint-plugin-react": "^7.12.4",
"jest": "^24.1.0",
"react": "^16.8.1",
"react-dom": "^16.8.1",
"react-test-renderer": "^16.8.1",
"rollup": "^1.1.2",
"jest": "^24.3.1",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"react-test-renderer": "^16.8.4",
"rollup": "^1.6.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-clear": "^2.0.7",
"rollup-plugin-postcss": "^2.0.3",
Expand Down
14 changes: 2 additions & 12 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const defaultConfig = {
'prop-types',
'react'
],
input: 'index.js',
input: 'src/index.js',
output: {
format: 'umd',
globals: {
Expand All @@ -32,17 +32,7 @@ const defaultConfig = {
},
plugins: [
babel({
babelrc: false,
exclude: 'node_modules/**',
presets: [
[
'@babel/env',
{
'modules': false
}
],
'@babel/react'
]
exclude: 'node_modules/**'
}),
clear({
targets: ['dist']
Expand Down
3 changes: 0 additions & 3 deletions src/components/animated.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import 'core-js/fn/array/find';
import 'core-js/fn/object/assign';

import PropTypes from 'prop-types';
import React from 'react';
import Container from './container';
Expand Down
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'core-js/fn/array/find';
import 'core-js/fn/object/assign';

import '../styles/style.css';

export { default } from './components/tree';

0 comments on commit 3ba3154

Please sign in to comment.