Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions __tests__/commands/install/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ async function mockConstants(base: Config, mocks: Object, cb: (config: Config) =
beforeEach(request.__resetAuthedRequests);
afterEach(request.__resetAuthedRequests);

test('install should not copy the .bin folders from the cache', () =>
runInstall({}, 'install-no-bin', async config => {
expect(await fs.exists(`${config.cwd}/node_modules/is-pnp/.bin`)).toEqual(false);
}));

test('install should not hoist packages above their peer dependencies', () =>
runInstall({}, 'install-should-not-hoist-through-peer-deps', async config => {
expect(await fs.exists(`${config.cwd}/node_modules/a/node_modules/c`)).toEqual(true);
Expand Down
5 changes: 5 additions & 0 deletions __tests__/fixtures/install/install-no-bin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"is-pnp": "^1.0.2"
}
}
2 changes: 1 addition & 1 deletion src/package-linker.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export default class PackageLinker {
possibleExtraneous,
artifactFiles,

ignoreBasenames: [constants.METADATA_FILENAME, constants.TARBALL_FILENAME],
ignoreBasenames: [constants.METADATA_FILENAME, constants.TARBALL_FILENAME, '.bin'],

onStart: (num: number) => {
tick = this.reporter.progress(num);
Expand Down