From 189da3826de4a90ddcad0d0487bf985da6156717 Mon Sep 17 00:00:00 2001 From: sinchang Date: Thu, 23 Mar 2023 12:11:54 +0800 Subject: [PATCH] fix: fix types output path --- package.json | 5 +++-- tsconfig.json | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c7b7447..894a0c7 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,11 @@ "unpkg": "./dist/qrcodeParser.umd.js", "jsdelivr": "./dist/qrcodeParser.umd.js", "module": "./dist/qrcodeParser.es.js", - "types": "./dist/src/index.d.ts", + "types": "./dist/types/index.d.ts", "type": "module", "exports": { ".": { - "types": "./dist/src/index.d.ts", + "types": "./dist/types/index.d.ts", "default": "./dist/qrcodeParser.modern.js" } }, @@ -27,6 +27,7 @@ "lint": "eslint \"{src,test,example}/**/*.ts\"", "example": "vite dev --host --port 8000", "build:example": "vite build", + "build:types": "tsc --allowJs -d --emitDeclarationOnly --declarationDir ./dist/types --removeComments ./src/index.ts", "build": "microbundle && npm run build:umd", "build:umd": "microbundle -f umd --external none", "test": "playwright test" diff --git a/tsconfig.json b/tsconfig.json index b30e87f..d5706ea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,5 @@ }, "include": [ "./src", - "./test/**/*.ts" ] -} \ No newline at end of file +}