Skip to content

Commit

Permalink
[lab] Build and export fixes (#12233)
Browse files Browse the repository at this point in the history
* [lab] Ship es/ files to npm.

* [lab] Export Slider and ToggleButton from entry points.
  • Loading branch information
goto-bus-stop authored and oliviertassinari committed Jul 22, 2018
1 parent c9ca71d commit 267beda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/material-ui-lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions packages/material-ui-lab/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -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';
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/index.js
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit 267beda

Please sign in to comment.