Skip to content

Conversation

@kraenhansen
Copy link
Collaborator

Instead of adding Nx (see #51) - it seems we can keep things simple and have a single "bootstrap" script in the root to build and bootstrap things in sequence.

@kraenhansen kraenhansen self-assigned this Jun 12, 2025
@changeset-bot
Copy link

changeset-bot bot commented Jun 12, 2025

⚠️ No Changeset found

Latest commit: 8231143

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kraenhansen kraenhansen mentioned this pull request Jun 12, 2025

// Clean up the destination directory before copying
fs.rmSync(EXAMPLES_DIR, { recursive: true, force: true });
// fs.rmSync(EXAMPLES_DIR, { recursive: true, force: true });
Copy link
Contributor

Choose a reason for hiding this comment

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

did you mean to leave this commented out line in?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah. I might regret that, but for now it seems most appropriate. It does mean that someone disabling an example above would have to manually delete the dir, but the benefit is that we're not nuking the build directories.

"lint": "eslint .",
"test": "npm run test --workspace react-native-node-api --workspace cmake-rn --workspace gyp-to-cmake --workspace node-addon-examples"
"test": "npm run test --workspace react-native-node-api --workspace cmake-rn --workspace gyp-to-cmake --workspace node-addon-examples",
"bootstrap": "npm run build && npm run bootstrap --workspaces --if-present"
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add npm run bootstrap in the multi-platform CI?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, once #118 merge I believe.
I will do that in a follow-up PR.

@kraenhansen
Copy link
Collaborator Author

Merging for now, to keep things going. Please review in retrospect.

@kraenhansen kraenhansen merged commit 7b81cb6 into main Jun 17, 2025
4 checks passed
@kraenhansen kraenhansen deleted the kh/bootstrap-scripts branch June 17, 2025 07:16
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