Skip to content

Commit d66a6b9

Browse files
authored
fix: restore CJS compat (#651)
Compatibility was accidentally removed from this package in a3a9604 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`
1 parent 78173c7 commit d66a6b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"access": "public",
66
"provenance": true
77
},
8-
"type": "module",
98
"description": "Shared TypeScript definitions for Octokit projects",
109
"dependencies": {
1110
"@octokit/openapi-types": "^22.2.0"

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"declaration": true,
66
"outDir": "pkg/dist-types",
77
"emitDeclarationOnly": true,
8-
"sourceMap": true
8+
"sourceMap": true,
9+
"verbatimModuleSyntax": false
910
},
1011
"include": [
1112
"src/**/*"

0 commit comments

Comments
 (0)