fix + docs

This commit is contained in:
Jan Prochazka 2020-11-30 20:02:30 +01:00
parent 3e1e6f7164
commit 9aced8f01f
3 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,7 @@ async function downloadPackage(packageName, directory) {
const tarball = infoResp.data.versions[latest].dist.tarball; const tarball = infoResp.data.versions[latest].dist.tarball;
const tmpFile = path.join(uploadsdir(), uuidv1() + '.tgz'); const tmpFile = path.join(uploadsdir(), uuidv1() + '.tgz');
downloadFile(tarball, tmpFile); await downloadFile(tarball, tmpFile);
const tmpDir = path.join(uploadsdir(), uuidv1()); const tmpDir = path.join(uploadsdir(), uuidv1());
fs.mkdirSync(tmpDir); fs.mkdirSync(tmpDir);
await extractTarball(tmpFile, tmpDir); await extractTarball(tmpFile, tmpDir);

2
packages/types/.yarnrc Normal file
View File

@ -0,0 +1,2 @@
version-tag-prefix packages-types-v
version-git-message "packages-types v%s"

View File

@ -7,6 +7,7 @@ Typescript definitions for DbGate app
- dumper.d.ts - SQL dumper - dump SQL commands independed on DB engine - dumper.d.ts - SQL dumper - dump SQL commands independed on DB engine
- engines.d.ts - definition of SQL engine driver - engines.d.ts - definition of SQL engine driver
- query.d.ts - query results definition - query.d.ts - query results definition
- extensions.d.ts - plugin related definitions
## Installation ## Installation