File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ export default class ThirdpartyDownloader {
3333 const outDir = path . join ( this . projectConfig . path , this . projectConfig . thirdparty . dir , dependency . name ) ;
3434 await mkdirp ( outDir ) ;
3535
36- if ( SUPPORTED_ARCHIVES . includes ( path . extname ( fileName ) . slice ( 1 ) ) ) {
36+ if (
37+ dependency . type === 'archive' ||
38+ SUPPORTED_ARCHIVES . includes ( path . extname ( fileName ) . slice ( 1 ) )
39+ ) {
3740 logger . info ( `📤 Extracting "${ dependency . name } " thirdparty...` ) ;
3841
3942 await decompress ( filePath , outDir , {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export interface IDependency {
1818 url : string ;
1919 strip ?: number ;
2020 filter ?: string | string [ ] ;
21+ type ?: 'file' | 'archive' ;
2122}
2223
2324export interface IProjectConfig {
You can’t perform that action at this time.
0 commit comments