Skip to content

Commit ffdb301

Browse files
committed
We need to specify types in our package.json to use synt with TS.
Forgot this. Right now the module mapping will not be picked up properly by typescript.
1 parent fe352f0 commit ffdb301

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"type": "git",
88
"url": "git://github.com/brentlintner/synt.git"
99
},
10+
"main": "lib/index.js",
11+
"types": "src/@types/index.d.ts",
1012
"bin": {
1113
"synt": "bin/synt"
1214
},
@@ -38,7 +40,6 @@
3840
"url": "https://github.com/brentlintner/synt/issues"
3941
},
4042
"homepage": "https://github.com/brentlintner/synt",
41-
"main": "lib/index.js",
4243
"scripts": {
4344
"compile": "tsc",
4445
"clean": "rm -rf {.nyc_output,coverage,lib} && git checkout -- lib",

0 commit comments

Comments
 (0)