Skip to content

Commit

Permalink
fix(list): memoize-one build (material-components#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo authored and Maxim-Mazurok committed May 6, 2019
1 parent 378d630 commit 47979ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"stop": "./test/screenshot/stop.sh",
"build": "npm run clean && mkdirp build && node --max_old_space_size=8192 node_modules/.bin/webpack --config packages/webpack.config.js --progress --colors",
"capture": "MDC_COMMIT_HASH=$(git rev-parse --short HEAD) MDC_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) mocha --require ts-node/register --require babel-core/register --ui tdd --timeout 30000 test/screenshot/capture-suite.tsx",
"clean": "rimraf build/** build packages/**/dist/",
"clean": "rimraf build/** build packages/*/dist/",
"commitmsg": "validate-commit-msg",
"fix": "eslint --fix --ext .jsx,.js,.tsx,.ts packages test",
"lint": "eslint --ext .jsx,.js,.tsx,.ts packages test",
Expand Down
3 changes: 2 additions & 1 deletion packages/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import classnames from 'classnames';
import {MDCListFoundation} from '@material/list/foundation';
import {MDCListIndex} from '@material/list/types';
import {MDCListAdapter} from '@material/list/adapter';
import memoizeOne from 'memoize-one';
// @ts-ignore @types cannot be used on dist files
import memoizeOne from 'memoize-one/dist/memoize-one.cjs.js';

import ListItem, {ListItemProps} from './ListItem'; // eslint-disable-line no-unused-vars
import ListItemGraphic from './ListItemGraphic';
Expand Down

0 comments on commit 47979ad

Please sign in to comment.