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
app.cwd points to original cwd when passing --cwd #947
Comments
@mootari Thanks for the issue! If you're reporting a bug, please be sure to include:
If your issue is related to one of the following, please open an issue there:
|
Found the culprit. The initial cached value gets set to the |
Hmm, this probably means all or most of them are. I'm guessing our template is wrong.
great! want to do a pr? Sorry if you already have, I'm getting caught up... |
btw, I'm going to start working on 1.0 of assemble soon. One goal is to simplify some of that logic, but I'd also like to add some CLI commands. If you have any suggestions or requests we should get an issue started to discuss, thanks! |
Prerequisites
Ready? Great! Please provide the following details:
version
0.24.3
description
When invoking assemble from the shell and passing the --cwd option, assemble correctly changes process.cwd to the specified directory, but app.cwd still returns the original cwd.
/dir/src/assemblefile.js
The problem appears to be that the original cwd gets cached. I had plastered breakpoints all over
base-cwd/index.js
but was unable to capture the first assignment. Whenever I got to break in either get or set, cached had already assigned the initial cwd.The text was updated successfully, but these errors were encountered: