Skip to content

Commit

Permalink
Use "npm init" to initialize package.json instead of just writing an …
Browse files Browse the repository at this point in the history
…empty object into it.
  • Loading branch information
matoilic committed Mar 5, 2017
1 parent 70062c4 commit d981198
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/e2e-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ mv package.json.orig package.json

# Install the CLI in a temporary location
cd $temp_cli_path
echo "{}" > package.json

# Initialize package.json before installing the CLI becuase npm will not install
# the CLI properly in the temporary location if it is missing.
npm init --yes

# Now we can install the CLI from the local package.
npm install $cli_path

# Install the app in a temporary location
Expand Down

0 comments on commit d981198

Please sign in to comment.