fix: 添加types

This commit is contained in:
Kijin-Seija 2024-04-09 14:55:33 +08:00
parent d7cbadf1db
commit 4b08e6e892
2 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -2,6 +2,8 @@
"compilerOptions": {
"rootDir": "./src/",
"outDir": "./dist/es/",
"declaration": true,
"declarationDir": "./dist/types/",
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",