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

npm install unnecessarily executed #357

Open
@scottaddie

Description

@scottaddie

In Visual Studio 2015 Update 1 (with ASP.NET 5 RC1 Update 1 tooling installed), I created a new app using the "StarterWeb" project template. I waited until all npm dependencies had been restored, and then I added a script to package.json:

"scripts": {
  "clean": "gulp clean"
}

The script being added really doesn't matter. I'm only providing an example for clarity.

After saving the package.json file, I saw the following appear in the "Bower/npm" view of the Output window:

====Executing command 'npm install'====


npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

====npm command completed with exit code 0==== 

I then added another script and saved the file. The same output appeared.

The npm install command should only be executing when I modify the dependencies or devDependencies properties of package.json. Is it possible to implement some sort of dirty checking on specific properties of this file?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions