From de7e216e9ebcad74f918a025fc5fe7bdbe0d75b2 Mon Sep 17 00:00:00 2001 From: Erich Gamma Date: Fri, 21 Jul 2017 10:46:55 +0200 Subject: [PATCH] Fix for #31192 --- extensions/npm/package.json | 4 ++-- extensions/npm/src/main.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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); -- GitLab