File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,14 @@ if (!argv.o) {
9292let command ;
9393let isDocker = false ;
9494if ( argv . e === 'docker' ) {
95- const proxyArgs = getProxyArgsForDocker ( ) ;
95+ // transfer post processing env-variable to docker if it exists
96+ let envArgs = process . env . TS_POST_PROCESS_FILE ? ` --env TS_POST_PROCESS_FILE="${ process . env . TS_POST_PROCESS_FILE } "` : ''
97+
98+ // add proxy args
99+ envArgs += getProxyArgsForDocker ( ) ;
100+
96101 const volume = argv . m || process . env . PWD ;
97- command = `docker run${ proxyArgs } --rm -v ${ volume } :/local ${ dockerImageName } ` ;
102+ command = `docker run${ envArgs } --rm -v ${ volume } :/local ${ dockerImageName } ` ;
98103 isDocker = true ;
99104} else {
100105 // default to java
@@ -116,6 +121,11 @@ const args = [
116121 } `,
117122] ;
118123
124+ // enable post processing if environment variable TS_POST_PROCESS_FILE is set
125+ if ( process . env . TS_POST_PROCESS_FILE ) {
126+ args . push ( '--enable-post-process-file' , )
127+ }
128+
119129// add auth headers
120130if ( argv . a ) {
121131 args . push ( `-a ${ argv . a } ` ) ;
You can’t perform that action at this time.
0 commit comments