Skip to content

Commit

Permalink
Fix typos in main entry resolution. [closes #770]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Mar 28, 2019
1 parent df83a8b commit f939956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/env/get-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function init() {
setDeferred(flags, "exposeInternals", () => matches(commandArgs, /^--expose[-_]internals$/))
setDeferred(flags, "inspectBrk", () => matches(commandArgs, /^--(?:debug|inspect)-brk(?:=.+)?$/))
setDeferred(flags, "interactive", () => matches(commandArgs, /^(?:--interactive|-i)$/))
setDeferred(flags, "pendingDeprecation", matches(commandArgs, "--pending-deprecation"))
setDeferred(flags, "pendingDeprecation", () => matches(commandArgs, "--pending-deprecation"))
setDeferred(flags, "preserveSymlinks", () => matches(commandArgs, "--preserve-symlinks"))
setDeferred(flags, "preserveSymlinksMain", () => matches(commandArgs, "--preserve-symlinks-main"))
setDeferred(flags, "print", () => matches(commandArgs, /^(?:--print|-pe?)$/))
Expand Down
2 changes: 2 additions & 0 deletions src/module/internal/find-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ function tryPackage(request, dirPath, fields, exts, isMain) {
"DEP0128"
)
}

return foundPath
}

export default findPath

0 comments on commit f939956

Please sign in to comment.