From c12f99a14fd95c69e70424a3289dfd8d210e057f Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Thu, 6 May 2021 14:16:57 -0700 Subject: [PATCH] fix: ts build issue --- .../amplify-provider-awscloudformation/src/initializer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amplify-provider-awscloudformation/src/initializer.ts b/packages/amplify-provider-awscloudformation/src/initializer.ts index d8819b2c468..929cbd043bf 100644 --- a/packages/amplify-provider-awscloudformation/src/initializer.ts +++ b/packages/amplify-provider-awscloudformation/src/initializer.ts @@ -1,4 +1,4 @@ -import { $TSContext, pathManager, PathConstants, stateManager, JSONUtilities } from 'amplify-cli-core'; +import { $TSContext, $TSAny, pathManager, PathConstants, stateManager, JSONUtilities } from 'amplify-cli-core'; import _ from 'lodash'; import * as configurationManager from './configuration-manager'; @@ -101,7 +101,7 @@ async function initializeRootStack(context: $TSContext) { const authRoleName = `${stackName}-authRole`; const unauthRoleName = `${stackName}-unauthRole`; - const rootStack = JSONUtilities.readJson(initTemplateFilePath); + const rootStack = JSONUtilities.readJson<$TSAny>(initTemplateFilePath); await prePushCfnTemplateModifier(rootStack); // Track Amplify Console generated stacks if (!!process.env.CLI_DEV_INTERNAL_DISABLE_AMPLIFY_APP_DELETION) {