Skip to content

Commit

Permalink
Create types for submodule from @types (close #225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jan 4, 2022
1 parent 35a8a49 commit b8a0932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build-npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ func (task *BuildTask) transformDTS(esm *ESM) {
var dts string
if esm.Types != "" || esm.Typings != "" {
dts = toTypesPath(task.wd, *esm.NpmPackage, submodule)
} else if !strings.HasPrefix(name, "@types/") && submodule == "" {
} else if !strings.HasPrefix(name, "@types/") {
versions := []string{"latest"}
versionParts := strings.Split(task.Pkg.Version, ".")
if len(versionParts) > 2 {
Expand Down

0 comments on commit b8a0932

Please sign in to comment.