Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: AppSync Functions fail to compile on Windows OS #24

Merged
merged 10 commits into from
May 8, 2024

Conversation

flamingquaks
Copy link
Contributor

@flamingquaks flamingquaks commented May 8, 2024

When attempting to run npm run build on a Windows OS, the compiler would often freeze or error. This was related to the way that windows handles wildcard filepaths.

To allow the AppSync functions to be compiled in accordance with AWS Best Practices (See DynamoDB Resolvers Documentation, the esbuild execution is now defined in lib/api/functions/bundle.ts which is executed by npm run build:appsync (npm run build includes a call to npm run build:appsync). This will call the bundle logic from ts-node.
By shifting the logic into a file, I'm able to remain OS agnostic and more directly locate the specific files that need compilation.

PR also contains a fix for the UI construct that was failing to parse the configuration file properly.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

@peteconraws peteconraws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to build in Windows OK

@flamingquaks flamingquaks merged commit 6a9779b into main May 8, 2024
@flamingquaks flamingquaks deleted the fix-windows-build branch May 14, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants