Skip to content

Commit 2c88b4d

Browse files
committed
update version/dependenies, test remove cross-spawn might not be needed with other corrections
1 parent 592db53 commit 2c88b4d

File tree

4 files changed

+14
-88
lines changed

4 files changed

+14
-88
lines changed

installer.mjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
join,
1212
sep,
1313
} from 'path';
14-
import spawn from 'cross-spawn';
14+
import { spawnSync } from 'child_process';
1515
import { unpack } from 'node-unar';
1616
import { wget, isString } from 'node-wget-fetch';
1717

@@ -125,11 +125,7 @@ function extraUnpack(cmd = '', source = '', destination = '', toCopy = []) {
125125
let args = ['e', source, '-o' + destination];
126126
let extraArgs = args.concat(toCopy).concat(['-r', '-aos']);
127127
console.log('Running: ' + cmd + ' ' + extraArgs);
128-
return spawnSync(cmd, extraArgs);
129-
}
130-
131-
function spawnSync(spCmd = '', spArgs = []) {
132-
let doUnpack = spawn.sync(spCmd, spArgs, {
128+
let doUnpack = spawnSync(cmd, extraArgs, {
133129
stdio: 'pipe'
134130
});
135131
if (doUnpack.error) {

package-lock.json

Lines changed: 8 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-7z-archive",
3-
"version": "0.9.9",
3+
"version": "0.9.10",
44
"description": "ESM front-end to 7-Zip, featuring alternative full 7z CLI tools, binaries for Linux, Windows, Mac OSX, seamlessly create 7zip SFX self extracting archives targeting different platforms.",
55
"type": "module",
66
"main": "lib/index.mjs",
@@ -72,8 +72,8 @@
7272
"node": ">=12.0.0"
7373
},
7474
"dependencies": {
75-
"node-unar": "^1.0.1",
76-
"cross-spawn": "^7.0.3",
75+
"node-unar": "^1.0.4",
76+
"node-sys": "^1.0.6",
7777
"fs-extra": "^9.0.1",
7878
"node-wget-fetch": "^1.1.0",
7979
"when": "^3.7.8",

util/run.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import {
33
EOL
44
} from 'os';
5-
import spawn from 'cross-spawn';
5+
import { spawn } from 'child_process';
66
import when from 'when';
77
import {
88
normalize,

0 commit comments

Comments
 (0)