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

Add NinjaBuilder.outputDir #39

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Conversation

elliotgoodrich
Copy link
Owner

Add a way for @ninjutsu-build/* packages to run from a different working directory from where the final .ninja file will be written to.

This is because all plugins assume that their dependent scripts and executables reside in the node_modules folder in the current working directory. However, we (personally) would like to move our configure.mjs script to a configure folder to avoid a top-level node_modules directory and to keep the root directory clean. In order to support this the plugins will need to know to put the configure directory in the paths to scripts/executables found in the configure/node_modules directory.

This change does not fix any plugins at the moment, only change the core NinjaBuilder component. The plugins will be fixed in future commits.

Add a way for `@ninjutsu-build/*` packages to run from a different
working directory from where the final `.ninja` file will be written to.

This is because all plugins assume that their dependent scripts and
executables reside in the `node_modules` folder in the current working
directory.  However, we (personally) would like to move our
`configure.mjs` script to a `configure` folder to avoid a top-level
`node_modules` directory and to keep the root directory clean.  In order
to support this the plugins will need to know to put the `configure`
directory in the paths to scripts/executables found in the
`configure/node_modules` directory.

This change does not fix any plugins at the moment, only change the core
`NinjaBuilder` component.  The plugins will be fixed in future commits.
@elliotgoodrich elliotgoodrich merged commit a3c594e into main Apr 9, 2024
9 checks passed
@elliotgoodrich elliotgoodrich deleted the add-ninjabuilder-outputDir branch April 9, 2024 08:04
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.

1 participant