File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
packages/commitlint-config Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'father' ;
2
2
3
3
export default defineConfig ( {
4
- cjs : { output : 'lib' } ,
5
- // extraBabelPlugins: ['add-module-exports'],
4
+ cjs : { output : 'lib' , platform : 'browser' } ,
5
+ extraBabelPlugins : [ 'add-module-exports' ] ,
6
6
} ) ;
Original file line number Diff line number Diff line change 45
45
"@types/sinon" : " ^10.0.0" ,
46
46
"@umijs/max" : " ^4" ,
47
47
"@umijs/test" : " ^4" ,
48
+ "babel-plugin-add-module-exports" : " ^1" ,
48
49
"commitlint" : " ^17" ,
49
50
"commitlint-config-gitmoji" : " ^2" ,
50
51
"conventional-changelog-gitmoji-config" : " ^1" ,
Original file line number Diff line number Diff line change @@ -32,16 +32,16 @@ npm i -D commitlint-config-gitmoji commitlint
32
32
or
33
33
34
34
```
35
- # use yarn
36
- yarn add -D commitlint-config-gitmoji commitlint
35
+ # use pnpm
36
+ pnpm i -D commitlint-config-gitmoji commitlint
37
37
```
38
38
39
39
### Config
40
40
41
41
Add commitlint config for Gitmoji
42
42
43
43
``` sh
44
- echo " module.exports = {extends: ['gitmoji']};" > .commitlintrc .js
44
+ echo " module.exports = {extends: ['gitmoji']};" > commitlint.config .js
45
45
```
46
46
47
47
## Commit style
You can’t perform that action at this time.
0 commit comments