Skip to content

Commit

Permalink
build: upgrade father to 4.0 (#628)
Browse files Browse the repository at this point in the history
* build: upgrade father to 4.0

* ci: upgrade node versions
  • Loading branch information
PeachScript authored Feb 9, 2023
1 parent 8efa0aa commit 0e08ea6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@

export default {
target: 'node',
cjs: {
type: 'babel',
}
cjs: { output: 'lib' }
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [10.x, 12.x, 14.x]
node_version: [14.x, 16.x, 18.x]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
},
"main": "lib/index.js",
"scripts": {
"build": "father-build",
"build": "father build",
"test": "umi-test --coverage",
"debug": "umi-test",
"lint": "eslint --ext .js src",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"prepack": "npm run build",
"prepublishOnly": "npm run build && np --no-cleanup --yolo --no-publish --any-branch"
"prepublishOnly": "npm run build && father doctor && np --no-cleanup --yolo --no-publish --any-branch"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -45,7 +45,7 @@
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prettier": "^3.1.3",
"father-build": "^1.22.1",
"father": "^4.0.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.8",
"material-ui": "^0.20.2",
Expand Down

0 comments on commit 0e08ea6

Please sign in to comment.