-
Notifications
You must be signed in to change notification settings - Fork 300
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
Wrong behavior if --outDir is a prefix of project dir #3274
Comments
Oh, thanks a lot for providing the code, I can indeed reproduce. Still unsure why, but it seems the problem is using I will try to find what's causing the problem exactly. I remember we had a similar issue in the past and had to "ban" some outDirs like "bin", maybe we need to add "fable" to the list 😅 |
I think it might be when the output directory is a prefix of the source directory - in this case "fable" |
You're right! 👀 The problem also happens when using |
Description
A simple project layout like so:
When compiling like this:
The transpiled file
Program.fs.js
appears infable_src
instead offable
.Repro code
Please see this repo: https://github.com/njlr/fable-out-dir-repro
The GitHub Action demonstrates the issue.
Expected and actual results
I would expect the transpiled file to be in the
--outDir
, sofable/Program.fs.js
Instead it appears under the source directory at
fable_src/Program.fs.js
The
_
infable_src
may be a significant factor.Related information
3.7.20
The text was updated successfully, but these errors were encountered: