File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,19 @@ const stripQuotes = (str) =>
1313const replaceEnvVars = ( str ) => {
1414 const value = str
1515 . replaceAll (
16- / \$ \{ ( [ a - z A - Z 0 - 9 _ ] + ) : \+ : \$ [ a - z A - Z 0 - 9 _ ] + \} / g,
16+ / \$ \{ ( [ a - z A - Z 0 - 9 _ ] + ) : [ + - ] : \$ [ a - z A - Z 0 - 9 _ ] + \} / g,
1717 ( _ , key ) => ( ( v ) => v ? `:${ v } ` : "" ) ( process . env [ key ] ) ,
1818 )
1919 . replaceAll ( / \$ \{ ( [ a - z A - Z 0 - 9 _ ] + ) \} / g, ( _ , key ) => process . env [ key ] ?? "" )
2020 . replaceAll ( / \$ ( [ a - z A - Z 0 - 9 _ ] + ) / g, ( _ , key ) => process . env [ key ] ?? "" ) ;
2121 return value ;
2222} ;
2323
24+ let found = false ;
25+
2426readInterface . on ( "line" , ( line ) => {
27+ if ( ! found ) found = line == "set -a" ;
28+ if ( ! found ) return ;
2529 const match = line . match ( / ^ ( [ ^ = ] + ) = ( .* ) $ / ) ;
2630 if ( match ) {
2731 const [ _ , key , value_ ] = match ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ description:
44
55inputs :
66 path :
7+ description : path that should be evaluated by `dev`
78 required : false
89
910runs :
You can’t perform that action at this time.
0 commit comments