Skip to content

Commit

Permalink
build: fixup generate-types script
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Feb 11, 2024
1 parent a0a419d commit 787cfaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"build": "node scripts/build.mjs && tsc -p tsconfig.json",
"coverage": "jest --coverage && open coverage/lcov-report/index.html",
"generate-types": "ts-node --transpile-only scripts/generate-types.ts",
"generate-types": "node --loader=ts-node/esm scripts/generate-types.ts",
"lint": "prettier --check 'src/**/*.{ts,json}' 'scripts/**/*' 'test/**/*.ts' README.md package.json",
"lint:fix": "prettier --write 'src/**/*.{ts,json}' 'scripts/**/*' 'test/**/*.ts' README.md package.json",
"pretest": "npm run -s lint",
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as fs from "node:fs";
import type { OpenAPI3, OperationObject, PathItemObject } from "./types.js";
import { format } from "prettier";

const schema = (await import("@wolfy1339/openapi-webhooks")).schemas[
const schema = (await import("@wolfy1339/openapi-webhooks")).default.schemas[
"api.github.com"
] as OpenAPI3;

Expand Down

0 comments on commit 787cfaa

Please sign in to comment.