diff --git a/.github/workflows/test-claude.lock.yml b/.github/workflows/test-claude.lock.yml index 9a32a38a34..703abbee5c 100644 --- a/.github/workflows/test-claude.lock.yml +++ b/.github/workflows/test-claude.lock.yml @@ -657,7 +657,7 @@ jobs: }); console.log('Added comment to parent issue #' + parentIssueNumber); } catch (error) { - console.log('Warning: Could not add comment to parent issue:', error.message); + console.log('Warning: Could not add comment to parent issue:', error instanceof Error ? error.message : String(error)); } } diff --git a/package-lock.json b/package-lock.json index 65c1a3c0b4..8ec282e9ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "gh-aw-copilots", + "name": "gh-aw", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/pkg/workflow/js/create_issue.cjs b/pkg/workflow/js/create_issue.cjs index ce0dece195..0998f7fa13 100644 --- a/pkg/workflow/js/create_issue.cjs +++ b/pkg/workflow/js/create_issue.cjs @@ -98,7 +98,7 @@ async function main() { }); console.log('Added comment to parent issue #' + parentIssueNumber); } catch (error) { - console.log('Warning: Could not add comment to parent issue:', error.message); + console.log('Warning: Could not add comment to parent issue:', error instanceof Error ? error.message : String(error)); } } diff --git a/tsconfig.json b/tsconfig.json index 9f2be05c62..7c2d22db8e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,12 +3,13 @@ "target": "es2022", "module": "es2022", "lib": ["es2022"], + "types": ["node"], "allowJs": true, "checkJs": true, "declaration": false, "outDir": "./dist/js", "rootDir": "./pkg/workflow/js", - "strict": false, + "strict": true, "noImplicitAny": true, "strictNullChecks": true, "strictFunctionTypes": false, @@ -31,10 +32,10 @@ "typeRoots": ["./node_modules/@types", "./pkg/workflow/js/types"] }, "include": [ - "pkg/workflow/js/**/*.js", - "pkg/workflow/js/**/*.cjs", - "pkg/workflow/js/**/*.ts", - "pkg/workflow/js/**/*.d.ts" + "pkg/workflow/js/create_comment.cjs", + "pkg/workflow/js/create_issue.cjs", + "pkg/workflow/js/create_pull_request.cjs", + "pkg/workflow/js/types/*.d.ts" ], "exclude": [ "node_modules",