Skip to content

Commit

Permalink
feat: 馃幐 turn off bin-links
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Nov 26, 2022
1 parent 80a09cd commit 394f9c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 8 additions & 1 deletion src/__tests__/createModuleSpec.mjs
Expand Up @@ -63,7 +63,14 @@ describe('createModule', () => {

expect(execa.mock.calls[0]).toEqual([
'npm',
['install', '--save', '--ignore-scripts', 'react', 'react-dom'],
[
'install',
'--save',
'--ignore-scripts',
'--bin-links=false',
'react',
'react-dom',
],
{ cwd: 'folder' },
]);
});
Expand Down
9 changes: 6 additions & 3 deletions src/createModule.mjs
Expand Up @@ -15,9 +15,12 @@ export async function createIndex({ packages, TMP }) {
}

export async function installDependencies({ packages, options, TMP }) {
const installArgs = ['install', '--save', '--ignore-scripts'].concat(
packages
);
const installArgs = [
'install',
'--save',
'--ignore-scripts',
'--bin-links=false',
].concat(packages);

if (options.registry) {
installArgs.push('--registry', options.registry);
Expand Down

0 comments on commit 394f9c6

Please sign in to comment.