Skip to content

Commit

Permalink
fix: don't initialze npm
Browse files Browse the repository at this point in the history
  • Loading branch information
theBenForce committed Oct 3, 2019
1 parent b567387 commit 3a704b9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ export default async function RollupCode(codePath: string, config: RollupOptions
await bundle.write({ ...config.output, file: joinPath(tmpDir.name, 'index.js') });

if (installedPackages.length > 0) {
console.info(`Installing packages`);

await execa(`npm init -y`, {
cwd: tmpDir.name
});
console.info(`Installing packages in ${tmpDir.name}`);

await execa(`npm install ${installedPackages.join(" ")}`, {
cwd: tmpDir.name
Expand Down

0 comments on commit 3a704b9

Please sign in to comment.