From ad6de34aa26425392700de1742aa7b6764dc47e0 Mon Sep 17 00:00:00 2001 From: MinJieLiu Date: Mon, 3 Jan 2022 17:10:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20types=20=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 8 +++++--- tsconfig.json | 10 +++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 09bb77b..bded0fc 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "immot", - "version": "0.2.0", + "version": "0.2.1", "type": "module", - "description": "", + "description": "Create a new copy without changing the original data.", "exports": "./dist/immot.modern.js", "source": "src/immot.ts", "main": "./dist/immot.cjs", "module": "./dist/immot.module.js", "unpkg": "./dist/immot.umd.js", + "types": "./dist/immot.d.ts", "scripts": { "build": "microbundle", "dev": "microbundle watch", @@ -37,6 +38,7 @@ }, "files": [ "dist", - "src" + "src", + "tests" ] } diff --git a/tsconfig.json b/tsconfig.json index 8e6f464..198e48e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,7 @@ { "compilerOptions": { "target": "ESNext", - "lib": [ - "ESNext", - "dom" - ], + "lib": ["ESNext", "dom"], "skipLibCheck": true, "strictNullChecks": true, "esModuleInterop": true, @@ -21,7 +18,6 @@ "suppressImplicitAnyIndexErrors": true, "isolatedModules": true }, - "exclude": [ - "node_modules" - ] + "include": ["src"], + "exclude": ["node_modules"] }