Skip to content

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

Draft
seanmorris wants to merge 1 commit into
WordPress:trunkfrom
seanmorris:sm-copy-wasm-with-sourcemaps
Draft

[DRAFT] Moving @php-wasm/node's files correctly when sourcemaps & source trees are present#130
seanmorris wants to merge 1 commit into
WordPress:trunkfrom
seanmorris:sm-copy-wasm-with-sourcemaps

Conversation

@seanmorris
Copy link
Copy Markdown
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
Copy Markdown
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

"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
Copy Markdown
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
Copy Markdown
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