From bf6d2227db2f50e621848c8a3c99154bbb944d15 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Thu, 8 Jun 2017 11:43:38 +0100 Subject: [PATCH] In dotnet new templates, display instruction to run "npm install" manually --- templates/package-builder/src/build/build.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/package-builder/src/build/build.ts b/templates/package-builder/src/build/build.ts index 4f30254..d5d246e 100644 --- a/templates/package-builder/src/build/build.ts +++ b/templates/package-builder/src/build/build.ts @@ -232,6 +232,14 @@ function buildDotNetNewNuGetPackage(packageId: string) { continueOnError: false } */ + { + // For the preview2 release, just display manual instructions instead. + // This is only applicable on the command line, because VS will restore + // NPM packages automatically by default. + actionId: 'AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C', + description: '\n\n-------------------------------------------------------------------\nIMPORTANT: Before running this project on the command line,\n you must restore NPM packages by running "npm install"\n-------------------------------------------------------------------\n', + manualInstructions: [{ text: 'Run "npm install"' }] + } ], }, null, 2));