Make list of possible paths for a single compiled output file name.
(root: string, name: string)
| 115 | /** Make list of possible paths for a single compiled output file name. */ |
| 116 | |
| 117 | function makeModulePathList(root: string, name: string) { |
| 118 | return([ |
| 119 | // Binary copied using copyasm |
| 120 | [ root, name ], |
| 121 | |
| 122 | // node-gyp's linked version in the "build" dir |
| 123 | [ root, 'build', name ], |
| 124 | |
| 125 | // node-waf and gyp_addon (a.k.a node-gyp) |
| 126 | [ root, 'build', 'Debug', name ], |
| 127 | [ root, 'build', 'Release', name ], |
| 128 | |
| 129 | // Debug files, for development (legacy behavior, remove for node v0.9) |
| 130 | [ root, 'out', 'Debug', name ], |
| 131 | [ root, 'Debug', name ], |
| 132 | |
| 133 | // Release files, but manually compiled (legacy behavior, remove for node v0.9) |
| 134 | [ root, 'out', 'Release', name ], |
| 135 | [ root, 'Release', name ], |
| 136 | |
| 137 | // Legacy from node-waf, node <= 0.4.x |
| 138 | [ root, 'build', 'default', name ], |
| 139 | |
| 140 | [ |
| 141 | root, |
| 142 | process.env['NODE_BINDINGS_COMPILED_DIR'] || 'compiled', |
| 143 | process.versions.node, |
| 144 | process.platform, |
| 145 | process.arch, |
| 146 | name |
| 147 | ] |
| 148 | ]); |
| 149 | } |
| 150 | |
| 151 | export type FindCallback = (err: any, result?: ModuleSpec) => any; |
| 152 |
no outgoing calls
no test coverage detected