Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module: improve error for invalid package targets #32052

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
Update lib/internal/errors.js
Co-Authored-By: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com>
  • Loading branch information
MylesBorins and GeoffreyBooth authored Apr 21, 2020
commit 51de45b9a16b714536448e38e507b0e51b64a1b7
2 changes: 1 addition & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ E('ERR_INVALID_PACKAGE_TARGET',
} else {
return `Invalid "exports" main target ${target} defined in the ` +
`package config ${pkgPath} imported from ${base}${relError ?
' - targets must start with "./"' : ''}`;
'; targets must start with "./"' : ''}`;
}
} else if (key === '.') {
return `Invalid "exports" main target ${JSONStringify(target)} defined ` +
Expand Down