Skip to content

Commit 4bd8e0e

Browse files
tniessennodejs-github-bot
authored andcommitted
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 2a3a9b8 commit 4bd8e0e

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
@@ -979,7 +979,7 @@ async function getPackageType(url) {
979979
// Compose a file path to a package.json in the same directory,
980980
// which may or may not exist
981981
const packagePath = resolvePath(dir, 'package.json');
982-
// Try to read the possibly non-existant package.json
982+
// Try to read the possibly nonexistent package.json
983983
const type = await readFile(packagePath, { encoding: 'utf8' })
984984
.then((filestring) => JSON.parse(filestring).type)
985985
.catch((err) => {

0 commit comments

Comments
 (0)