From ffa16107e3efd09ffef71058c1ddb4cebbdf3660 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Sun, 21 Nov 2021 14:42:43 +0530 Subject: [PATCH] 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 https://github.com/microsoft/TypeScript/issues/46860 https://github.com/microsoft/TypeScript/issues/46334 --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9265de60..15593b5b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,10 @@ "version": "5.4.0", "description": "Core of AdonisJS", "exports": { - ".": "./build/providers/AppProvider.js", + ".": { + "types": "./build/adonis-typings/index.d.ts", + "require": "./build/providers/AppProvider.js" + }, "./standalone": "./build/standalone.js", "./Ignitor": "./build/src/Ignitor/index.js", "./commands": "./build/commands/index.js",