We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ced770 commit b593c44Copy full SHA for b593c44
workspaces/tarball/src/class/TarballExtractor.class.ts
@@ -114,6 +114,22 @@ export class TarballExtractor {
114
};
115
}
116
117
+ static async fromGit(
118
+ location: string,
119
+ url: string,
120
+ options: NpmTarballExtractOptions = {}
121
+ ) {
122
+ const { registry } = options;
123
+
124
+ await pacote.extract(url, location, {
125
+ ...kNpmToken,
126
+ registry,
127
+ cache: `${os.homedir()}/.npm`
128
+ });
129
130
+ return this.fromFileSystem(location);
131
+ }
132
133
static async fromNpm(
134
location: string,
135
spec: string,
0 commit comments