From 26b8af27737561639b0d29c4eb5fc3bce76e2eab Mon Sep 17 00:00:00 2001 From: Alan Thomas Date: Wed, 20 Sep 2023 03:50:21 +1000 Subject: [PATCH] Use path to types file instead of directory in package.json (#150) 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. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c86177af..297d4d1c 100644 --- a/package.json +++ b/package.json @@ -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" },