nx-plugins icon indicating copy to clipboard operation
nx-plugins copied to clipboard

@ns3/nx-serverless withPatterns not working in Windows

Open thang-lq-ng opened this issue 3 months ago • 0 comments

When used in Windows platform, the plugin doesn't pick up any handler files specified by the patterns passed into withPatterns (even the default one). I believe the reason is that path.join() returns Windows paths with backslashes while by default glob expects forward slashes.

https://github.com/Bielik20/nx-plugins/blob/dbeec5d99141acadad95aa673d26be2db9a3575b/packages/nx-serverless/src/utils/with-patterns.ts#L9-L13

I think the fix for this is to set the windowsPathsNoEscape option in glob to true (as also explained in the docs). Can I open a PR for this?

thang-lq-ng avatar Sep 05 '25 16:09 thang-lq-ng