From 05d4e1b9b1268e4a8a17713a6427da1ca126f075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sun, 22 Jul 2018 11:13:33 +0200 Subject: [PATCH 1/2] [lab] Ship es/ files to npm. --- packages/material-ui-lab/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/material-ui-lab/package.json b/packages/material-ui-lab/package.json index 419b12890f0094..c83b9b2ee128d8 100644 --- a/packages/material-ui-lab/package.json +++ b/packages/material-ui-lab/package.json @@ -28,8 +28,9 @@ "prebuild": "../../node_modules/.bin/rimraf build", "build:es2015": "../../node_modules/.bin/cross-env NODE_ENV=production ../../node_modules/.bin/babel ./src --out-dir ./build --ignore *.test.js", "build:es2015modules": "../../node_modules/.bin/cross-env NODE_ENV=production BABEL_ENV=modules ../../node_modules/.bin/babel ./src/index.js --out-file ./build/index.es.js", + "build:es": "../../node_modules/.bin/cross-env NODE_ENV=production BABEL_ENV=es ../../node_modules/.bin/babel ./src --out-dir ./build/es --ignore *.test.js", "build:copy-files": "../../node_modules/.bin/babel-node ./scripts/copy-files.js", - "build": "yarn build:es2015 && yarn build:es2015modules && yarn build:copy-files", + "build": "yarn build:es2015 && yarn build:es2015modules && yarn build:es && yarn build:copy-files", "release": "yarn build && npm publish build" }, "peerDependencies": { From d842b09f81b126f6ecb1251852c7f35a048296be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sun, 22 Jul 2018 11:13:51 +0200 Subject: [PATCH 2/2] [lab] Export Slider and ToggleButton from entry points. --- packages/material-ui-lab/src/index.d.ts | 3 +++ packages/material-ui-lab/src/index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/material-ui-lab/src/index.d.ts b/packages/material-ui-lab/src/index.d.ts index 4bd3a6e8c7fd2f..196930d833cba6 100644 --- a/packages/material-ui-lab/src/index.d.ts +++ b/packages/material-ui-lab/src/index.d.ts @@ -1,3 +1,6 @@ +export { default as Slider } from './Slider'; export { default as SpeedDial } from './SpeedDial'; export { default as SpeedDialAction } from './SpeedDialAction'; export { default as SpeedDialIcon } from './SpeedDialIcon'; +export { default as ToggleButton } from './ToggleButton/ToggleButton'; +export { default as ToggleButtonGroup } from './ToggleButton/ToggleButtonGroup'; diff --git a/packages/material-ui-lab/src/index.js b/packages/material-ui-lab/src/index.js index 209e6bf1aac574..196930d833cba6 100644 --- a/packages/material-ui-lab/src/index.js +++ b/packages/material-ui-lab/src/index.js @@ -1,6 +1,6 @@ +export { default as Slider } from './Slider'; export { default as SpeedDial } from './SpeedDial'; export { default as SpeedDialAction } from './SpeedDialAction'; export { default as SpeedDialIcon } from './SpeedDialIcon'; - export { default as ToggleButton } from './ToggleButton/ToggleButton'; export { default as ToggleButtonGroup } from './ToggleButton/ToggleButtonGroup';