@nx/enforce-module-boundaries
incorrectly allows deep imports
#29258
Labels
@nx/enforce-module-boundaries
incorrectly allows deep imports
#29258
Current Behavior
Given our repro repo
@here/cart
can import frompackages/utilities/src/private/private.ts
via@here/utilities/src/private/private
even though it's not explicitly exported frompackages/utilities/src/index.ts
Expected Behavior
A lint error at
import { privatePrivate } from '@here/utilities/src/private/private';
saying something like "only root level exports can be imported"GitHub Repo
https://github.com/Katli95/nx-test
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
@nx/enforce-module-boundaries
correctly handles:Possibly related to #26646
The text was updated successfully, but these errors were encountered: