We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2463279 + 2651502 commit a10c2c5Copy full SHA for a10c2c5
lib/services/pacote-service.ts
@@ -29,6 +29,10 @@ export class PacoteService implements IPacoteService {
29
_.extend(extractOptions, options);
30
}
31
32
+ if (this.$fs.exists(packageName)) {
33
+ packageName = path.resolve(packageName);
34
+ }
35
+
36
const cache = await this.$npm.getCachePath();
37
return new Promise<void>((resolve, reject) => {
38
const source = pacote.tarball.stream(packageName, { cache });
0 commit comments