File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,20 @@ export async function deployCLI() {
1919 const pipeline = await util . samBuild ( lang )
2020 const template = { repoConfig : pipeline }
2121 const repoconfig = await Promise . resolve (
22- util . jsonCreation ( < Record < string , IroverDeploymentObject > > template )
22+ util . jsonCreation (
23+ < Record < string , IroverDeploymentObject > > ( < unknown > template )
24+ )
2325 )
2426 if ( repoconfig !== undefined ) {
25- await deployment . setupRepo ( JSON . parse ( repoconfig ) [ "repoConfig" ] )
27+ const Configs : IroverDeploymentObject =
28+ JSON . parse ( repoconfig ) [ "repoConfig" ]
29+ Configs [ "repoType" ] = ( < Record < string , string > > (
30+ ( < unknown > Configs [ "repoType" ] )
31+ ) ) [ "repoType" ]
32+ Configs [ "tool" ] = ( < Record < string , string > > ( < unknown > Configs [ "tool" ] ) ) [
33+ "tool"
34+ ]
35+ await deployment . setupRepo ( Configs )
2636 roverHelpers . generateRoverConfig (
2737 "" ,
2838 JSON . parse ( repoconfig ) [ "repoConfig" ] ,
Original file line number Diff line number Diff line change @@ -263,8 +263,8 @@ export const samBuild = async (lang: string) => {
263263 const step = Object . fromEntries (
264264 Object . entries ( stepData ) . map ( ( [ key , value ] ) => {
265265 const name = key
266- . replace ( "steps required for " , "" )
267- . replace ( " environment " , "" )
266+ . replace ( "Steps required for " , "" )
267+ . replace ( " environment" , "" )
268268 return [ name , value ]
269269 } )
270270 )
@@ -313,7 +313,7 @@ export const samBuild = async (lang: string) => {
313313 const deployment_choice = ( < Record < string , Array < string > > > choices )
314314 . deployment
315315 const deploymentEvent = await multichoice (
316- `Deployment Events ` ,
316+ `deploymentevents ` ,
317317 deployment_choice ,
318318 ""
319319 )
You can’t perform that action at this time.
0 commit comments