doc: fix spelling mistake
PR-URL: https://github.com/nodejs/node/pull/51454 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
c25878d370
commit
ee5cfcb5f7
@ -822,7 +822,7 @@ async function getPackageType(url) {
|
||||
.catch((err) => {
|
||||
if (err?.code !== 'ENOENT') console.error(err);
|
||||
});
|
||||
// Ff package.json existed and contained a `type` field with a value, voila
|
||||
// If package.json existed and contained a `type` field with a value, voilà
|
||||
if (type) return type;
|
||||
// Otherwise, (if not at the root) continue checking the next directory up
|
||||
// If at the root, stop and return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user