Fix npm task path now that there's no slash
parent
856e0ae9cb
commit
a576b4c066
|
@ -67,7 +67,7 @@ export class NpmTaskProvider implements TaskProvider {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
if (kind.path) {
|
if (kind.path) {
|
||||||
packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/' + kind.path + 'package.json' });
|
packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/' + kind.path + `${kind.path.endsWith('/') ? '' : '/'}` + 'package.json' });
|
||||||
} else {
|
} else {
|
||||||
packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/package.json' });
|
packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/package.json' });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue