Skip to content

Do not use pushd and popd when pnpm wasm:build#516

Merged
tdrz merged 1 commit intomainfrom
tudor/buildWasmCmd
Feb 3, 2025
Merged

Do not use pushd and popd when pnpm wasm:build#516
tdrz merged 1 commit intomainfrom
tudor/buildWasmCmd

Conversation

@tdrz
Copy link
Collaborator

@tdrz tdrz commented Jan 29, 2025

Use cd instead of pushd to change dirs when building wasm.

@tdrz tdrz requested a review from samwillis January 29, 2025 14:47
@github-actions
Copy link
Contributor

"build:all": "pnpm wasm:build && pnpm ts:build",
"ts:build": "pnpm -r --filter \"./packages/**\" build",
"wasm:build": "bash -c \"pushd postgres-pglite && ./pglite/cibuild/build-with-docker.sh && popd && cp -r postgres-pglite/pglite/dist ./packages/pglite/release \""
"wasm:build": "cd postgres-pglite && ./pglite/cibuild/build-with-docker.sh && cd .. && cp -r postgres-pglite/pglite/dist ./packages/pglite/release"
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure there's a clean cmd for removing release so maybe:
mkdir -p ./packages/pglite/release && cp -r postgres-pglite/pglite/dist/* ./packages/pglite/release/

Copy link
Collaborator

@samwillis samwillis left a comment

Choose a reason for hiding this comment

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

👍

@tdrz tdrz merged commit 57f9370 into main Feb 3, 2025
7 checks passed
@tdrz tdrz deleted the tudor/buildWasmCmd branch February 3, 2025 10:55
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.

3 participants