fix: 添加types
This commit is contained in:
parent
d7cbadf1db
commit
4b08e6e892
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "dt-sql-parser-semantic-analyse-plugin",
|
"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",
|
"description": "an dt-sql-parser plugin with semantic result",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"main": "./dist/lib/dt-sql-parser-semantic-analyse-plugin.js",
|
"main": "./dist/lib/dt-sql-parser-semantic-analyse-plugin.js",
|
||||||
|
"types": "./dist/types/index.d.ts",
|
||||||
"module": "./dist/es/index.js",
|
"module": "./dist/es/index.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
@ -16,7 +17,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build-es": "tsc",
|
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"lint": "eslint . --fix"
|
"lint": "eslint . --fix"
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src/",
|
"rootDir": "./src/",
|
||||||
"outDir": "./dist/es/",
|
"outDir": "./dist/es/",
|
||||||
|
"declaration": true,
|
||||||
|
"declarationDir": "./dist/types/",
|
||||||
"target": "ES2020",
|
"target": "ES2020",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
|
Loading…
Reference in New Issue
Block a user