-
Notifications
You must be signed in to change notification settings - Fork 16
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
Sources with type "dev" are not being compiled and are skipped. #124
Comments
Is this something that is being worked or would a PR be accepted? Any info on blockers would be nice. Without this I don't think most people will be able to use rewatch. |
A PR would be super helpful here @Yummy-sk / @CarlOlson - I remember me and @jfrolich having a discussion about this at some point but I can't recall exactly why we skipped them. Perhaps enabling them 'just works ™' |
Ok - so the reason we don't do this, is that for packages that get installed through Key example being the test folder of rescript-core - it's not in the corresponding package.json. What we can do - and what we've done in the past, is just swallow the error, which I think could work here. We can just try to read the folder and compile. Perhaps we should have a |
I believe I'm hitting this as well in https://github.com/rescript-lang/experimental-rescript-webapi rescript.json snippet: "sources": [
{
"dir": "src",
"subdirs": true
},
{
"dir": "tests",
"subdirs": true,
"type": "dev"
}
], When users install my package the folder will indeed not be there. |
I noticed that sources with the type "dev" are not being compiled and are being skipped in the
get_source_files
function. ( packages.rs#L451 )Is there a reason for skipping the dev sources?
The text was updated successfully, but these errors were encountered: