Skip to content

[email protected] uses an outdated version of picomatch with Yarn #253

@anilanar

Description

@anilanar

Environment

  • OS Version: MacOS
  • Node.js Version: 12.14.0

There was a regression in https://github.com/dotansimha/graphql-code-generator and after investigating the issue, I've concluded that there's a regression in [email protected].

You can see the original issue here, which has a reproduction in codesandbox: dotansimha/graphql-code-generator#3512

The problem:

export function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[] {
const info = micromatch.scan(pattern, {
...options,
parts: true
});
// See micromatch/picomatch#58 for more details
if (info.parts.length === 0) {
return [pattern];
}
return info.parts;
}

With [email protected] (latest version), info doesn't seem to have a parts property.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions