Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Modified the name of the licensing tgz file to include 'src-with-depe…
Browse files Browse the repository at this point in the history
…ndencies' (Issue #51).
  • Loading branch information
cherih committed Feb 14, 2018
1 parent 015442a commit 1890fba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,12 @@ function projectLicenses(options) {
throw err;
}

const newTarballName = `${json.name}-${json.version}-src-with-dependencies.tgz`;
fs.renameSync(
path.resolve(tarballName),
path.resolve(`${json.name}-${json.version}-src-with-dependecies.tgz`)
path.resolve(newTarballName)
);
console.log("Changed archive name to", newTarballName);

const dependencies = fs.readdirSync('./tmp/package/node_modules');

Expand Down

0 comments on commit 1890fba

Please sign in to comment.