From 2f8e3f59bac763a314e6c1b266c7e8b95a6e24ea Mon Sep 17 00:00:00 2001 From: Natalie Carey Date: Thu, 19 Jan 2023 11:47:28 +0000 Subject: [PATCH] Creating fallback for people who haven't installed npm modules. --- __tests__/spec/migrate.js | 2 +- bin/cli | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/spec/migrate.js b/__tests__/spec/migrate.js index 0ce15f1da1..06bfbc5db7 100644 --- a/__tests__/spec/migrate.js +++ b/__tests__/spec/migrate.js @@ -72,7 +72,7 @@ describe('migrate test prototype', () => { ]) expect(scripts).toEqual({ - dev: 'govuk-prototype-kit dev', + dev: 'govuk-prototype-kit dev || npm install && govuk-prototype-kit dev', serve: 'govuk-prototype-kit serve', start: 'govuk-prototype-kit start' }) diff --git a/bin/cli b/bin/cli index f1e82d0784..7dcad950f4 100755 --- a/bin/cli +++ b/bin/cli @@ -57,7 +57,7 @@ usage-data-config.json const packageJson = { scripts: { - dev: 'govuk-prototype-kit dev', + dev: 'govuk-prototype-kit dev || npm install && govuk-prototype-kit dev', serve: 'govuk-prototype-kit serve', start: 'govuk-prototype-kit start' }