Skip to content

Fix crash on missing dev dependency #161

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

Merged
merged 7 commits into from
May 6, 2025

Conversation

Bushuo
Copy link
Collaborator

@Bushuo Bushuo commented May 4, 2025

Like mentioned in #124 (comment) there is a case where dependencies are listed in bs-dev-dependencies but can not be found in the file system. For example in @rescript/core the dev dependency @rescript/tools is not included in the final npm package.

This PR fixes this issue by ignoring missing dev deps. It is still an error for non dev deps.

This matches the behavior of bsb when I tried it on the testrepo.

@Bushuo Bushuo marked this pull request as ready for review May 4, 2025 22:05
@@ -33,51 +33,57 @@ fi
node ./packages/main/src/Main.mjs > ./packages/main/src/output.txt

mv ./packages/main/src/Main.res ./packages/main/src/Main2.res
rewatch build --no-timing=true &> ../tests/snapshots/rename-file.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

why remove no-timing?

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh duplicated... i see 👍

@Bushuo Bushuo merged commit 9798cad into rescript-lang:master May 6, 2025
1 check passed
@Bushuo Bushuo deleted the fix-panic-compile-dev branch May 7, 2025 19:50
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