From ae6ee6f9c71218e0bf6c7a22283dbe9d725e61f0 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 11 Jan 2022 18:01:44 +0000 Subject: [PATCH] fix dist typings path * use workaround from https://github.com/developit/microbundle/issues/854#issuecomment-940485331 --- package.json | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8bebd665..92554ce7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "require": "./dist/lib.js", "default": "./dist/lib.modern.js" }, - "typings": "./dist/src/index.d.ts", + "types": "./dist/src/index.d.ts", "scripts": { "start": "npm run clean && npm run build:metadata && tsc -w", "build": "npm run clean && npm run build:metadata && microbundle build --format modern,esm,cjs,umd --compress --tsconfig tsconfig.json", diff --git a/tsconfig.json b/tsconfig.json index a21a7fb1..179292b1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,8 @@ "experimentalDecorators": true, "preserveConstEnums": true, "outDir": "./dist/", - "sourceMap": true + "sourceMap": true, + "declarationDir": "./dist/" }, "include": ["src/**/*", "test/**/*"] }