From a576b4c066521fe52b248eac9b21e6a01e7d22bd Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Tue, 19 Apr 2022 15:15:02 +0200 Subject: [PATCH] Fix npm task path now that there's no slash --- extensions/npm/src/tasks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/npm/src/tasks.ts b/extensions/npm/src/tasks.ts index 7ee330d1296..d05b7bbc8bf 100644 --- a/extensions/npm/src/tasks.ts +++ b/extensions/npm/src/tasks.ts @@ -67,7 +67,7 @@ export class NpmTaskProvider implements TaskProvider { return undefined; } 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 { packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/package.json' }); }