提交 de7e216e 编写于 作者: E Erich Gamma

Fix for #31192

上级 886f58c6
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"taskDefinitions": [ "taskDefinitions": [
{ {
"type": "npm", "type": "npm",
"required": ["script", "path"], "required": ["script"],
"properties": { "properties": {
"script": { "script": {
"type": "string", "type": "string",
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
}, },
"path": { "path": {
"type": "string", "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."
} }
} }
} }
......
...@@ -162,8 +162,7 @@ function createTask(script: string, cmd: string, rootPath: string, shortPath: st ...@@ -162,8 +162,7 @@ function createTask(script: string, cmd: string, rootPath: string, shortPath: st
let kind: NpmTaskDefinition = { let kind: NpmTaskDefinition = {
type: 'npm', type: 'npm',
script: script, script: script
path: rootPath
}; };
let taskName = getTaskName(script, shortPath, singleRoot); let taskName = getTaskName(script, shortPath, singleRoot);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册