From bfcab657837c7bdb16b7842533a019c614efcb95 Mon Sep 17 00:00:00 2001 From: Keegan Campbell Date: Thu, 6 Jul 2023 11:29:57 -0700 Subject: [PATCH] Import fixes --- scripts/generate-types.js | 4 ++-- scripts/update-package.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/generate-types.js b/scripts/generate-types.js index 5c5da088e..b494012e6 100644 --- a/scripts/generate-types.js +++ b/scripts/generate-types.js @@ -1,7 +1,7 @@ import { readdir, mkdir, rm, writeFile, copyFile } from "node:fs/promises"; import { basename } from "node:path"; -import prettier from "prettier"; +import * as prettier from "prettier"; import openapiTS from "openapi-typescript"; if (!process.env.OCTOKIT_OPENAPI_VERSION) { @@ -64,7 +64,7 @@ async function run() { packageName === "openapi-types" ? "" : `for ${name}` } -This package is continously updated based on [GitHub's OpenAPI specification](https://github.com/github/rest-api-description/) +This package is continously updated based on [GitHub's OpenAPI specification](https://github.com/github/rest-api-description/) ## Usage diff --git a/scripts/update-package.js b/scripts/update-package.js index 0916be05b..2cd05428c 100644 --- a/scripts/update-package.js +++ b/scripts/update-package.js @@ -1,5 +1,5 @@ import { writeFile, readdir, readFile } from "node:fs/promises"; -import prettier from "prettier"; +import * as prettier from "prettier"; if (!process.env.OCTOKIT_OPENAPI_VERSION) { throw new Error("OCTOKIT_OPENAPI_VERSION is not set");