fix(core): update
This commit is contained in:
		| @@ -12,6 +12,7 @@ export class SmartArchive { | ||||
|   public async extractArchiveFromUrlToFs(urlArg: string, targetDir: string) { | ||||
|     const parsedPath = plugins.path.parse(urlArg); | ||||
|     const uniqueFileName = plugins.smartunique.uni() + parsedPath.ext; | ||||
|     plugins.smartfile.fs.ensureDir(paths.nogitDir); | ||||
|     const downloadPath = plugins.path.join(paths.nogitDir, uniqueFileName); | ||||
|     const downloadedArchive = (await plugins.smartrequest.getBinary(urlArg)).body; | ||||
|     await plugins.smartfile.memory.toFs(downloadedArchive, downloadPath); | ||||
|   | ||||
| @@ -2,4 +2,3 @@ import * as plugins from './smartarchive.plugins'; | ||||
|  | ||||
| export const packageDir = plugins.path.join(__dirname, '../'); | ||||
| export const nogitDir = plugins.path.join(__dirname, './.nogit'); | ||||
| plugins.smartfile.fs.ensureDir(nogitDir); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user