Skip to content

Commit a576b4c

Browse files
committed
Fix npm task path now that there's no slash
1 parent 856e0ae commit a576b4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/npm/src/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class NpmTaskProvider implements TaskProvider {
6767
return undefined;
6868
}
6969
if (kind.path) {
70-
packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/' + kind.path + 'package.json' });
70+
packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/' + kind.path + `${kind.path.endsWith('/') ? '' : '/'}` + 'package.json' });
7171
} else {
7272
packageJsonUri = _task.scope.uri.with({ path: _task.scope.uri.path + '/package.json' });
7373
}

0 commit comments

Comments
 (0)