diff --git a/src/__e2e__/publishE2E.test.ts b/src/__e2e__/publishE2E.test.ts index adb92618d..a3517eb40 100644 --- a/src/__e2e__/publishE2E.test.ts +++ b/src/__e2e__/publishE2E.test.ts @@ -642,7 +642,7 @@ describe('publish command (e2e)', () => { bump: true, generateChangelog: true, hooks: { - postpublish: (packagePath) => { + postpublish: packagePath => { const packageJsonPath = path.join(packagePath, 'package.json'); const packageJson = fs.readJSONSync(packageJsonPath); if (packageJson.afterPublish) { @@ -708,6 +708,7 @@ describe('publish command (e2e)', () => { package: '', changehint: 'Run "beachball change" to create a change file', type: null, + useConventionalCommits: false, fetch: false, disallowedChangeTypes: null, defaultNpmTag: 'latest', @@ -779,6 +780,7 @@ describe('publish command (e2e)', () => { package: '', changehint: 'Run "beachball change" to create a change file', type: null, + useConventionalCommits: false, fetch: true, disallowedChangeTypes: null, defaultNpmTag: 'latest', @@ -786,7 +788,7 @@ describe('publish command (e2e)', () => { bump: true, generateChangelog: true, dependentChangeType: null, - depth: 10 + depth: 10, }); const showResult = npm(['--registry', registry.getUrl(), 'show', 'foo', '--json']); @@ -801,5 +803,4 @@ describe('publish command (e2e)', () => { // no fetch when flag set to false expect(depthString).toEqual('--depth=10'); }); - }); diff --git a/src/changefile/conventionalCommits.ts b/src/changefile/conventionalCommits.ts index abc4a6f66..c15844603 100644 --- a/src/changefile/conventionalCommits.ts +++ b/src/changefile/conventionalCommits.ts @@ -6,7 +6,7 @@ import { ChangeType } from '../types/ChangeInfo'; * 3. breaking * 4. message */ -const COMMIT_RE = /([a-z]+)(?:\(([a-z\-]+)\))?(!)?: (.+)/; +const COMMIT_RE = /([a-z]+)(?:\(([a-z\-]+)\))?(!)?: (.+)/i; interface ConventionalCommit { type: string;