diff --git a/packages/api/src/utility/downloadPackage.js b/packages/api/src/utility/downloadPackage.js index 581e62f0..d15add20 100644 --- a/packages/api/src/utility/downloadPackage.js +++ b/packages/api/src/utility/downloadPackage.js @@ -40,7 +40,7 @@ async function downloadPackage(packageName, directory) { const tarball = infoResp.data.versions[latest].dist.tarball; const tmpFile = path.join(uploadsdir(), uuidv1() + '.tgz'); - downloadFile(tarball, tmpFile); + await downloadFile(tarball, tmpFile); const tmpDir = path.join(uploadsdir(), uuidv1()); fs.mkdirSync(tmpDir); await extractTarball(tmpFile, tmpDir); diff --git a/packages/types/.yarnrc b/packages/types/.yarnrc new file mode 100644 index 00000000..41fd2f08 --- /dev/null +++ b/packages/types/.yarnrc @@ -0,0 +1,2 @@ +version-tag-prefix packages-types-v +version-git-message "packages-types v%s" \ No newline at end of file diff --git a/packages/types/README.md b/packages/types/README.md index a8dd80ff..0e8a46c2 100644 --- a/packages/types/README.md +++ b/packages/types/README.md @@ -7,6 +7,7 @@ Typescript definitions for DbGate app - dumper.d.ts - SQL dumper - dump SQL commands independed on DB engine - engines.d.ts - definition of SQL engine driver - query.d.ts - query results definition + - extensions.d.ts - plugin related definitions ## Installation