-
Notifications
You must be signed in to change notification settings - Fork 1
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
Production build assumes existence of inc/
directory within project root
#92
Comments
@jonmcp Which version of Build Tools are you running here? |
I was actually running on |
@jonmcp I've done some testing and the problem isn't the missing I've found the following file and directory structures work as expected: ✅ Working:
✅ Working:
❌ Failing:
Tested by using the cd example-site
node ../src/cli.js build --once test-client-plugin,test-plugin |
Ah; thanks for that, and apologies for not attempting that during my testing prior to creating this issue. |
@jonmcp Yeah that would be great thank you. |
inc/
directory within project root
What happened?
When running a build, Build Tools assumes the existence of an
inc/
directory in the project root. If the directory doesn't exist, a raw error is thrown by Node.js as Build Tools attempts to write to the fileinc/asset-settings.php
.Ideally, Build Tools would attempt create the directory (if it doesn't exist); alternatively, a more user-friendly error message could be thrown.
The command I am running to reproduce this is
My directory structure looks like the following:
Which environments are you experiencing the issue on?
CLI (macOS, Windows, etc)
Relevant log output
The text was updated successfully, but these errors were encountered: