I'm encountering an issue with running the command attw --pack in a monorepo managed by nx. It is unclear whether this is a bug or if npm pack or attw does not support this use case.
Steps to Reproduce
Run the command:
nx run-many --target=lint:attw --all --parallel
lint:attw => attw --pack
The attw command executes and displays a result page, but the resolutions for node10, node16, and bundler are incorrect.
Manually navigating into the repository and running the command directly:
attw --pack
yields the correct resolution.
Expected Behavior
When running attw --pack through nx, I expect it to resolve the node versions and bundler correctly, just as it does when run directly from the repository or when the package is released.
Actual Behavior
Running attw --pack through nx results in incorrect resolutions for node10, node16, and bundler, while running it directly from the repository works as expected.
Questions
Is there a known limitation with using npm pack or attw --pack in an nx monorepo environment?
Is there a recommended way to configure or run this command through nx to ensure correct resolution?
I'm encountering an issue with running the command
attw --pack
in a monorepo managed bynx
. It is unclear whether this is a bug or ifnpm pack
orattw
does not support this use case.Steps to Reproduce
Run the command:
The
attw
command executes and displays a result page, but the resolutions fornode10
,node16
, andbundler
are incorrect.Manually navigating into the repository and running the command directly:
yields the correct resolution.
Expected Behavior
When running
attw --pack
throughnx
, I expect it to resolve the node versions and bundler correctly, just as it does when run directly from the repository or when the package is released.Actual Behavior
Running
attw --pack
throughnx
results in incorrect resolutions fornode10
,node16
, and bundler, while running it directly from the repository works as expected.Questions
npm pack
orattw --pack
in annx
monorepo environment?nx
to ensure correct resolution?Environment
node18
tillnode22
19.7.4
pnpm