From 54a095f7f4bc7afb3dc3a9f689187ac691750da1 Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Thu, 18 Jul 2024 11:00:18 +0200 Subject: [PATCH] refactor: Misc --- .../src/shared/get-ticket-nr-from-line.ts | 3 ++- packages/github-pages/tsconfig.json | 3 --- packages/github-pages/tsconfig.lib.json | 7 ++++--- packages/github-pages/tsconfig.spec.json | 9 ++++++++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/packages/changelog-notify/src/shared/get-ticket-nr-from-line.ts b/packages/changelog-notify/src/shared/get-ticket-nr-from-line.ts index 246b1b75..6613bc09 100644 --- a/packages/changelog-notify/src/shared/get-ticket-nr-from-line.ts +++ b/packages/changelog-notify/src/shared/get-ticket-nr-from-line.ts @@ -6,6 +6,7 @@ export interface TicketInfo { } export const getTicketNrFromLine = (options: NotifyChangelogOptions, line: string): TicketInfo | undefined => { + // @ts-expect-error somehow now errors? const matches = new RegExp(/closes \[(?.*?)#(?[0-9]+)\]/g) .exec(line) @@ -17,4 +18,4 @@ export const getTicketNrFromLine = (options: NotifyChangelogOptions, line: strin } return undefined -} \ No newline at end of file +} diff --git a/packages/github-pages/tsconfig.json b/packages/github-pages/tsconfig.json index 19b9eece..62ebbd94 100644 --- a/packages/github-pages/tsconfig.json +++ b/packages/github-pages/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "compilerOptions": { - "module": "commonjs" - }, "files": [], "include": [], "references": [ diff --git a/packages/github-pages/tsconfig.lib.json b/packages/github-pages/tsconfig.lib.json index e85ef50f..3ce6be94 100644 --- a/packages/github-pages/tsconfig.lib.json +++ b/packages/github-pages/tsconfig.lib.json @@ -1,10 +1,11 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "module": "commonjs", "outDir": "../../dist/out-tsc", "declaration": true, - "types": [] + "types": ["node"] }, - "include": ["**/*.ts"], - "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"] + "exclude": ["**/*.spec.ts", "jest.config.ts"], + "include": ["**/*.ts"] } diff --git a/packages/github-pages/tsconfig.spec.json b/packages/github-pages/tsconfig.spec.json index 546f1287..831ab648 100644 --- a/packages/github-pages/tsconfig.spec.json +++ b/packages/github-pages/tsconfig.spec.json @@ -5,5 +5,12 @@ "module": "commonjs", "types": ["jest", "node"] }, - "include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"] + "include": [ + "**/*.spec.ts", + "**/*.spec.tsx", + "**/*.spec.js", + "**/*.spec.jsx", + "**/*.d.ts", + "jest.config.ts" + ] }