Skip to content

Commit 262c8d2

Browse files
committed
Exclude legacy BaseInput from TS build
1 parent 9aa2451 commit 262c8d2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/components/baseInput/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// @ts-nocheck
2+
import {Component} from 'react';
23
import _ from 'lodash';
34
import PropTypes from 'prop-types';
4-
import 'react';
55
import {ViewPropTypes, TextInput as RNTextInput} from 'react-native';
66
import {Colors, Typography} from '../../style';
7-
import {BaseComponent} from '../../commons';
7+
// import {BaseComponent} from '../../commons';
88
import Validators from './Validators';
99

1010
const VALIDATORS = {
@@ -15,7 +15,7 @@ const VALIDATORS = {
1515
PRICE: 'price'
1616
};
1717

18-
export default class BaseInput extends BaseComponent {
18+
export default class BaseInput extends Component {
1919
static displayName = 'BaseInput';
2020

2121
static propTypes = {

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"emitDeclarationOnly": true
55
},
66
"include": ["src/**/*", "typings/**/*", "lib/components/*/*"],
7-
"exclude": [ "node_modules"]
7+
"exclude": [ "node_modules", "src/components/baseInput/index.tsx"]
88
}

tsconfig.dev.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"noEmit": true
66
},
77
"include": ["src/**/*", "typings/**/*", "lib/components/**/*"],
8-
"exclude": ["node_modules", "src/**/__tests__"]
8+
"exclude": ["node_modules", "src/components/baseInput/index.tsx", "src/**/__tests__"]
99
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
}
3232
},
3333
"include": ["src/**/*", "typings/**/*", "demo/**/*", "lib/components/**/*"] ,
34-
"exclude": ["node_modules", "src/**/__tests__"]
34+
"exclude": ["node_modules", "src/components/baseInput/index.tsx", "src/**/__tests__"]
3535
}

0 commit comments

Comments
 (0)