Add typings field for DtsResolver
#KT-33549 fixed
This commit is contained in:
+2
-1
@@ -11,7 +11,8 @@ import java.io.File
|
|||||||
|
|
||||||
class DtsResolver(val npmProject: NpmProject) {
|
class DtsResolver(val npmProject: NpmProject) {
|
||||||
private val typeModules = npmProject.modules.copy(
|
private val typeModules = npmProject.modules.copy(
|
||||||
packageJsonEntries = listOf("types"),
|
// https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
|
||||||
|
packageJsonEntries = listOf("types", "typings"),
|
||||||
indexFileSuffixes = listOf(".d.ts")
|
indexFileSuffixes = listOf(".d.ts")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user