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

feat: infer the outputPath option from the options.outputPath of … #53

Closed

Conversation

tinesoft
Copy link
Contributor

…the specified buildTarget

@nx-cloud
Copy link

nx-cloud bot commented Mar 27, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ff0df2e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 4 targets

Sent with 💌 from NxCloud.

@TheUnderScorer
Copy link
Owner

Thanks a lot for the pr @tinesoft! Could you add at least one test for this feature?

@tinesoft
Copy link
Contributor Author

Yeah sorry for the missing test...

I wanted to add (e2e) tests, but I could not manage to have a basic existing e2e to work ( timeout issue in jest)...

This is a open bug in Nx that appeared since v15.x.x...
nrwl/nx#15891

Can you run e2e on your local machine?

@TheUnderScorer
Copy link
Owner

Yep, they work for me locally.

If it's a problem, you can try to add at least some basic test and run it through CI, I can improve it later :)

@tinesoft
Copy link
Contributor Author

Ok, I will try to do that and update the PR :-)

@@ -99,7 +103,7 @@ export async function semanticRelease(
/**
* @FIXME Recently semantic-release became esm only, but until NX will support plugins in ESM, we have to use this dirty hack :/
* */
function getSemanticRelease() {
export/** for testing only!*/ function getSemanticRelease() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added a basic test for the semnatic-releaseexecutor, but I was NOt able to make it work, specially because I didnt find a way to mock the ESM module...

Any help here is weelcome !

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for that! I will try to take a look at it when I will have a moment 😄

@TheUnderScorer
Copy link
Owner

Hey @tinesoft!

I finally had some time to work on this and merged it in #96. Thanks for your help!

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.

None yet

2 participants