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 b439e3e commit efcc5efCopy full SHA for efcc5ef
system-tests/lib/dep-installer/index.ts
@@ -53,12 +53,7 @@ async function ensureCacheDir (cacheDir: string) {
53
* Symlink the cached `node_modules` directory to the temp project directory's `node_modules`.
54
*/
55
async function symlinkNodeModulesFromCache (tmpNodeModulesDir: string, cacheDir: string): Promise<void> {
56
- try {
57
- await fs.symlink(cacheDir, tmpNodeModulesDir, 'junction')
58
- } catch (err) {
59
- // TODO: this looks wrong, shouldn't it re-throw sometimes?
60
- if (err.code !== 'EEXIST') return
61
- }
+ await fs.symlink(cacheDir, tmpNodeModulesDir, 'junction')
62
63
log(`node_modules symlink created at ${tmpNodeModulesDir}`)
64
}
0 commit comments