Skip to content

Commit e4f249a

Browse files
committed
change ts compilation step in build so that it would use rules defined in tsconfig.json, fix invalid props being passed to DOM
1 parent d71a661 commit e4f249a

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

config/build.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,16 @@ function runRollup({entry, output, format, minify = false, outputDir = build}) {
4646
}
4747

4848
function compileTypescript(args = '') {
49-
execSync(`./node_modules/.bin/tsc --outDir ${intermediateBuild} --rootDir ./src --baseurl ./src ${args}`, {
50-
stdio: 'inherit',
51-
});
49+
const tscPath = resolvePath(root, './node_modules/.bin/tsc');
50+
const tscConfigPath = resolvePath(root, './tsconfig.json');
51+
const rootDir = resolvePath(root, './src');
52+
53+
execSync(
54+
`${tscPath} --outDir ${intermediateBuild} --project ${tscConfigPath} --rootDir ${rootDir} --baseurl ${rootDir} ${args}`,
55+
{
56+
stdio: 'inherit',
57+
},
58+
);
5259
}
5360

5461
function cleanIntermediateBuild(callback = () => {}) {

src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ export default class VirtualList extends React.PureComponent<Props, State> {
284284
renderItem,
285285
overscanCount,
286286
scrollDirection,
287+
stickyIndices,
288+
scrollToIndex,
287289
...restProps
288290
} = this.props;
289291

0 commit comments

Comments
 (0)