Skip to content

Commit

Permalink
[core] Hoist duplicated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 25, 2020
1 parent cd8d9dc commit 4773bcb
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 253 deletions.
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.54",
"@material-ui/monorepo": "https://github.com/mui-org/material-ui.git#next",
"@rollup/plugin-node-resolve": "^8.0.1",
"@rollup/plugin-replace": "^2.3.3",
"@testing-library/react": "^10.4.8",
"@types/enzyme": "^3.10.5",
"@types/enzyme-adapter-react-16": "^1.0.6",
Expand Down Expand Up @@ -90,6 +92,14 @@
"pretty-format-v24": "npm:pretty-format@24",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"rollup": "^2.28.2",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-command": "^1.1.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-dts": "^1.4.7",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.0",
"sinon": "^9.0.2",
"stylelint": "^13.3.3",
"stylelint-config-recommended": "^3.0.0",
Expand Down
11 changes: 1 addition & 10 deletions packages/grid/data-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,7 @@
"prop-types": "^15.7.2",
"tslib": "^2.0.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^8.0.1",
"rollup": "^2.6.1",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-command": "^1.1.3",
"rollup-plugin-dts": "^1.4.7",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.1"
},
"devDependencies": {},
"peerDependencies": {
"@material-ui/core": "^4.9.12",
"react": "^16.8.0"
Expand Down
1 change: 0 additions & 1 deletion packages/grid/rollup.data-grid.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default [
sourcemap: !production,
},
],

external: [...Object.keys(pkg.peerDependencies || {})],
plugins: [
production &&
Expand Down
1 change: 0 additions & 1 deletion packages/grid/rollup.x-grid.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default [
sourcemap: !production,
},
],

external: [...Object.keys(pkg.peerDependencies || {})],
plugins: [
replace({
Expand Down
12 changes: 1 addition & 11 deletions packages/grid/x-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,7 @@
"prop-types": "^15.7.2",
"tslib": "^2.0.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^8.0.1",
"@rollup/plugin-replace": "^2.3.3",
"rollup": "^2.6.1",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-command": "^1.1.3",
"rollup-plugin-dts": "^1.4.7",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.1"
},
"devDependencies": {},
"peerDependencies": {
"@material-ui/core": "^4.9.12",
"react": "^16.8.0"
Expand Down
10 changes: 0 additions & 10 deletions packages/x-grid-data-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@
"lru-cache": "^6.0.0"
},
"devDependencies": {
"@types/node": "^14.0.13",
"rollup": "^2.6.1",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-css-only": "^2.0.0",
"rollup-plugin-dts": "^1.4.7",
"rollup-plugin-postcss": "^3.1.2",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.1",
"tslib": "^2.0.0"
},
"peerDependencies": {
Expand Down
5 changes: 0 additions & 5 deletions packages/x-grid-data-generator/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import typescript from 'rollup-plugin-typescript2';
import cleaner from 'rollup-plugin-cleaner';
import sourceMaps from 'rollup-plugin-sourcemaps';
import { terser } from 'rollup-plugin-terser';
import css from 'rollup-plugin-css-only';
import commonjs from 'rollup-plugin-commonjs';
import postcss from 'rollup-plugin-postcss';
import dts from 'rollup-plugin-dts';
import pkg from './package.json';

Expand All @@ -25,17 +23,14 @@ export default [
sourcemap: !production,
},
],

external: [...Object.keys(pkg.peerDependencies || {})],
plugins: [
production &&
cleaner({
targets: ['./dist/'],
}),
typescript(),
css({ output: 'dist/demo-style.css' }),
commonjs(),
postcss(),
!production && sourceMaps(),
production && terser(),
],
Expand Down
10 changes: 1 addition & 9 deletions packages/x-license/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,7 @@
"esm": "^3.2.25"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^8.0.1",
"@types/node": "^14.0.13",
"rollup": "^2.6.1",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-dts": "^1.4.7",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.0"
"@types/node": "^14.0.13"
},
"peerDependencies": {
"react": "^16.13.1"
Expand Down
1 change: 0 additions & 1 deletion packages/x-license/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default [
sourcemap: !production,
},
],

external: [...Object.keys(pkg.peerDependencies || {})],
plugins: [
production &&
Expand Down
Loading

0 comments on commit 4773bcb

Please sign in to comment.