Skip to content

Commit

Permalink
refactor: update gi-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Jun 21, 2023
1 parent 7187475 commit 3ddbe55
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 2 additions & 4 deletions packages/gi-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"postpublish": "tnpm sync @antv/gi-cli"
},
"keywords": [],
"authors": [
"yang"
],
"authors": [],
"license": "MIT",
"files": [
"dist",
Expand All @@ -30,7 +28,7 @@
"@umijs/utils": "^4.0.29"
},
"devDependencies": {
"father": "^4.0.7"
"father": "^4.2.3"
},
"repository": {
"type": "git",
Expand Down
16 changes: 12 additions & 4 deletions packages/gi-cli/templates/.fatherrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
export default {
entry: './src/index.tsx',
esm: 'babel',
cjs: 'babel',
lessInBabelMode: false,
esm: {
input: 'src',
output: 'es',
platform: 'browser',
transformer: 'babel',
},
cjs: {
input: 'src',
output: 'lib',
platform: 'node',
transformer: 'esbuild',
},
};

0 comments on commit 3ddbe55

Please sign in to comment.