We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 856e0ae commit a576b4cCopy full SHA for a576b4c
1 file changed
extensions/npm/src/tasks.ts
@@ -67,7 +67,7 @@ export class NpmTaskProvider implements TaskProvider {
67
return undefined;
68
}
69
if (kind.path) {
70
- 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' });
71
} else {
72
packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/package.json' });
73
0 commit comments