File tree 4 files changed +9
-12
lines changed
4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'father' ;
2
2
3
3
export default defineConfig ( {
4
- platform : 'browser' ,
5
- cjs : { output : 'lib' } ,
6
- esm : {
7
- output : 'es' ,
8
- alias : { 'rc-util/lib' : 'rc-util/es' } ,
9
- } ,
4
+ plugins : [ '@rc-component/father-plugin' ] ,
10
5
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " rc-input" ,
3
- "version" : " 1.7.2 " ,
2
+ "name" : " @ rc-component/ input" ,
3
+ "version" : " 1.0.0-0 " ,
4
4
"description" : " React input component" ,
5
5
"keywords" : [
6
6
" react" ,
44
44
"prepare" : " husky install"
45
45
},
46
46
"dependencies" : {
47
- "@babel/runtime" : " ^7.11.1" ,
48
47
"classnames" : " ^2.2.1" ,
49
- "rc-util" : " ^5.18.1 "
48
+ "@ rc-component/ util" : " ^1.2.0 "
50
49
},
51
50
"devDependencies" : {
51
+ "@rc-component/father-plugin" : " ^2.0.3" ,
52
+ "@rc-component/np" : " ^1.0.3" ,
52
53
"@testing-library/jest-dom" : " ^6.6.3" ,
53
54
"@testing-library/react" : " ^16.0.1" ,
54
55
"@testing-library/user-event" : " ^14.0.0-beta" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { spyElementPrototypes } from 'rc-util/lib/test/domHook' ;
3
- import Input from 'rc-input ' ;
3
+ import Input from '../src ' ;
4
4
import { fireEvent , render } from '@testing-library/react' ;
5
5
6
6
const getInputRef = ( ) => {
Original file line number Diff line number Diff line change 15
15
"paths" : {
16
16
"@/*" : [" src/*" ],
17
17
"@@/*" : [" .dumi/tmp/*" ],
18
- "rc-input" : [" src/index.tsx" ]
18
+ "rc-input" : [" src/index.tsx" ],
19
+ "@rc-component/input" : [" src/index.tsx" ]
19
20
}
20
21
},
21
22
"include" : [" .dumirc.ts" , " **/*.ts" , " **/*.tsx" ]
You can’t perform that action at this time.
0 commit comments