Skip to content

Commit

Permalink
fix: restore CJS compat (#651)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
wolfy1339 authored Oct 3, 2024
1 parent 78173c7 commit d66a6b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"access": "public",
"provenance": true
},
"type": "module",
"description": "Shared TypeScript definitions for Octokit projects",
"dependencies": {
"@octokit/openapi-types": "^22.2.0"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"declaration": true,
"outDir": "pkg/dist-types",
"emitDeclarationOnly": true,
"sourceMap": true
"sourceMap": true,
"verbatimModuleSyntax": false
},
"include": [
"src/**/*"
Expand Down

0 comments on commit d66a6b9

Please sign in to comment.