Skip to content

fix(amplify-codegen): disable cleanGeneratedModels Feature #109

Merged
phani-srikar merged 1 commit intomasterfrom
revokeCleanFeature
Mar 12, 2021
Merged

fix(amplify-codegen): disable cleanGeneratedModels Feature #109
phani-srikar merged 1 commit intomasterfrom
revokeCleanFeature

Conversation

@phani-srikar
Copy link
Copy Markdown
Contributor

Issue #, if available: https://github.com/aws-amplify/amplify-cli/issues/6868

Description of changes:
This PR rollsback the cleanGeneratedModels Feature.

How are these changes tested:
using a sample app

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

// clean the output directory before re-generating models
const cleanOutputPath = FeatureFlags.getBoolean('codegen.cleanGeneratedModelsDirectory');
if (cleanOutputPath) {
await fs.emptyDir(outputPath);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this the only place this command is run?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes

@phani-srikar phani-srikar merged commit 98b93a5 into master Mar 12, 2021
@phani-srikar phani-srikar deleted the revokeCleanFeature branch April 21, 2021 01:57
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