Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Commit fe76d3b

Browse files
committed
use realpath
1 parent 76813f5 commit fe76d3b

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

xxx-package-module-property.md

+15-8
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,21 @@ empty configuration entry.
246246
undefined, packagePath: undefined }_.
247247

248248
> **RESOLVE_FILE(filePath: String): String**
249-
> 1. If _filePath_ is a file, return _X_.
250-
> 1. If _"${filePath}.mjs"_ is a file, return _"${filePath}.mjs"_.
251-
> 1. If _"${filePath}.js"_ is a file, return _"${filePath}.js"_.
252-
> 1. If _"${filePath}.json"_ is a file, return _"${filePath}.json"_.
253-
> 1. If _"${filePath}.node"_ is a file, return _"${filePath}.node"_.
254-
> 1. If _"${filePath}/index.js"_ is a file, return _"${filePath}/index.js"_.
255-
> 1. If _"${filePath}/index.json"_ is a file, return _"${filePath}/index.json"_.
256-
> 1. If _"${filePath}/index.node"_ is a file, return _"${filePath}/index.node"_.
249+
> 1. If _filePath_ is a file, return the real path of _filePath_.
250+
> 1. If _"${filePath}.mjs"_ is a file, return return the real path of
251+
_"${filePath}.mjs"_.
252+
> 1. If _"${filePath}.js"_ is a file, return return the real path of
253+
_"${filePath}.js"_.
254+
> 1. If _"${filePath}.json"_ is a file, return return the real path of
255+
_"${filePath}.json"_.
256+
> 1. If _"${filePath}.node"_ is a file, return return the real path of
257+
_"${filePath}.node"_.
258+
> 1. If _"${filePath}/index.js"_ is a file, return return the real path of
259+
_"${filePath}/index.js"_.
260+
> 1. If _"${filePath}/index.json"_ is a file, return return the real path of
261+
_"${filePath}/index.json"_.
262+
> 1. If _"${filePath}/index.node"_ is a file, return return the real path of
263+
_"${filePath}/index.node"_.
257264
> 1. Return _undefined_.
258265
259266
> **NODE_MODULES_RESOLVE(name: String, parentPath: String): String**

0 commit comments

Comments
 (0)