Skip to content

Commit

Permalink
refactor: Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Jul 18, 2024
1 parent 54b3237 commit 54a095f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 \[(?<repo>.*?)#(?<ticketNr>[0-9]+)\]/g)
.exec(line)

Expand All @@ -17,4 +18,4 @@ export const getTicketNrFromLine = (options: NotifyChangelogOptions, line: strin
}

return undefined
}
}
3 changes: 0 additions & 3 deletions packages/github-pages/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs"
},
"files": [],
"include": [],
"references": [
Expand Down
7 changes: 4 additions & 3 deletions packages/github-pages/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -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"]
}
9 changes: 8 additions & 1 deletion packages/github-pages/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}

0 comments on commit 54a095f

Please sign in to comment.