Skip to content

fix: compare tsconfig.federation.json using isDeepStrictEqual #820

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kettei-sproutty
Copy link

@kettei-sproutty kettei-sproutty commented Apr 3, 2025

Closes #785, wheredoesFileExist was comparing JSON.stringify with fs.readFileSync as analyzed here.

  • doesFileExist is now unused, let me know if you want me to remove it.


return isDeepStrictEqual(currentJson, newJson);
} catch (_error) {
return false;
Copy link
Author

Choose a reason for hiding this comment

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

Here I don't know if logging the error, throwing or what else. For now I just ignore it and return false, that in this very use-specific case will just write the content again. Let me know if you want to handle this in other ways

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.

Endless Loop in "Building Federation Artefacts" When Using @tailwindcss/postcss with Tailwind CSS 4
1 participant