Skip to content

Commit

Permalink
refactor: replace readable-stream with stream/promises
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 8, 2023
1 parent a8ba8b8 commit aa3eaa1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/unpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import { createReadStream, exists, promises as fs } from 'fs';
import { join } from 'path';
import { promisify } from 'util';
import { createGunzip } from 'zlib';
import { pipeline } from 'stream/promises';

import stream from 'readable-stream';
import tar from 'tar';

const pipeline = promisify(stream.pipeline);
const existsPromise = promisify(exists);

export async function unpack(context) {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"npm-which": "^3.0.1",
"osenv": "^0.1.5",
"read-package-json": "^4.1.1",
"readable-stream": "^3.6.0",
"rimraf": "^3.0.2",
"root-check": "^2.0.0",
"semver": "^7.3.5",
Expand Down

0 comments on commit aa3eaa1

Please sign in to comment.