import type { ReleaseRule } from '../type' ; import type { PluginSpec } from 'semantic-release' ; param releaseRules const commitAnalyzer = ( releaseRules = [ ] ) : PluginSpec => [ '@semantic-release/commit-analyzer' , { config : 'conventional-changelog-gitmoji-config' , releaseRules : [ { type : 'style' , release : 'patch' } , { type : 'build' , release : 'patch' } , ] . concat ( releaseRules ) , } , ] ; export default commitAnalyzer ;