Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
fix: use --save-exact to prevent carets or tildas
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed May 31, 2019
1 parent 1b6edae commit 6c49203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To use the test suite, first read the docs about [how to create a new hooks hand
}
```

1. Run `npm install dredd-hooks-template --save-dev` to install and declare this test suite as your development dependency.
1. Run `npm install dredd-hooks-template --save-dev --save-exact` to install and declare this test suite as your development dependency.
1. Run `npx dredd-hooks-template init` to get a copy of the test suite in the `./features` directory.
1. Open the feature files in `./features/*.feature` and in all of them

Expand Down
2 changes: 1 addition & 1 deletion cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function upgrade() {

// upgrade the package
const pkg = `dredd-hooks-template@${version}`;
run('npm', ['install', pkg, '--save-dev'], { cwd: PROJECT_DIR });
run('npm', ['install', pkg, '--save-dev', '--save-exact'], { cwd: PROJECT_DIR });

// copy '*.feature' files from the upgraded 'dredd-hooks-template' package
// to the project, but don't overwrite the existing feature files, add these
Expand Down

0 comments on commit 6c49203

Please sign in to comment.