1
+ /******/ ( ( ) => { // webpackBootstrap
2
+ /******/ var __webpack_modules__ = ( {
3
+
4
+ /***/ 607 :
5
+ /***/ ( ( module , __unused_webpack_exports , __nccwpck_require__ ) => {
6
+
7
+ /* module decorator */ module = __nccwpck_require__ . nmd ( module ) ;
8
+ if ( require . main !== module ) {
9
+ throw new Error ( 'This file should not be required' ) ;
10
+ }
11
+
12
+ var childProcess = __nccwpck_require__ ( 129 ) ;
13
+ var fs = __nccwpck_require__ ( 747 ) ;
14
+
15
+ var paramFilePath = process . argv [ 2 ] ;
16
+
17
+ var serializedParams = fs . readFileSync ( paramFilePath , 'utf8' ) ;
18
+ var params = JSON . parse ( serializedParams ) ;
19
+
20
+ var cmd = params . command ;
21
+ var execOptions = params . execOptions ;
22
+ var pipe = params . pipe ;
23
+ var stdoutFile = params . stdoutFile ;
24
+ var stderrFile = params . stderrFile ;
25
+
26
+ var c = childProcess . exec ( cmd , execOptions , function ( err ) {
27
+ if ( ! err ) {
28
+ process . exitCode = 0 ;
29
+ } else if ( err . code === undefined ) {
30
+ process . exitCode = 1 ;
31
+ } else {
32
+ process . exitCode = err . code ;
33
+ }
34
+ } ) ;
35
+
36
+ var stdoutStream = fs . createWriteStream ( stdoutFile ) ;
37
+ var stderrStream = fs . createWriteStream ( stderrFile ) ;
38
+
39
+ c . stdout . pipe ( stdoutStream ) ;
40
+ c . stderr . pipe ( stderrStream ) ;
41
+ c . stdout . pipe ( process . stdout ) ;
42
+ c . stderr . pipe ( process . stderr ) ;
43
+
44
+ if ( pipe ) {
45
+ c . stdin . end ( pipe ) ;
46
+ }
47
+
48
+
49
+ /***/ } ) ,
50
+
51
+ /***/ 129 :
52
+ /***/ ( ( module ) => {
53
+
54
+ "use strict" ;
55
+ module . exports = require ( "child_process" ) ; ;
56
+
57
+ /***/ } ) ,
58
+
59
+ /***/ 747 :
60
+ /***/ ( ( module ) => {
61
+
62
+ "use strict" ;
63
+ module . exports = require ( "fs" ) ; ;
64
+
65
+ /***/ } )
66
+
67
+ /******/ } ) ;
68
+ /************************************************************************/
69
+ /******/ // The module cache
70
+ /******/ var __webpack_module_cache__ = { } ;
71
+ /******/
72
+ /******/ // The require function
73
+ /******/ function __nccwpck_require__ ( moduleId ) {
74
+ /******/ // Check if module is in cache
75
+ /******/ var cachedModule = __webpack_module_cache__ [ moduleId ] ;
76
+ /******/ if ( cachedModule !== undefined ) {
77
+ /******/ return cachedModule . exports ;
78
+ /******/ }
79
+ /******/ // Create a new module (and put it into the cache)
80
+ /******/ var module = __webpack_module_cache__ [ moduleId ] = {
81
+ /******/ id : moduleId ,
82
+ /******/ loaded : false ,
83
+ /******/ exports : { }
84
+ /******/ } ;
85
+ /******/
86
+ /******/ // Execute the module function
87
+ /******/ var threw = true ;
88
+ /******/ try {
89
+ /******/ __webpack_modules__ [ moduleId ] ( module , module . exports , __nccwpck_require__ ) ;
90
+ /******/ threw = false ;
91
+ /******/ } finally {
92
+ /******/ if ( threw ) delete __webpack_module_cache__ [ moduleId ] ;
93
+ /******/ }
94
+ /******/
95
+ /******/ // Flag the module as loaded
96
+ /******/ module . loaded = true ;
97
+ /******/
98
+ /******/ // Return the exports of the module
99
+ /******/ return module . exports ;
100
+ /******/ }
101
+ /******/
102
+ /************************************************************************/
103
+ /******/ /* webpack/runtime/node module decorator */
104
+ /******/ ( ( ) => {
105
+ /******/ __nccwpck_require__ . nmd = ( module ) => {
106
+ /******/ module . paths = [ ] ;
107
+ /******/ if ( ! module . children ) module . children = [ ] ;
108
+ /******/ return module ;
109
+ /******/ } ;
110
+ /******/ } ) ( ) ;
111
+ /******/
112
+ /******/ /* webpack/runtime/compat */
113
+ /******/
114
+ /******/ if ( typeof __nccwpck_require__ !== 'undefined' ) __nccwpck_require__ . ab = __dirname + "/" ; /************************************************************************/
115
+ /******/
116
+ /******/ // startup
117
+ /******/ // Load entry module and return exports
118
+ /******/ // This entry module is referenced by other modules so it can't be inlined
119
+ /******/ var __webpack_exports__ = __nccwpck_require__ ( 607 ) ;
120
+ /******/ module . exports = __webpack_exports__ ;
121
+ /******/
122
+ /******/ } ) ( )
123
+ ;
0 commit comments