Skip to content

Commit

Permalink
Use path to types file instead of directory in package.json (#150)
Browse files Browse the repository at this point in the history
This is apparently what is specified in the TS documentation: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#including-declarations-in-your-npm-package

VSCode Intellisense can't cope with the use of a directory here and refuses to read the types file.
  • Loading branch information
atlight authored Sep 19, 2023
1 parent fd45a2c commit 26b8af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"gtfs-import": "bin/gtfs-import.js",
"gtfsrealtime-update": "bin/gtfsrealtime-update.js"
},
"types": "@types",
"types": "@types/index.d.ts",
"scripts": {
"test": "NODE_ENV=test mocha ./test/mocha/**/*.js --timeout 2000"
},
Expand Down

0 comments on commit 26b8af2

Please sign in to comment.