Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asmundg committed May 19, 2022
1 parent a0bb896 commit 0de404a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/__e2e__/publishE2E.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -779,14 +780,15 @@ describe('publish command (e2e)', () => {
package: '',
changehint: 'Run "beachball change" to create a change file',
type: null,
useConventionalCommits: false,
fetch: true,
disallowedChangeTypes: null,
defaultNpmTag: 'latest',
retries: 3,
bump: true,
generateChangelog: true,
dependentChangeType: null,
depth: 10
depth: 10,
});

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

});
2 changes: 1 addition & 1 deletion src/changefile/conventionalCommits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0de404a

Please sign in to comment.