Fix extra character in npm task path

Fixes #146165
This commit is contained in:
Alex Ross 2022-03-29 15:46:10 +02:00
parent 49ccffbfe6
commit 2381cae3a5
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840

View file

@ -325,7 +325,7 @@ export async function createTask(packageManager: string, script: NpmTaskDefiniti
let relativePackageJson = getRelativePath(packageJsonUri);
if (relativePackageJson.length) {
kind.path = relativePackageJson;
kind.path = relativePackageJson.substring(0, relativePackageJson.length - 1);
}
let taskName = getTaskName(kind.script, relativePackageJson);
let cwd = path.dirname(packageJsonUri.fsPath);