Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit bf6d222

Browse files
In dotnet new templates, display instruction to run "npm install" manually
1 parent bcaa3af commit bf6d222

File tree

1 file changed

+8
-0
lines changed
  • templates/package-builder/src/build

1 file changed

+8
-0
lines changed

templates/package-builder/src/build/build.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ function buildDotNetNewNuGetPackage(packageId: string) {
232232
continueOnError: false
233233
}
234234
*/
235+
{
236+
// For the preview2 release, just display manual instructions instead.
237+
// This is only applicable on the command line, because VS will restore
238+
// NPM packages automatically by default.
239+
actionId: 'AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C',
240+
description: '\n\n-------------------------------------------------------------------\nIMPORTANT: Before running this project on the command line,\n you must restore NPM packages by running "npm install"\n-------------------------------------------------------------------\n',
241+
manualInstructions: [{ text: 'Run "npm install"' }]
242+
}
235243
],
236244
}, null, 2));
237245

0 commit comments

Comments
 (0)