You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this change that landed in v20.3.2, the TypeScript plugin no longer infers a build target if the package.json exports field exposes any module that isn't located within the resolved TypeScript outDir.
Expected Behavior
I've got JavaScript modules in the project that live outside the outDir and aren't part of the TypeScript build that I'd like to export in addition to built files. From the code comment, it sounds like the current behavior is intentional, but I'm not sure how I can proceed with my intention. Thanks!
GitHub Repo
No response
Steps to Reproduce
Create a module outside the TypeScript outDir, i.e. a file that is not part of the TypeScript build. For example, if I've got TypeScript configured to build everything in the src directory in my project, add a file like test.js in the root of the project.
Add that file to package.json exports.
Observe the TypeScript plugin no longer infers a build target.
Current Behavior
With this change that landed in v20.3.2, the TypeScript plugin no longer infers a build target if the package.json
exports
field exposes any module that isn't located within the resolved TypeScriptoutDir
.Expected Behavior
I've got JavaScript modules in the project that live outside the outDir and aren't part of the TypeScript build that I'd like to export in addition to built files. From the code comment, it sounds like the current behavior is intentional, but I'm not sure how I can proceed with my intention. Thanks!
GitHub Repo
No response
Steps to Reproduce
src
directory in my project, add a file liketest.js
in the root of the project.exports
.build
target.Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: