Skip to content

Commit b593c44

Browse files
committed
chore: stage work
1 parent 7ced770 commit b593c44

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

workspaces/tarball/src/class/TarballExtractor.class.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,22 @@ export class TarballExtractor {
114114
};
115115
}
116116

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+
117133
static async fromNpm(
118134
location: string,
119135
spec: string,

0 commit comments

Comments
 (0)