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

Build: Ship the default TypeScript .d.ts declaration files, not rollups #1593

Merged
merged 6 commits into from
Jul 16, 2024

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Jul 9, 2024

pipeline. This caused the published packages to ship not just their own types but also all the types they import. This creates a lot of noise and also type identity conflicts between packages. This PR removes most of these rollup tasks, leaving only two:

  • In the @wp-playground/blueprints package for Types->JSON schema generation
  • In the @wp-playground/client package to make it self-contained and dependencyless.

Related to #1577

Testing instructions

Run npm run build and confirm the built packages only export their own types.

pipeline. This caused the published packages to ship not just their own
types but also all the types they import. This creates a lot of noise
and also type identity conflicts between packages. This PR removes most
of these rollup tasks, leaving only two:

* In the `@wp-playground/blueprints` package for Types->JSON schema
  generation
* In the `@wp-playground/client` package to make it self-contained and
  dependencyless.

 ## Testing instructions

Run `npm run build` and confirm the built packages only export their own
types.
@adamziel adamziel self-assigned this Jul 9, 2024
Copy link
Member

@brandonpayton brandonpayton left a comment

Choose a reason for hiding this comment

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

This looks good.

I made a small fix to the php-wasm/node build to avoid bulid errors due to a missing directory.

@adamziel adamziel merged commit 56e4b0c into trunk Jul 16, 2024
5 checks passed
@adamziel adamziel deleted the publish-raw-types-not-rollups branch July 16, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended [Type] Repo / Project Management
2 participants