File tree Expand file tree Collapse file tree
packages/commitlint-config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { defineConfig } from 'father' ;
22
33export default defineConfig ( {
4- cjs : { output : 'lib' } ,
5- // extraBabelPlugins: ['add-module-exports'],
4+ cjs : { output : 'lib' , platform : 'browser' } ,
5+ extraBabelPlugins : [ 'add-module-exports' ] ,
66} ) ;
Original file line number Diff line number Diff line change 4545 "@types/sinon" : " ^10.0.0" ,
4646 "@umijs/max" : " ^4" ,
4747 "@umijs/test" : " ^4" ,
48+ "babel-plugin-add-module-exports" : " ^1" ,
4849 "commitlint" : " ^17" ,
4950 "commitlint-config-gitmoji" : " ^2" ,
5051 "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
3232or
3333
3434```
35- # use yarn
36- yarn add -D commitlint-config-gitmoji commitlint
35+ # use pnpm
36+ pnpm i -D commitlint-config-gitmoji commitlint
3737```
3838
3939### Config
4040
4141Add commitlint config for Gitmoji
4242
4343``` sh
44- echo " module.exports = {extends: ['gitmoji']};" > .commitlintrc .js
44+ echo " module.exports = {extends: ['gitmoji']};" > commitlint.config .js
4545```
4646
4747## Commit style
You can’t perform that action at this time.
0 commit comments