This commit is contained in:
Erich Gamma 2017-07-21 10:46:55 +02:00
parent 886f58c6d8
commit de7e216e9e
2 changed files with 3 additions and 4 deletions

View file

@ -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."
}
}
}

View file

@ -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);