Tests @wordpress/build with pnpm strict hoisting (hoist-pattern=[]).
With pnpm strict hoisting, packages are only accessible from where they are declared. The build tool must resolve packages from the importing file's context, not from the root.
root/ # no wordpress deps here
packages/my-utils/
package.json # has @wordpress/data
index.ts
routes/example/
package.json # has @wordpress/notices, uses @test/my-utils
stage.tsx # imports from both
pnpm install
pnpm build
cat build/routes/example/content.min.asset.phpShould list wp-data and wp-notices. If either is missing, the fix does not work.