fix tsconfig to emit declaration files

This commit is contained in:
Yanzhen Yu 2022-02-22 11:13:57 +08:00
parent 5a4d58c44a
commit 28f556de09
4 changed files with 12 additions and 4 deletions

View File

@ -20,7 +20,9 @@
"noUnusedParameters": true,
"baseUrl": "./",
"jsx": "react-jsx",
"rootDir": "src"
"rootDir": "src",
"declaration": true,
"declarationDir": "lib"
},
"include": ["./src"]
}

View File

@ -6,7 +6,9 @@
"lib": ["es6"],
"composite": true,
"rootDir": "src",
"module": "ESNext"
"module": "ESNext",
"declaration": true,
"declarationDir": "lib"
},
"include": ["src/**/*.ts"],
"exclude": ["__tests__/**/*.ts"]

View File

@ -20,7 +20,9 @@
"noUnusedParameters": true,
"baseUrl": "./",
"jsx": "react-jsx",
"rootDir": "src"
"rootDir": "src",
"declaration": true,
"declarationDir": "lib"
},
"include": ["./src"]
}

View File

@ -20,7 +20,9 @@
"noUnusedParameters": true,
"baseUrl": "./",
"jsx": "react-jsx",
"rootDir": "src"
"rootDir": "src",
"declaration": true,
"declarationDir": "lib"
},
"include": ["./src"]
}