Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/internal/errors.js
Co-Authored-By: Geoffrey Booth <[email protected]>
  • Loading branch information
MylesBorins and GeoffreyBooth authored Apr 21, 2020
commit 8e04ec1866c464c920537d12943b94b25efdf01f
2 changes: 1 addition & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ E('ERR_INVALID_PACKAGE_TARGET',
} else if (key === '.') {
return `Invalid "exports" main target ${JSONStringify(target)} defined ` +
`in the package config ${pkgPath}${sep}package.json${relError ?
' - targets must start with "./"' : ''}`;
'; targets must start with "./"' : ''}`;
} else if (typeof target === 'string' && target !== '' &&
!StringPrototypeStartsWith(target, './')) {
return `Invalid "exports" target ${JSONStringify(target)} defined for '${
Expand Down