@@ -5,9 +5,7 @@ const Ora = require('ora');
55const loadConfig = require ( '../codegen-config' ) ;
66const constants = require ( '../constants' ) ;
77const { ensureIntrospectionSchema, getFrontEndHandler, getAppSyncAPIDetails } = require ( '../utils' ) ;
8- const { FeatureFlags } = require ( 'amplify-cli-core' ) ;
9- const { getDocsgenPackage } = require ( '../utils/getDocsgenPackage' ) ;
10- const docsgenPackageMigrationflag = 'codegen.useDocsGeneratorPlugin' ;
8+ const { generate } = require ( '@aws-amplify/graphql-docs-generator' )
119
1210async function generateStatements ( context , forceDownloadSchema , maxDepth , withoutInit = false , decoupleFrontend = '' ) {
1311 try {
@@ -36,8 +34,6 @@ async function generateStatements(context, forceDownloadSchema, maxDepth, withou
3634 return ;
3735 }
3836
39- const { generate } = getDocsgenPackage ( FeatureFlags . getBoolean ( docsgenPackageMigrationflag ) ) ;
40-
4137 for ( const cfg of projects ) {
4238 const includeFiles = path . join ( projectPath , cfg . includes [ 0 ] ) ;
4339 const opsGenDirectory = cfg . amplifyExtension . docsFilePath
@@ -63,7 +59,6 @@ async function generateStatements(context, forceDownloadSchema, maxDepth, withou
6359 separateFiles : true ,
6460 language,
6561 maxDepth : maxDepth || cfg . amplifyExtension . maxDepth ,
66- retainCaseStyle : FeatureFlags . getBoolean ( 'codegen.retainCaseStyle' )
6762 } ) ;
6863 opsGenSpinner . succeed ( constants . INFO_MESSAGE_OPS_GEN_SUCCESS + path . relative ( path . resolve ( '.' ) , opsGenDirectory ) ) ;
6964 } finally {
0 commit comments