Skip to content

Commit ffa1610

Browse files
committed
fix: Resolve types with TypeScript 4.5
Our lovely TypeScript is finding every possible way to break things on every release. I cannot find any documentation on "export maps" behavior, except these issues microsoft/TypeScript#46860 microsoft/TypeScript#46334
1 parent fd6d3f4 commit ffa1610

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"version": "5.4.0",
44
"description": "Core of AdonisJS",
55
"exports": {
6-
".": "./build/providers/AppProvider.js",
6+
".": {
7+
"types": "./build/adonis-typings/index.d.ts",
8+
"require": "./build/providers/AppProvider.js"
9+
},
710
"./standalone": "./build/standalone.js",
811
"./Ignitor": "./build/src/Ignitor/index.js",
912
"./commands": "./build/commands/index.js",

0 commit comments

Comments
 (0)