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

fix: workaround wireit #1092

Merged
merged 1 commit into from
Feb 1, 2023
Merged

fix: workaround wireit #1092

merged 1 commit into from
Feb 1, 2023

Conversation

mdonnalley
Copy link
Contributor

wireit does not play nicely with child_process and shelljs. We can work around this by using yarn tsc instead of yarn build for compiling the JIT plugins during manifest generation.

@@ -61,7 +61,7 @@ export default class Manifest extends Command {
this.cloneRepo(repoUrl, fullPath, maxSatisfying)

this.executeCommand('yarn', {cwd: fullPath})
this.executeCommand('yarn build', {cwd: fullPath})
this.executeCommand('yarn tsc', {cwd: fullPath})
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain why this didn't work with yarn build ? Is it related to the use of --incremental, or something else?

https://github.com/salesforcecli/plugin-custom-metadata/blob/0434b94bf4c2a3a1a0bd4728b4bc6d99e2b28ecb/package.json#L155

@mdonnalley mdonnalley merged commit 44d9f69 into main Feb 1, 2023
@mdonnalley mdonnalley deleted the mdonnalley/wireit-safe branch February 1, 2023 19:07
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.

None yet

2 participants