Skip to content

Commit

Permalink
Add symlinks during beforeInstall
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Nov 23, 2016
1 parent 3a3df9a commit cb85a5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions __tests__/commands/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,10 @@ test.concurrent('install will not overwrite files in symlinked scoped directorie
(await fs.readJson(path.join(dependencyPath, 'package.json'))).description,
);
assert.ok(!(await fs.exists(path.join(dependencyPath, 'index.js'))));
}, async (cwd) => {
const dirToLink = path.join(cwd, 'dir-to-link');
await fs.symlink(dirToLink, path.join(cwd, '.yarn-link', '@fakescope', 'fake-dependency'));
await fs.symlink(dirToLink, path.join(cwd, 'node_modules', '@fakescope', 'fake-dependency'));
});
});

This file was deleted.

This file was deleted.

0 comments on commit cb85a5c

Please sign in to comment.