Skip to content

Commit 5ea649e

Browse files
committed
⬆️ chore: upgrade to father4
1 parent 0038e40 commit 5ea649e

File tree

21 files changed

+47
-79
lines changed

21 files changed

+47
-79
lines changed

.fatherrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

.fatherrc.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
cjs: { output: 'lib' },
5+
extraBabelPlugins: ['add-module-exports'],
6+
});

.github/dependabot.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lockfile=false

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
],
99
"scripts": {
1010
"start": "tsc -w",
11-
"build": "father-build",
11+
"build": "lerna run build --parallel",
1212
"---------": "",
1313
"test": "lerna run test",
1414
"test:coverage": "jest --coverage",
1515
"--------- ": "",
1616
"release": "multi-semantic-release",
1717
"--------- ": "",
18-
"lint": "yarn lint-eslint && yarn tsc",
18+
"lint": "npm run lint-eslint && npm run tsc",
1919
"tsc": "tsc -p tsconfig-check.json",
2020
"lint-eslint": "eslint --cache --fix --ext .js,.jsx,.ts,.tsx --format=pretty packages",
2121
"lint-staged": "lint-staged",
@@ -25,8 +25,8 @@
2525
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
2626
"--------- ": "",
2727
"clean": "lerna run clean && rm -rf es lib dist build coverage .umi .eslintcache apis",
28-
"postinstall": "yarn build",
29-
"reinstall": "yarn clean && lerna clean --yes && rm -rf node_modules && yarn"
28+
"postinstall": "npm run build",
29+
"reinstall": "npm run clean && lerna clean --yes && rm -rf node_modules && npm i"
3030
},
3131
"repository": {
3232
"type": "git",
@@ -43,28 +43,28 @@
4343
},
4444
"license": "MIT",
4545
"devDependencies": {
46-
"@commitlint/lint": "^12.0.0",
47-
"@types/jest": "^26.0.20",
48-
"@types/node": "^15.0.1",
49-
"@types/semantic-release": "^17.2.0",
46+
"@commitlint/lint": "^17",
47+
"@types/jest": "^29",
48+
"@types/node": "^16",
49+
"@types/semantic-release": "^17",
5050
"@types/sinon": "^10.0.0",
51-
"@umijs/fabric": "^2.5.6",
52-
"@umijs/test": "^3.3.9",
51+
"@umijs/max": "^4",
52+
"@umijs/test": "^4",
5353
"babel-plugin-add-module-exports": "^1.0.4",
5454
"commitlint": "^11.0.0",
5555
"commitlint-config-gitmoji": "^2.2.5-beta.1",
56-
"eslint": "^7.18.0",
57-
"father-build": "^1.19.1",
56+
"eslint": "^8",
57+
"father": "^4",
5858
"husky": "^4.3.8",
59-
"jest": "^26.6.3",
59+
"jest": "^29",
6060
"lerna": "^4.0.0",
6161
"lint-staged": "^10.5.3",
6262
"multi-semantic-release": "^2.6.0",
6363
"prettier": "^2.2.1",
6464
"semantic-release": "^19.0.5",
6565
"semantic-release-config-gitmoji": "^1.2.1",
66-
"ts-jest": "^26.4.4",
67-
"ts-node": "^9.1.1",
66+
"ts-jest": "^29",
67+
"ts-node": "^10",
6868
"typescript": "^4.1.3"
6969
}
7070
}

packages/changelog/.fatherrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/changelog/.fatherrc.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import config from '../../.fatherrc'
2+
3+
export default config

packages/changelog/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"lib"
88
],
99
"scripts": {
10-
"start": "father-build -w",
11-
"build": "father-build",
10+
"start": "father dev",
11+
"build": "father build",
1212
"test": "jest",
1313
"cov": "jest --coverage",
1414
"clean": "rm -rf es lib dist build coverage src/.umi* .eslintcache"

packages/commit-types/.fatherrc.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/commit-types/.fatherrc.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import config from '../../.fatherrc'
2+
3+
export default config

0 commit comments

Comments
 (0)