Skip to content

Commit 211bb0d

Browse files
authored
fix: add codegen for non-ios frontends; updated e2e test for iOS frontend (#749)
1 parent a033f33 commit 211bb0d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/amplify-codegen-e2e-core/src/utils/graphql-config-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export function constructGraphQLConfig(
3535
extensions.amplify.codeGenTarget = 'swift';
3636
extensions.amplify.docsFilePath = 'graphql';
3737
extensions.amplify.generatedFileName = 'API.swift';
38+
excludes.push('API.swift');
3839
break;
3940
default:
4041
schemaPath = `amplify/backend/api/${projectName}/build/schema.graphql`;

packages/amplify-codegen/src/commands/add.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ async function add(context, apiId = null, region = 'us-east-1') {
133133
const newProject = {
134134
projectName: withoutInit ? 'Codegen Project' : apiDetails.name,
135135
includes: answer.includePattern,
136-
excludes: [...answer.excludePattern, answer.generatedFileName],
136+
excludes: [...answer.excludePattern, answer.generatedFileName]?.filter(item => item),
137137
// Set schema path to use posix separators. Node can handle windows and posix separators regradless of platform
138138
// Ensures all paths in .graphlqconfig.yml use posix style
139139
schema: schema.split(path.win32.sep).join(path.posix.sep),

0 commit comments

Comments
 (0)