Skip to content

fix: use spawn#362

Open
AugustinMauroy wants to merge 2 commits intomainfrom
fix-chalk
Open

fix: use spawn#362
AugustinMauroy wants to merge 2 commits intomainfrom
fix-chalk

Conversation

@AugustinMauroy
Copy link
Member

execSync didn't exist on LLRT

@AugustinMauroy AugustinMauroy added Fast track 🤘 awaiting reviewer Author has responded and needs action from the reviewer labels Feb 2, 2026
@@ -1,4 +1,4 @@
import { execSync } from 'node:child_process';
import { spawn } from 'node:child_process';
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be worth adding some unit tests with JSSG? (both to confirm the execSync error and the expected spawn behaviour`?)

Copy link
Member Author

Choose a reason for hiding this comment

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

in next pr, because now it's just a patch. also codemod team propose to use json ast on package.json to remove dep & then run install command. I'm going to explore that.

Copy link
Member

Choose a reason for hiding this comment

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

Why not in this PR to ensure the patch works? The lack of a test is what caused it to slip through in the first place.

Copy link
Member Author

Choose a reason for hiding this comment

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

@mohebifar how can we allow capability on jssg test ?

Copy link
Member

Choose a reason for hiding this comment

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

npx codemod jssg test --allow-child-process ...

@JakobJingleheimer JakobJingleheimer added awaiting author Reviewer has requested something from the author and removed awaiting reviewer Author has responded and needs action from the reviewer labels Feb 5, 2026
Copy link
Member

@JakobJingleheimer JakobJingleheimer left a comment

Choose a reason for hiding this comment

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

This looks good, but please add a test to confirm the fix is working (and prevent it happening again).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting author Reviewer has requested something from the author Fast track 🤘

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants