Skip to content

Commit 8ef31a2

Browse files
committed
Ensure that TypeScript finds the type definition files
1 parent a1ee911 commit 8ef31a2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
],
3737
"license": "MIT",
3838
"browserslist": ">1%, maintained node versions",
39-
"main": "dist/strophe.common.js",
39+
"main": "src/index.js",
40+
"types": "src/types/index.d.ts",
4041
"browser": "dist/strophe.umd.js",
4142
"module": "dist/strophe.esm.js",
4243
"unpkg": "dist/strophe.umd.min.js",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"declarationMap": true,
1616

1717
"rootDir": "./src",
18-
"outDir": "./dist/types/",
18+
"outDir": "./src/types/",
1919
"baseUrl": "./src/",
2020

2121
"esModuleInterop": true,

0 commit comments

Comments
 (0)