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

cli bash replaced with node #285

Merged
merged 2 commits into from
Nov 8, 2022
Merged

cli bash replaced with node #285

merged 2 commits into from
Nov 8, 2022

Conversation

volovyks
Copy link
Collaborator

@volovyks volovyks commented Nov 4, 2022

No description provided.

@volovyks volovyks requested a review from ailisp as a code owner November 4, 2022 14:01
Copy link
Member

@ailisp ailisp left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@@ -160,7 +162,7 @@ async function createMethodsHeaderFile(rollupTarget: string, verbose = false) {
""
);

await fs.writeFile(`${buildPath}/methods.h`, methods);
fs.writeFileSync(`${buildPath}/methods.h`, methods);
Copy link
Member

Choose a reason for hiding this comment

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

What is the reason to prefer writeFileSync over await writeFile?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think they are the same, the only reason is consistency.
The main reason to move from bash to node scripts is Multiplatform (Windows) support.

@volovyks volovyks merged commit 85c2f6c into develop Nov 8, 2022
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