From 6c49203c5ed36acb3a8daf7707bc821357b84805 Mon Sep 17 00:00:00 2001 From: Honza Javorek Date: Fri, 31 May 2019 16:26:53 +0200 Subject: [PATCH] fix: use --save-exact to prevent carets or tildas --- README.md | 2 +- cli/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d983e02..12c4c29 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cli/index.js b/cli/index.js index a886fa0..823fc3f 100755 --- a/cli/index.js +++ b/cli/index.js @@ -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