Skip to content

Commit 27a7aab

Browse files
authored
chore: bump father plugin (#302)
* chore: use father plugin * test: update snapshot
1 parent 202afb8 commit 27a7aab

File tree

7 files changed

+416
-209
lines changed

7 files changed

+416
-209
lines changed

jest.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module.exports = {
22
setupFiles: ["./tests/setup.js"],
3-
snapshotSerializers: [require.resolve("enzyme-to-json/serializer")],
43
};

package.json

+8-13
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"compile": "father build",
3232
"prepare": "dumi setup",
3333
"gh-pages": "npm run now-build && father doc deploy",
34-
"prepublishOnly": "npm run compile && np --yolo --no-publish",
34+
"prepublishOnly": "npm run compile && rc-np",
3535
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js",
3636
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
3737
"test": "rc-test",
@@ -44,35 +44,30 @@
4444
"react-dom": ">=16.9.0"
4545
},
4646
"dependencies": {
47-
"@babel/runtime": "^7.10.1",
48-
"classnames": "^2.2.6",
49-
"rc-util": "^5.16.1"
47+
"@rc-component/util": "^1.2.1",
48+
"classnames": "^2.2.6"
5049
},
5150
"devDependencies": {
52-
"@rc-component/father-plugin": "^1.0.0",
53-
"@testing-library/react": "^12.1.5",
51+
"@rc-component/father-plugin": "^2.0.4",
52+
"@rc-component/np": "^1.0.4",
53+
"@testing-library/react": "^13.0.0",
5454
"@types/classnames": "^2.2.9",
5555
"@types/jest": "^29.4.0",
5656
"@types/keyv": "3.1.4",
5757
"@types/react": "^18.0.9",
5858
"@types/react-dom": "^18.0.3",
5959
"@umijs/fabric": "^3.0.0",
60-
"cheerio": "1.0.0-rc.12",
6160
"cross-env": "^7.0.0",
6261
"dumi": "^2.0.0",
63-
"enzyme": "^3.1.1",
64-
"enzyme-adapter-react-16": "^1.15.6",
65-
"enzyme-to-json": "^3.1.2",
6662
"eslint": "^8.57.0",
6763
"eslint-plugin-jest": "^27.6.0",
6864
"eslint-plugin-unicorn": "^50.0.1",
6965
"father": "^4.0.0",
7066
"glob": "^8.0.1",
71-
"np": "^10.0.1",
7267
"prettier": "^3.1.1",
7368
"rc-test": "^7.0.15",
74-
"react": "^16.0.0",
75-
"react-dom": "^16.0.0",
69+
"react": "^18.0.0",
70+
"react-dom": "^18.0.0",
7671
"typescript": "^5.0.0"
7772
}
7873
}

src/hooks/useId.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import canUseDom from 'rc-util/lib/Dom/canUseDom';
2+
import canUseDom from '@rc-component/util/lib/Dom/canUseDom';
33

44
let uuid = 0;
55

src/index.ts

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ import Circle from './Circle';
33

44
export type { ProgressProps } from './interface';
55
export { Line, Circle };
6-
export default {
7-
Line,
8-
Circle,
9-
};

0 commit comments

Comments
 (0)