Skip to content

Commit 3b3aaa0

Browse files
tniessendanielleadams
authored andcommitted
doc: fix typo in ESM example
Refs: #37468 PR-URL: #40275 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Derek Lewis <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent f848553 commit 3b3aaa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/esm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ async function getPackageType(url) {
974974
// Compose a file path to a package.json in the same directory,
975975
// which may or may not exist
976976
const packagePath = resolvePath(dir, 'package.json');
977-
// Try to read the possibly non-existant package.json
977+
// Try to read the possibly nonexistent package.json
978978
const type = await readFile(packagePath, { encoding: 'utf8' })
979979
.then((filestring) => JSON.parse(filestring).type)
980980
.catch((err) => {

0 commit comments

Comments
 (0)