diff --git a/src/lang/loader.ts b/src/lang/loader.ts index 771ecb3..69de968 100644 --- a/src/lang/loader.ts +++ b/src/lang/loader.ts @@ -68,7 +68,9 @@ abstract class Loader { file: `${tmpPath}/${pkg}.tgz`, cwd: tmpPath, }); - await fs.rename(`${tmpPath}/package`, `${this._basePath}/${pkg}`); + await fs.cp(`${tmpPath}/package`, `${this._basePath}/${pkg}`, { + recursive: true, + }); await fs.rmdir(tmpPath, { recursive: true }); }