Skip to content

Commit

Permalink
[cli] update npm deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenVoich committed Aug 1, 2024
1 parent 7fce48a commit 55ded49
Show file tree
Hide file tree
Showing 4 changed files with 2,605 additions and 1,662 deletions.
4 changes: 2 additions & 2 deletions cli/commands/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'node:path';
import chalk from 'chalk';
import {globSync} from 'glob';
import {deleteSync} from 'del';
import tar from 'tar';
import {create as createTar} from 'tar';
import streamToPromise from 'stream-to-promise';

import {getRootDir} from '../mops.js';
Expand Down Expand Up @@ -82,7 +82,7 @@ export async function docs({silent = false} = {}) {
let files = globSync(`${docsDir}/**/*.adoc`, {ignore}).map(f => path.relative(docsDir, f));
files.sort();
if (files.length) {
let stream = tar.create(
let stream = createTar(
{
cwd: docsDir,
gzip: true,
Expand Down
4 changes: 2 additions & 2 deletions cli/commands/toolchain/toolchain-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import decompress from 'decompress';
// import decompressTarxz from 'decomp-tarxz';
import {deleteSync} from 'del';
import {Octokit} from 'octokit';
import tar from 'tar';
import {extract as extractTar} from 'tar';

import {getRootDir} from '../../mops.js';

Expand Down Expand Up @@ -41,7 +41,7 @@ export let downloadAndExtract = async (url : string, destDir : string, destFileN
fs.cpSync(path.join(tmpDir, path.parse(archive).name.replace('.tar', '')), destDir, {recursive: true});
}
else if (archive.endsWith('tar.gz')) {
await tar.extract({
await extractTar({
file: archive,
cwd: destDir,
});
Expand Down
Loading

0 comments on commit 55ded49

Please sign in to comment.