diff --git a/.fatherrc-next.ts b/.fatherrc-next.ts deleted file mode 100644 index 54d118a0..00000000 --- a/.fatherrc-next.ts +++ /dev/null @@ -1,5 +0,0 @@ - -export default { - platform: 'node', - formats: ['cjs'], -} diff --git a/.fatherrc.ts b/.fatherrc.ts new file mode 100644 index 00000000..3009d3bb --- /dev/null +++ b/.fatherrc.ts @@ -0,0 +1,7 @@ + +export default { + target: 'node', + cjs: { + type: 'babel', + } +} diff --git a/.gitignore b/.gitignore index b5e0efb0..1d157aa5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ /*.log /*.log.* /yarn.lock +/pnpm-lock.yaml diff --git a/package.json b/package.json index 920b7d36..eac2e76e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "main": "lib/index.js", "scripts": { - "build": "father-next", + "build": "father-build", "test": "umi-test --coverage", "debug": "umi-test", "lint": "eslint --ext .js src", @@ -45,7 +45,7 @@ "eslint-config-prettier": "^6.11.0", "eslint-plugin-import": "^2.20.2", "eslint-plugin-prettier": "^3.1.3", - "father-next": "^3.0.0-alpha.3", + "father-build": "^1.21.2", "husky": "^4.2.5", "lint-staged": "^10.2.8", "material-ui": "^0.20.2",