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

Modified the name of the licensing tgz file (Issue #51) #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grommet-cli",
"version": "5.1.2",
"version": "5.1.3",
"main": "src/grommet.js",
"description": "Command line interface for Grommet.",
"authors": [
Expand Down
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