Skip to content

Commit 0de404a

Browse files
committed
Minor fixes
1 parent a0bb896 commit 0de404a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/__e2e__/publishE2E.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ describe('publish command (e2e)', () => {
642642
bump: true,
643643
generateChangelog: true,
644644
hooks: {
645-
postpublish: (packagePath) => {
645+
postpublish: packagePath => {
646646
const packageJsonPath = path.join(packagePath, 'package.json');
647647
const packageJson = fs.readJSONSync(packageJsonPath);
648648
if (packageJson.afterPublish) {
@@ -708,6 +708,7 @@ describe('publish command (e2e)', () => {
708708
package: '',
709709
changehint: 'Run "beachball change" to create a change file',
710710
type: null,
711+
useConventionalCommits: false,
711712
fetch: false,
712713
disallowedChangeTypes: null,
713714
defaultNpmTag: 'latest',
@@ -779,14 +780,15 @@ describe('publish command (e2e)', () => {
779780
package: '',
780781
changehint: 'Run "beachball change" to create a change file',
781782
type: null,
783+
useConventionalCommits: false,
782784
fetch: true,
783785
disallowedChangeTypes: null,
784786
defaultNpmTag: 'latest',
785787
retries: 3,
786788
bump: true,
787789
generateChangelog: true,
788790
dependentChangeType: null,
789-
depth: 10
791+
depth: 10,
790792
});
791793

792794
const showResult = npm(['--registry', registry.getUrl(), 'show', 'foo', '--json']);
@@ -801,5 +803,4 @@ describe('publish command (e2e)', () => {
801803
// no fetch when flag set to false
802804
expect(depthString).toEqual('--depth=10');
803805
});
804-
805806
});

src/changefile/conventionalCommits.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ChangeType } from '../types/ChangeInfo';
66
* 3. breaking
77
* 4. message
88
*/
9-
const COMMIT_RE = /([a-z]+)(?:\(([a-z\-]+)\))?(!)?: (.+)/;
9+
const COMMIT_RE = /([a-z]+)(?:\(([a-z\-]+)\))?(!)?: (.+)/i;
1010

1111
interface ConventionalCommit {
1212
type: string;

0 commit comments

Comments
 (0)