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

[DRAFT] Moving @php-wasm/node's files correctly when sourcemaps & source trees are present #130

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

seanmorris
Copy link
Contributor

DRAFT

What?

This ensures @php-wasm/nodes' files are copied properly when the wordpress-playground package has been built with sourcemaps.

Why?

When wordpress-playground builds php-wasm with sourcemaps, the directory structure changes slightly. This change updates the code to account for that.

How?

It iterates over the directory where the sub-directories containing the files live, and moves them, preserving the sub-paths.

Testing Instructions

...

@adamziel
Copy link
Collaborator

adamziel commented Dec 8, 2023

@seanmorris FYI you can use the "draft PR" feature for drafts:

CleanShot 2023-12-08 at 16 44 41@2x

@@ -46,7 +46,7 @@
"cp ./LICENSE dist/packages/vscode-extension",
"cp packages/vscode-extension/package.json dist/packages/vscode-extension",
"cp packages/vscode-extension/README.md dist/packages/vscode-extension",
"cp node_modules/@php-wasm/node/*.wasm dist/packages/vscode-extension"
"find node_modules/@php-wasm/node/ -type f -name php_*.wasm | while read FILE; do cp $FILE dist/packages/vscode-extension; done"
Copy link
Collaborator

@adamziel adamziel Dec 8, 2023

Choose a reason for hiding this comment

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

will that re-create nested directories like kitchen-sink?

@adamziel
Copy link
Collaborator

How can this be tested? Or is this not meant for testing at this point? I see there's [DRAFT] in the title so I went ahead and converted this to a draft PR.

@adamziel adamziel marked this pull request as draft December 15, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants