Skip to content

Commit

Permalink
fix: add codegen for non-ios frontends; updated e2e test for iOS fron…
Browse files Browse the repository at this point in the history
…tend (#749)
  • Loading branch information
phani-srikar authored Oct 20, 2023
1 parent a033f33 commit 211bb0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function constructGraphQLConfig(
extensions.amplify.codeGenTarget = 'swift';
extensions.amplify.docsFilePath = 'graphql';
extensions.amplify.generatedFileName = 'API.swift';
excludes.push('API.swift');
break;
default:
schemaPath = `amplify/backend/api/${projectName}/build/schema.graphql`;
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-codegen/src/commands/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function add(context, apiId = null, region = 'us-east-1') {
const newProject = {
projectName: withoutInit ? 'Codegen Project' : apiDetails.name,
includes: answer.includePattern,
excludes: [...answer.excludePattern, answer.generatedFileName],
excludes: [...answer.excludePattern, answer.generatedFileName]?.filter(item => item),
// Set schema path to use posix separators. Node can handle windows and posix separators regradless of platform
// Ensures all paths in .graphlqconfig.yml use posix style
schema: schema.split(path.win32.sep).join(path.posix.sep),
Expand Down

0 comments on commit 211bb0d

Please sign in to comment.