You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support limiting files added to self-hosted packages (#149)
## Motivation for the change, related issues
Our self-hosted `@wp-playground/remote` package currently includes
WordPress files when it should only include type definitions. Let's fix
this.
Fixes#146
## Implementation details
This updates our package-for-self-hosting Nx executor to support the
package.json [files
property](https://docs.npmjs.com/cli/v11/configuring-npm/package-json#files)
which the `@wp-playground/remote` uses to limit its published files.
## Testing Instructions (or ideally a Blueprint)
- Before applying this patch, run `npx nx run-many --all
--target=package-for-self-hosting
--hostingBaseUrl=http://127.0.0.1:1234` to get a baseline for
comparison.
- Apply this patch
- Run `npx nx run-many --all --target=package-for-self-hosting
--hostingBaseUrl=http://127.0.0.1:2345`
- Compare the files in the packages created under
`dist/packages-for-self-hosting`.
- The only differences should be the different package.json dependency
URLs and the files that are removed from `@wp-playground/remote` after
this fix.
0 commit comments