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

remove "main" package.json entries and build step #44405

Closed
wants to merge 2 commits into from

Commits on May 3, 2024

  1. [skip ci] conditional Babel registration no longer necessary (faceboo…

    …k#44362)
    
    Summary:
    
    Packages that are built and directly run in the monorepo no longer need to worry about
    conditionally registering themselves to transpile Flow -> JS at runtime. Our build step
    strips this file now.
    
    Reviewed By: huntie
    
    Differential Revision: D56839521
    blakef authored and facebook-github-bot committed May 3, 2024
    Configuration menu
    Copy the full SHA
    0c1d099 View commit details
    Browse the repository at this point in the history
  2. remove "main" package.json entries and build step (facebook#44405)

    Summary:
    
    Conform to the style of other packages that are built using the monorepo build script, which don't use the `"main"` field.  Instead these utilise:
    
    - root level `index.flow.js` → `src/`
    - .flowconfig (both github and other) to resolve the module.
    
    Changelog: [Internal]
    
    Differential Revision: D56879279
    blakef authored and facebook-github-bot committed May 3, 2024
    Configuration menu
    Copy the full SHA
    cdfde98 View commit details
    Browse the repository at this point in the history