( globalPrefix: string, platform: NodeJS.Platform, )
| 104 | } |
| 105 | |
| 106 | function candidateGlobalPackageDirs( |
| 107 | globalPrefix: string, |
| 108 | platform: NodeJS.Platform, |
| 109 | ): readonly string[] { |
| 110 | if (platform === 'win32') { |
| 111 | return [join(globalPrefix, 'node_modules', NPM_PACKAGE_NAME)]; |
| 112 | } |
| 113 | return [ |
| 114 | join(globalPrefix, 'lib', 'node_modules', NPM_PACKAGE_NAME), |
| 115 | join(globalPrefix, 'node_modules', NPM_PACKAGE_NAME), |
| 116 | ]; |
| 117 | } |
| 118 | |
| 119 | export function classifyInstallSource( |
| 120 | packageRoot: string, |
no outgoing calls
no test coverage detected