Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed May 27, 2024
1 parent d6cf55e commit f552f37
Show file tree
Hide file tree
Showing 7 changed files with 440 additions and 598 deletions.
1,018 changes: 426 additions & 592 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"bundle": "npm run format:write && npm run package",
"codegen": "npx graphql-codegen --config src/codegen.ts",
"codegen": "NODE_OPTIONS=\"--import ./register.mjs\" npx graphql-codegen-esm --config src/codegen.ts",
"format:write": "prettier --write **/*.ts",
"format:check": "prettier --check **/*.ts",
"lint": "npm run codegen && npx eslint . -c .github/linters/.eslintrc.yml",
Expand Down Expand Up @@ -78,14 +78,14 @@
"@graphql-codegen/typescript-document-nodes": "4.0.7",
"@graphql-codegen/typescript-operations": "^4.2.0",
"@graphql-codegen/typescript-resolvers": "4.1.0",
"@octokit/graphql-schema": "^14.58.0",
"@octokit/graphql-schema": "^15.18.0",
"@octokit/types": "^13.5.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.12",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0",
"eslint-plugin-github": "^4.10.2",
"eslint-plugin-github": "^5.0.0-2",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-jsonc": "^2.15.1",
"eslint-plugin-prettier": "^5.1.3",
Expand Down
7 changes: 7 additions & 0 deletions register.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// FIXME: https://github.com/dotansimha/graphql-code-generator-community/issues/225
// FIXME: https://github.com/TypeStrong/ts-node/issues/1909#issuecomment-2089155346

import { register } from 'node:module'
import { pathToFileURL } from 'node:url'

register('ts-node/esm', pathToFileURL('./'))
3 changes: 2 additions & 1 deletion src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import type { CodegenConfig } from '@graphql-codegen/cli'

const config: CodegenConfig = {
overwrite: true,
schema: 'src/github-graphql-schema-loader.ts',
schema: 'src/github-graphql-schema-loader.mts',
documents: ['src/mutations/*.graphql', 'src/queries/*.graphql'],
emitLegacyCommonJSImports: false,
generates: {
'src/codegen/github-graphql-schema.ts': {
plugins: ['typescript', 'typescript-resolvers', 'typescript-document-nodes', 'typescript-operations'],
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class RerunWorkflowAction {
async rerunWorkflowsForPullRequest(
octokit: Octokit,
number: number,
rerunCondition: RerunCondition,
rerunCondition: RerunCondition
): Promise<void> {
const pullRequest = await getPullRequest(octokit, number)

Expand Down
2 changes: 1 addition & 1 deletion src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export function get(): Input {
triggerLabels = triggerLabels.filter(l => l !== continuousLabel)
}

return { token, onceLabel, continuousLabel, triggerLabels, failedJobsOnly, workflow }
return { token, onceLabel, continuousLabel, triggerLabels, failedJobsOnly, workflow }
}

0 comments on commit f552f37

Please sign in to comment.