@abtnode/util 1.16.14-beta-dd4f6a50 → 1.16.14-beta-3127f514
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/run-script.js +10 -2
- package/package.json +5 -5
package/lib/run-script.js
CHANGED
|
@@ -104,8 +104,16 @@ const runScript = (script, label, options = {}) => {
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
const stdout = wrapStream(
|
|
108
|
-
|
|
107
|
+
const stdout = wrapStream(
|
|
108
|
+
outputFile ? fs.createWriteStream(outputFile, { flags: 'a' }) : process.stdout,
|
|
109
|
+
label,
|
|
110
|
+
state
|
|
111
|
+
);
|
|
112
|
+
const stderr = wrapStream(
|
|
113
|
+
errorFile ? fs.createWriteStream(errorFile, { flags: 'a' }) : process.stderr,
|
|
114
|
+
label,
|
|
115
|
+
state
|
|
116
|
+
);
|
|
109
117
|
|
|
110
118
|
const now = Date.now();
|
|
111
119
|
child = spawn(command, args, {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.14-beta-
|
|
6
|
+
"version": "1.16.14-beta-3127f514",
|
|
7
7
|
"description": "ArcBlock's JavaScript utility",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@abtnode/constant": "1.16.14-beta-
|
|
22
|
-
"@abtnode/logger": "1.16.14-beta-
|
|
23
|
-
"@blocklet/constant": "1.16.14-beta-
|
|
21
|
+
"@abtnode/constant": "1.16.14-beta-3127f514",
|
|
22
|
+
"@abtnode/logger": "1.16.14-beta-3127f514",
|
|
23
|
+
"@blocklet/constant": "1.16.14-beta-3127f514",
|
|
24
24
|
"@ocap/client": "1.18.87",
|
|
25
25
|
"@ocap/mcrypto": "1.18.87",
|
|
26
26
|
"@ocap/util": "1.18.87",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"fs-extra": "^10.1.0",
|
|
72
72
|
"jest": "^27.5.1"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "cb397b94b752e71dfc0ba2c4ad08628cf03ce396"
|
|
75
75
|
}
|