From cecdbc8a550a92bc547a52254daeadad6e910d88 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Wed, 2 Oct 2024 20:22:38 -0400 Subject: [PATCH] fix: restore CJS compat Compatibility was accidentally removed from this package in https://github.com/octokit/types.ts/commit/a3a96043f3efc81a9ea3601bc8261e2877de94dd Typescript falsely reports that this package isn't compatible with CJS when it is. This package contains no runtime code and only types. This is due to adding `"type": "module"` to the `package.json` in order to fix some type issues introduced by upgrading `@octokit/tsconfig` --- package.json | 1 - tsconfig.json | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b25b5e1af..ecdf138df 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "access": "public", "provenance": true }, - "type": "module", "description": "Shared TypeScript definitions for Octokit projects", "dependencies": { "@octokit/openapi-types": "^22.2.0" diff --git a/tsconfig.json b/tsconfig.json index 8b0764699..b8bf46ad8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,8 @@ "declaration": true, "outDir": "pkg/dist-types", "emitDeclarationOnly": true, - "sourceMap": true + "sourceMap": true, + "verbatimModuleSyntax": false }, "include": [ "src/**/*"