Skip to content

fix: Declare micromatch as a dependency - #84

Open
TrevorBurnham wants to merge 1 commit into
cloudscape-design:mainfrom
TrevorBurnham:fix-declare-micromatch
Open

fix: Declare micromatch as a dependency#84
TrevorBurnham wants to merge 1 commit into
cloudscape-design:mainfrom
TrevorBurnham:fix-declare-micromatch

Conversation

@TrevorBurnham

Copy link
Copy Markdown
Contributor

Three ESLint rules import micromatch (ban-files, no-internal-in-public-interfaces, react-server-components-directive), and it was declared nowhere in the manifest. It resolves today only by hoisting from fast-glob and lint-staged, both devDependencies, so a consumer whose own tree lacks those gets a module-not-found at lint time. minimatch was declared in its place and is imported by nothing.

Effect on consumers

@cloudscape-design/build-tools is not published to npm. All 10 consuming repos declare it as github:cloudscape-design/build-tools#main and none of their committed lockfiles contain a @cloudscape-design/* entry, so merging reaches every consumer on its next install. Declaring a dependency they already resolve transitively cannot break them, and no consumer declares or imports minimatch.

Lockfile

One insertion, 43 deletions: the orphaned node_modules/minimatch entry with its nested balanced-match and brace-expansion, plus six stale devOptional: true flags that still described micromatch as dev-only. Produced with npm 10 deliberately, since npm 11 rewrites a further ~960 unrelated lines by pruning an optional-peer subtree.

Split out of #77, which is otherwise unrelated to it.

Three ESLint rules import micromatch, which was declared nowhere in the
manifest: it resolved only by hoisting from fast-glob and lint-staged, both
devDependencies, so a consumer's tree can be missing it entirely. minimatch was
declared in its place and is imported by nothing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant