}
function isPluginHomepage (value: string) {
- return isUrlValid(value)
+ return exists(value) && (!value || isUrlValid(value))
+}
+
+function isPluginBugs (value: string) {
+ return exists(value) && (!value || isUrlValid(value))
}
function areStaticDirectoriesValid (staticDirs: any) {
isPluginEngineValid(packageJSON.engine) &&
isPluginHomepage(packageJSON.homepage) &&
exists(packageJSON.author) &&
- isUrlValid(packageJSON.bugs) &&
+ isPluginBugs(packageJSON.bugs) &&
(pluginType === PluginType.THEME || isSafePath(packageJSON.library)) &&
areStaticDirectoriesValid(packageJSON.staticDirs) &&
areCSSPathsValid(packageJSON.css) &&