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

chore: tweaks to CI jobs to account for symlink refactor #370

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

cprice404
Copy link
Contributor

No description provided.

@cprice404 cprice404 requested a review from bruuuuuuuce March 23, 2023 16:21
bruuuuuuuce
bruuuuuuuce previously approved these changes Mar 23, 2023
Copy link
Contributor

@bruuuuuuuce bruuuuuuuce left a comment

Choose a reason for hiding this comment

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

:shipit:

…symlink

This commit removes all of the package.json and ts config files
from the common dir since we are not treating it as a package, but
rather just as a directory of files that will be shared via symlink
between the SDKs.

We also need to do a hacky thing for now in the build script, where
we symlink the node_modules dir from the sdk into the common dir
so that imports from the files in common will work.  This won't be
an issue for the packaged artifact since the symlink won't exist.

In a subsequent commit we still need to add a solution for running
the shared tests in the common directory.
# this is gross, but npm will fail to import things
# during local builds of files in common if it doesn't
# find a node_modules directory there.
ln -s $(pwd)/node_modules ../common/node_modules
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bruuuuuuuce this is a hack that we might be able to find a better solution for in the future, but it should work for now. You will need to make sure you run this script to create this symlink for grpc-web sdk when you are using that path.

Copy link
Contributor

@bruuuuuuuce bruuuuuuuce left a comment

Choose a reason for hiding this comment

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

:shipit:

@cprice404 cprice404 merged commit d85854c into main Mar 23, 2023
@cprice404 cprice404 deleted the tweak-ci-for-symlink branch March 23, 2023 19:00
cprice404 added a commit that referenced this pull request Mar 24, 2023
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