From 4b08e6e892a8051d9e13ae90128ddfd0beca336e Mon Sep 17 00:00:00 2001 From: Kijin-Seija Date: Tue, 9 Apr 2024 14:55:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- tsconfig.json | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3487bbe..7317dad 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "dt-sql-parser-semantic-analyse-plugin", - "version": "0.0.1-alpha.1", + "version": "0.0.1-alpha.2", "description": "an dt-sql-parser plugin with semantic result", "type": "module", "files": [ "dist" ], "main": "./dist/lib/dt-sql-parser-semantic-analyse-plugin.js", + "types": "./dist/types/index.d.ts", "module": "./dist/es/index.js", "exports": { ".": { @@ -16,7 +17,6 @@ }, "scripts": { "dev": "vite", - "build-es": "tsc", "build": "tsc && vite build", "preview": "vite preview", "lint": "eslint . --fix" diff --git a/tsconfig.json b/tsconfig.json index 4872f27..7269e12 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,8 @@ "compilerOptions": { "rootDir": "./src/", "outDir": "./dist/es/", + "declaration": true, + "declarationDir": "./dist/types/", "target": "ES2020", "useDefineForClassFields": true, "module": "ESNext",