Skip to content

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
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