Skip to content

Commit

Permalink
fix: Type exports now should work for any importing TS module
Browse files Browse the repository at this point in the history
  • Loading branch information
SirWrexes committed Nov 6, 2023
1 parent f6be4ba commit b6d8e29
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 0 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,7 @@
"bugs": {
"url": "https://github.com/BHC-IT/stronk-types/issues"
},
"type": "module",
"exports": {
".": {
"types": "./types/index.d.ts",
"default": "./types/index.d.ts"
}
},
"types": "./types/index.d.ts",
"directories": {
"test": "tests"
},
"dependencies": {
"@type-challenges/utils": "^0.1.1"
},
Expand Down
13 changes: 13 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/recommended/tsconfig.json",
"noErrorTruncation": true,
"preserveWatchOutput": true,
"include": [
"./types/**/*.ts"
],
"compilerOptions": {
"noEmit": true,
"noEmitOnError": true,
}
}

0 comments on commit b6d8e29

Please sign in to comment.