From fdc9bb69bd6103f13afc5079b3cb9e9305bca599 Mon Sep 17 00:00:00 2001 From: Wojciech Kudyniuk <79920100+kudyniuk@users.noreply.github.com> Date: Wed, 4 Oct 2023 17:37:35 +0200 Subject: [PATCH] fix: TET-135 semantic release (#75) * fix: TET-135 export tetrisly from package * fix: TET-135 export tetrisly from package --- commitlint.config.cjs | 4 ++-- src/index.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commitlint.config.cjs b/commitlint.config.cjs index 5dd4fc49..0b300245 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -3,12 +3,12 @@ module.exports = { plugins: [ { rules: { - 'jira-ticket': ({ subject }) => { + 'jira-ticket': ({ subject, scope }) => { const shouldContainJiraTicket = /TET-[0-9]{2,}/; const orNoJira = /NO-JIRA/; const isReleaseMessage = /release/ return [ - shouldContainJiraTicket.test(subject) || orNoJira.test(subject) || isReleaseMessage.test(subject), + shouldContainJiraTicket.test(subject) || orNoJira.test(subject) || isReleaseMessage.test(scope), `Your subject should contain Jira ticket (TET-XX) or NO-JIRA`, ]; }, diff --git a/src/index.ts b/src/index.ts index 249b5738..f44a5d0a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,3 +22,4 @@ export * from './components/SocialButton'; export * from './components/StatusDot'; export * from './components/TextInput'; export * from './components/Toast'; +export * from './tetrisly';