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

Introduce a new @wp-playground/common package to avoid circular depencies #1387

Merged
merged 2 commits into from
May 14, 2024

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented May 14, 2024

Rationale: I couldn't add a installSqlitePlugin function to @wp-playground/wordpress as it imported Blueprints which already relied on @wp-playground/wordpress.

The new @wp-playground/common package should give us some leeway to start implementing parts of the boot pipeline similarly to @php-wasm/util.

As a side note, I'm not a fan of these "common" packages as they tend to grow indefinitely overtime and attract every bit of code that doesn't fit anywhere else. Let's be extra careful when adding new "common" functions and always ask "is my design right? could this be structured differently? before adding more code.

Testing instructions

Confirm the unit tests pass

@adamziel adamziel requested a review from a team as a code owner May 14, 2024 08:30
@adamziel adamziel merged commit 32c7d6f into trunk May 14, 2024
5 checks passed
@adamziel adamziel deleted the playground-common-package branch May 14, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant