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

fix(melange): unify public libraries (in-workspace vs external) #7163

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

anmonteiro
Copy link
Collaborator

  • this change unifies the handling of public libraries in melange, whether they're local to the workspace or externally installed

@anmonteiro anmonteiro added the melange Melange rules and generator label Feb 22, 2023
@anmonteiro anmonteiro force-pushed the anmonteiro/installed-lib-path branch from 86885fa to 20fbd78 Compare February 22, 2023 22:08
@anmonteiro anmonteiro force-pushed the anmonteiro/installed-lib-path branch from 8a0f074 to 36be563 Compare February 23, 2023 17:03
@anmonteiro anmonteiro force-pushed the anmonteiro/installed-lib-path branch from 36be563 to 4cdf598 Compare February 23, 2023 17:04
@rgrinberg rgrinberg merged commit 676f6c7 into ocaml:main Feb 23, 2023
> grep -e "--bs-module-type" --after-context=1
--bs-module-type
commonjs

Js rules should include --bs-package-name
$ dune rules $output/node_modules/pkg.app/my_project/app/b.js |
$ dune rules $output/node_modules/pkg.app/b.js |
Copy link
Member

Choose a reason for hiding this comment

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

Not related to this pr, but shouldn't this be pkg/app?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It looks correct to me. the library name is pkg.app, we use that name for the node_modules folder.

@anmonteiro anmonteiro deleted the anmonteiro/installed-lib-path branch March 13, 2023 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
melange Melange rules and generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants