Skip to content

chore/COMPASS-9709 add sync to compass script #113

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

Merged
merged 2 commits into from
Aug 19, 2025

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Aug 15, 2025

External Links

Description

Adds a script that listens for changes in the diagramming package, builds it, and updates the local Compass node_modules of the diagramming package with the build. This is useful for testing out changes in Compass and making sure they behave as expected.
Requires mongodb-js/compass#7206 in Compass to hot reload.

yarn run sync-to-compass

}),
);

console.log({ packageDir, srcDir, libDir, destDir });
Copy link
Collaborator

Choose a reason for hiding this comment

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

leftover?

Copy link
Member Author

Choose a reason for hiding this comment

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

I found it a bit useful as a way to double check what was changed. Happy to remove it if you find it to be some extra noise.

1_000,
{
leading: true,
trailing: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

why both?

Copy link
Member Author

Choose a reason for hiding this comment

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

why-not-both-why-not

Copy link
Member Author

@Anemy Anemy Aug 19, 2025

Choose a reason for hiding this comment

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

It's a bit quicker when updating one file and then also covers when updating a lot quickly. If we find it refreshing Compass twice we can move it to only be trailing, I'm thinking let's keep an eye on it.

Copy link
Collaborator

@paula-stacho paula-stacho left a comment

Choose a reason for hiding this comment

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

❤️

@Anemy
Copy link
Member Author

Anemy commented Aug 19, 2025

@lchans Going to merge this, happy to make any follow ups on suggestions or changes you might have.

@Anemy Anemy merged commit dfa6994 into main Aug 19, 2025
5 checks passed
@Anemy Anemy deleted the chore/COMPASS-9709-add-sync-to-compass-script branch August 19, 2025 18:17
@lchans
Copy link
Collaborator

lchans commented Aug 19, 2025

Thanks @Anemy - Looks fine to me, feel free to add me or @adrianhhong to any of the reviews so it pops up on our radar!

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.

3 participants