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

cadl-java, find the jar from relative path of the JS file #1687

Merged
merged 2 commits into from
Sep 9, 2022

Conversation

weidongxu-microsoft
Copy link
Member

@weidongxu-microsoft weidongxu-microsoft commented Sep 9, 2022

instead of from CWD

test change due to cadl-ranch

@weidongxu-microsoft weidongxu-microsoft changed the title cadl-java, find the jar from relative path of the JS cadl-java, find the jar from relative path of the JS file Sep 9, 2022

export async function $onEmit(program: Program) {
const __dirname = dirname(fileURLToPath(import.meta.url));
Copy link
Member Author

Choose a reason for hiding this comment

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

seems a trick in nodejs? nodejs/node#28114

@weidongxu-microsoft weidongxu-microsoft marked this pull request as ready for review September 9, 2022 04:31
@weidongxu-microsoft weidongxu-microsoft merged commit d4ac606 into Azure:main Sep 9, 2022
@weidongxu-microsoft weidongxu-microsoft deleted the cadl_upgrade branch September 9, 2022 06:09
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.

1 participant