Skip to content

Commit

Permalink
chore: bump father plugin (#105)
Browse files Browse the repository at this point in the history
* chore: bump father plugin

* chore: base alias
  • Loading branch information
zombieJ authored Jan 27, 2025
1 parent 1368c9e commit e962392
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { defineConfig } from 'father';

export default defineConfig({
platform: 'browser',
cjs: { output: 'lib' },
esm: {
output: 'es',
alias: { 'rc-util/lib': 'rc-util/es' },
},
plugins: ['@rc-component/father-plugin'],
});
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-input",
"version": "1.7.2",
"name": "@rc-component/input",
"version": "1.0.0-0",
"description": "React input component",
"keywords": [
"react",
Expand Down Expand Up @@ -44,11 +44,12 @@
"prepare": "husky install"
},
"dependencies": {
"@babel/runtime": "^7.11.1",
"classnames": "^2.2.1",
"rc-util": "^5.18.1"
"@rc-component/util": "^1.2.0"
},
"devDependencies": {
"@rc-component/father-plugin": "^2.0.3",
"@rc-component/np": "^1.0.3",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.0.0-beta",
Expand Down
2 changes: 1 addition & 1 deletion tests/focus.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { spyElementPrototypes } from 'rc-util/lib/test/domHook';
import Input from 'rc-input';
import Input from '../src';
import { fireEvent, render } from '@testing-library/react';

const getInputRef = () => {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"paths": {
"@/*": ["src/*"],
"@@/*": [".dumi/tmp/*"],
"rc-input": ["src/index.tsx"]
"rc-input": ["src/index.tsx"],
"@rc-component/input": ["src/index.tsx"]
}
},
"include": [".dumirc.ts", "**/*.ts", "**/*.tsx"]
Expand Down

0 comments on commit e962392

Please sign in to comment.