We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a4de2e commit cb4d8ceCopy full SHA for cb4d8ce
lib/internal/errors.js
@@ -1121,8 +1121,7 @@ E('ERR_INVALID_PACKAGE_TARGET',
1121
return`Invalid "exports" main target ${JSONStringify(target)} defined `+
1122
`in the package config ${pkgPath}${sep}package.json${relError ?
1123
' targets must start with "./"' : ''}`;
1124
-}elseif(typeoftarget==='string'&&target!==''&&
1125
-!StringPrototypeStartsWith(target,'./')){
+}elseif(relError){
1126
return`Invalid "exports" target ${JSONStringify(target)} defined for '${
1127
StringPrototypeSlice(key,0,-subpath.length||key.length)}' in the `+
1128
`package config ${pkgPath}${sep}package.json; `+
0 commit comments