Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99fb6d4 commit 1274a25Copy full SHA for 1274a25
doc/api/modules.md
@@ -197,13 +197,13 @@ LOAD_NODE_MODULES(X, START)
197
NODE_MODULES_PATHS(START)
198
1. let PARTS = path split(START)
199
2. let I = count of PARTS - 1
200
-3. let DIRS = [GLOBAL_FOLDERS]
+3. let DIRS = []
201
4. while I >= 0,
202
a. if PARTS[I] = "node_modules" CONTINUE
203
b. DIR = path join(PARTS[0 .. I] + "node_modules")
204
- c. DIRS = DIRS + DIR
+ c. DIRS = DIR + DIRS
205
d. let I = I - 1
206
-5. return DIRS
+5. return DIRS + GLOBAL_FOLDERS
207
208
LOAD_PACKAGE_IMPORTS(X, DIR)
209
1. Find the closest package scope SCOPE to DIR.
0 commit comments