diff --git a/extensions/npm/package.json b/extensions/npm/package.json index be169c559b0..07387994960 100644 --- a/extensions/npm/package.json +++ b/extensions/npm/package.json @@ -49,7 +49,7 @@ "taskDefinitions": [ { "type": "npm", - "required": ["script", "path"], + "required": ["script"], "properties": { "script": { "type": "string", @@ -57,7 +57,7 @@ }, "path": { "type": "string", - "description": "The path to the package.json file that provides the script." + "description": "The path to the folder of the package.json file that provides the script. Can be ommitted." } } } diff --git a/extensions/npm/src/main.ts b/extensions/npm/src/main.ts index 9c81fe2e143..6c22119b342 100644 --- a/extensions/npm/src/main.ts +++ b/extensions/npm/src/main.ts @@ -162,8 +162,7 @@ function createTask(script: string, cmd: string, rootPath: string, shortPath: st let kind: NpmTaskDefinition = { type: 'npm', - script: script, - path: rootPath + script: script }; let taskName = getTaskName(script, shortPath, singleRoot);