Skip to content

Commit e962392

Browse files
authored
chore: bump father plugin (#105)
* chore: bump father plugin * chore: base alias
1 parent 1368c9e commit e962392

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

.fatherrc.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { defineConfig } from 'father';
22

33
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'],
105
});

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "rc-input",
3-
"version": "1.7.2",
2+
"name": "@rc-component/input",
3+
"version": "1.0.0-0",
44
"description": "React input component",
55
"keywords": [
66
"react",
@@ -44,11 +44,12 @@
4444
"prepare": "husky install"
4545
},
4646
"dependencies": {
47-
"@babel/runtime": "^7.11.1",
4847
"classnames": "^2.2.1",
49-
"rc-util": "^5.18.1"
48+
"@rc-component/util": "^1.2.0"
5049
},
5150
"devDependencies": {
51+
"@rc-component/father-plugin": "^2.0.3",
52+
"@rc-component/np": "^1.0.3",
5253
"@testing-library/jest-dom": "^6.6.3",
5354
"@testing-library/react": "^16.0.1",
5455
"@testing-library/user-event": "^14.0.0-beta",

tests/focus.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { spyElementPrototypes } from 'rc-util/lib/test/domHook';
3-
import Input from 'rc-input';
3+
import Input from '../src';
44
import { fireEvent, render } from '@testing-library/react';
55

66
const getInputRef = () => {

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"paths": {
1616
"@/*": ["src/*"],
1717
"@@/*": [".dumi/tmp/*"],
18-
"rc-input": ["src/index.tsx"]
18+
"rc-input": ["src/index.tsx"],
19+
"@rc-component/input": ["src/index.tsx"]
1920
}
2021
},
2122
"include": [".dumirc.ts", "**/*.ts", "**/*.tsx"]

0 commit comments

Comments
 (0)