Skip to content

Commit 3b3aaa0

Browse files
tniessendanielleadams
authored andcommittedOct 12, 2021
doc: fix typo in ESM example
Refs: #37468 PR-URL: #40275 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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)
Please sign in to comment.