(subModuleIndex int, withVersion bool)
| 519 | } |
| 520 | |
| 521 | func (ui *subModuleSelectUI) toSpecifier(subModuleIndex int, withVersion bool) string { |
| 522 | subModule := ui.subModules[subModuleIndex] |
| 523 | if subModule == "." { |
| 524 | return ui.mainImport.Specifier(withVersion) |
| 525 | } |
| 526 | return ui.mainImport.Specifier(withVersion) + "/" + subModule |
| 527 | } |
| 528 | |
| 529 | func validateExportPath(exportPath string) bool { |
| 530 | return strings.HasPrefix(exportPath, "./") && !strings.HasSuffix(exportPath, ".css") && !strings.HasSuffix(exportPath, ".json") && !strings.ContainsRune(exportPath, '*') |
no test coverage detected