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 @@ -289,6 +289,10 @@ export class Edam extends AwaitEventEmitter {
289
289
this ,
290
290
[ require ( templateConfigPath ) , [ this , this ] ]
291
291
) ) || { }
292
+
293
+ // The below process would update templateConfig
294
+ // So we requires clone
295
+ templateConfig = _ . cloneDeep ( templateConfig )
292
296
this . templateConfigPath = templateConfigPath = require . resolve (
293
297
templateConfigPath
294
298
)
Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ export default async function mockPrompts(
14
14
promptValues = { } ,
15
15
output ?: string
16
16
) : Promise < FileProcessor > {
17
- const em : Edam = new Edam ( { userc : false , yes : true } )
17
+ const em : Edam = new Edam ( { userc : false , yes : true , storePrompts : false } )
18
18
em . config . output = output
19
19
em . once ( 'prompt:after' , variables => {
20
20
variables . assign ( promptValues )
21
21
} )
22
+
22
23
if ( typeof template === 'string' ) {
23
24
return await em . process ( template )
24
25
}
You can’t perform that action at this time.
0 commit comments