Skip to content

Commit a7e7284

Browse files
author
fpapado
committed
Tune ts settings for tsc
1 parent 2123a9d commit a7e7284

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ microbundle/
33
ts-build/
44
node_modules/
55
dist/
6+
ts-build/
67
public/
78
cached/
89
app/

stories/LazyImage.story.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import {storiesOf} from '@storybook/react';
33
import {action} from '@storybook/addon-actions';
44
import {withInfo} from '@storybook/addon-info';
5-
import {LazyImage} from '../src/LazyImage';
5+
import {LazyImage} from '../dist/react-lazy-images.es.js';
66

77
const PlaceholderImage = () => (
88
<img

stories/LazyImageFull.story.js renamed to stories/LazyImageFull.story.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react';
1+
import React from 'react';
22
import {storiesOf} from '@storybook/react';
33
import {action} from '@storybook/addon-actions';
44
import {withInfo} from '@storybook/addon-info';

tsconfig.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"compilerOptions": {
3-
"target": "es2015",
43
"module": "es2015",
5-
"sourceMap": true,
4+
"target": "es5",
65
"declaration": true,
76
"jsx": "react",
8-
"allowSyntheticDefaultImports": true,
9-
"esModuleInterop": true,
107
"allowJs": false,
8+
"sourceMap": true,
119
"rootDirs": ["src", "stories"],
1210
"outDir": "ts-build",
1311
"moduleResolution": "node",
14-
"include": ["src/**/*"],
15-
"exclude": ["node_modules", "dist", "microbundle"]
16-
}
12+
"allowSyntheticDefaultImports": true,
13+
"esModuleInterop": true,
14+
"lib": ["es6", "dom"]
15+
},
16+
"include": ["src/**/*"],
17+
"exclude": ["node_modules", "dist", "microbundle"]
1718
}

0 commit comments

Comments
 (0)