diff --git a/package.json b/package.json index 63c8f1b47..dd5db53b3 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,12 @@ "vendor", "types" ], - "exports": "./index.js", + "exports": { + ".": { + "import": "./index.js", + "types": "./types/scripting.d.ts" + } + }, "scripts": { "test": "ava", "start-server": "serve test/data/html/",