Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3b3aaa0

Browse filesBrowse files
tniessendanielleadams
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 f848553 commit 3b3aaa0
Copy full SHA for 3b3aaa0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/esm.md‎

Copy file name to clipboardExpand all lines: doc/api/esm.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.