@@ -51,8 +51,8 @@ export async function fetchAndExtractPackage(options: { name: string, dist?: str
51
51
52
52
// Get the package tarball URL
53
53
const tgzPath = await Promise . any ( [
54
- downloadWithHttp ( name , tempDir , tempFile , retry , logger ) ,
55
- downloadWithNpmHttp ( name , tempDir , tempFile , retry , logger ) ,
54
+ // downloadWithHttp(name, tempDir, tempFile, retry, logger),
55
+ // downloadWithNpmHttp(name, tempDir, tempFile, retry, logger),
56
56
downloadWitchPack ( name , tempDir , retry , logger ) ,
57
57
] )
58
58
@@ -117,7 +117,7 @@ async function retryAsync<T>(fn: () => Promise<T>, retries: number): Promise<T>
117
117
export async function downloadWitchPack ( name : string , tempDir : string , retry : number , logger : any ) {
118
118
await retryAsync ( ( ) => {
119
119
return new Promise ( ( resolve , reject ) => {
120
- const { result, status } = jsShell ( `npm pack ${ name } --pack-destination ${ tempDir } ` , 'pipe ' )
120
+ const { result, status } = jsShell ( `npm pack ${ name } --pack-destination ${ tempDir } ` , 'ignore ' )
121
121
if ( status !== 0 ) {
122
122
logger . error ( result )
123
123
reject ( result )
@@ -135,7 +135,7 @@ export async function downloadWitchPack(name: string, tempDir: string, retry: nu
135
135
export async function downloadWithNpmHttp ( name : string , tempDir : string , tempFile : string , retry : number , logger : any ) {
136
136
const tarballUrl = await retryAsync ( async ( ) => {
137
137
return new Promise ( ( resolve , reject ) => {
138
- const { result, status } = jsShell ( `npm view ${ name } dist.tarball` , 'pipe ' )
138
+ const { result, status } = jsShell ( `npm view ${ name } dist.tarball` , 'ignore ' )
139
139
if ( status !== 0 ) {
140
140
logger . error ( result )
141
141
reject ( result )
0 commit comments