@@ -5,9 +5,7 @@ const Ora = require('ora');
5
5
const loadConfig = require ( '../codegen-config' ) ;
6
6
const constants = require ( '../constants' ) ;
7
7
const { 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' )
11
9
12
10
async function generateStatements ( context , forceDownloadSchema , maxDepth , withoutInit = false , decoupleFrontend = '' ) {
13
11
try {
@@ -36,8 +34,6 @@ async function generateStatements(context, forceDownloadSchema, maxDepth, withou
36
34
return ;
37
35
}
38
36
39
- const { generate } = getDocsgenPackage ( FeatureFlags . getBoolean ( docsgenPackageMigrationflag ) ) ;
40
-
41
37
for ( const cfg of projects ) {
42
38
const includeFiles = path . join ( projectPath , cfg . includes [ 0 ] ) ;
43
39
const opsGenDirectory = cfg . amplifyExtension . docsFilePath
@@ -63,7 +59,6 @@ async function generateStatements(context, forceDownloadSchema, maxDepth, withou
63
59
separateFiles : true ,
64
60
language,
65
61
maxDepth : maxDepth || cfg . amplifyExtension . maxDepth ,
66
- retainCaseStyle : FeatureFlags . getBoolean ( 'codegen.retainCaseStyle' )
67
62
} ) ;
68
63
opsGenSpinner . succeed ( constants . INFO_MESSAGE_OPS_GEN_SUCCESS + path . relative ( path . resolve ( '.' ) , opsGenDirectory ) ) ;
69
64
} finally {
0 commit comments