Skip to content

Commit 5a58f89

Browse files
committed
chore: this is 3.1.6
1 parent 556c106 commit 5a58f89

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@witnet/sdk",
3-
"version": "3.1.5",
3+
"version": "3.1.6",
44
"description": "Typescript library and CLI tooling for Web3 buidlers willing to interact with the Witnet blockchain.",
55
"repository": {
66
"type": "git",

src/bin/helpers.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,12 @@ export function cmd(timeout, ...commands) {
119119
return new Promise((resolve, reject) => {
120120
const [bin, ...args] = commands;
121121
const child = spawn(bin, args, {
122-
detached: process.env.WITSDK_DRY_RUN_DETACHED ? Boolean(process.env.WITSDK_DRY_RUN_DETACHED === "true") : process.platform !== "win32",
123-
shell: process.env.WITSDK_DRY_RUN_SHELL ? Boolean(process.env.WITNET_SDK_DRY_RUN_SHELL === "true") : process.platform === "win32",
122+
detached: process.env.WITSDK_DRY_RUN_DETACHED
123+
? Boolean(process.env.WITSDK_DRY_RUN_DETACHED === "true")
124+
: process.platform !== "win32",
125+
shell: process.env.WITSDK_DRY_RUN_SHELL
126+
? Boolean(process.env.WITNET_SDK_DRY_RUN_SHELL === "true")
127+
: process.platform === "win32",
124128
stdio: ["ignore", "pipe", "pipe"],
125129
env: {
126130
...process.env,
@@ -541,8 +545,12 @@ export async function toolkitRun(settings, args) {
541545
return new Promise((resolve, reject) => {
542546
const bin = `${settings.paths.toolkitBinPath}`;
543547
const child = spawn(bin, args, {
544-
detached: process.env.WITSDK_DRY_RUN_DETACHED ? Boolean(process.env.WITSDK_DRY_RUN_DETACHED === "true") : process.platform !== "win32",
545-
shell: process.env.WITSDK_DRY_RUN_SHELL ? Boolean(process.env.WITNET_SDK_DRY_RUN_SHELL === "true") : process.platform === "win32",
548+
detached: process.env.WITSDK_DRY_RUN_DETACHED
549+
? Boolean(process.env.WITSDK_DRY_RUN_DETACHED === "true")
550+
: process.platform !== "win32",
551+
shell: process.env.WITSDK_DRY_RUN_SHELL
552+
? Boolean(process.env.WITNET_SDK_DRY_RUN_SHELL === "true")
553+
: process.platform === "win32",
546554
stdio: ["ignore", "pipe", "pipe"],
547555
env: {
548556
...process.env,

0 commit comments

Comments
 (0)