-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Running build in watch mode for buildable node libraries does not generate a package.json
as part of the output.
#5724
Comments
Has this been released? |
Hey @DibyodyutiMondal. This is in latest master, but has not been released yet. It should be part of the next patch or minor version, whichever comes first. |
The issue has become worse in v12.6.0-next Forget package.json, now there is absolutely no output at all New issue or reopen this one? |
@DibyodyutiMondal I'll check this out today, see if I can reproduce. |
The problem seems resolved in v12.6.2 |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Running build in watch mode for buildable node libraries does not generate a
package.json
as part of the output.This breaks incremental building as dependents of this library keep telling me that it is not built.
Expected Behavior
package.json
should be generated in watch mode.This was the behavior up to @nrwl/node v11.4.0.
After v11.4.0, watch mode was broken (#5208), which was fixed in v12.3.4
Workarounds
I wrote a
watch
target for the library:I had to deliberately skip-nx-cache to avoid race condition, too
Additonal info:
In @nrwl/node v11.4.0, the output for
npx nx build project --watch
would beIn v12.3.4, the output is
This seems to suggest that in the v12.3.4 once it enters watch mode, no further additional processing is done, which was being done in v11.4.0
Environment
Node : 14.17.0
OS : win32 x64
npm : 7.13.0
nx : Not Found
@nrwl/angular : 12.3.4
@nrwl/cli : 12.3.4
@nrwl/cypress : 12.3.4
@nrwl/devkit : 12.3.4
@nrwl/eslint-plugin-nx : 12.3.4
@nrwl/express : Not Found
@nrwl/jest : 12.3.4
@nrwl/linter : 12.3.4
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 12.3.4
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.3.4
@nrwl/web : Not Found
@nrwl/workspace : 12.3.4
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.2.4
The text was updated successfully, but these errors were encountered: