diff --git a/packages/rollup/.eslintrc.json b/packages/rollup/.eslintrc.json index c0ce5c4320..de5f9f4045 100644 --- a/packages/rollup/.eslintrc.json +++ b/packages/rollup/.eslintrc.json @@ -10,6 +10,10 @@ { "name": "chalk", "message": "Please use `picocolors` in place of `chalk` for rendering terminal colors" + }, + { + "name": "minimatch", + "message": "Please use `picomatch` instead." } ] } diff --git a/packages/rollup/package.json b/packages/rollup/package.json index 6b23906f39..a39b8bef83 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -38,8 +38,8 @@ "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-typescript": "^12.1.0", "autoprefixer": "^10.4.9", - "minimatch": "9.0.3", "picocolors": "^1.1.0", + "picomatch": "4.0.2", "postcss": "^8.4.38", "rollup": "^4.14.0", "rollup-plugin-copy": "^3.5.0", diff --git a/packages/rollup/src/generators/convert-to-inferred/lib/add-plugin-registrations.ts b/packages/rollup/src/generators/convert-to-inferred/lib/add-plugin-registrations.ts index 7f83f0f912..c396b5b130 100644 --- a/packages/rollup/src/generators/convert-to-inferred/lib/add-plugin-registrations.ts +++ b/packages/rollup/src/generators/convert-to-inferred/lib/add-plugin-registrations.ts @@ -5,7 +5,7 @@ import { type ProjectConfiguration, type Tree, } from '@nx/devkit'; -import { minimatch } from 'minimatch'; +import picomatch = require('picomatch'); export async function addPluginRegistrations( tree: Tree, @@ -38,7 +38,7 @@ export async function addPluginRegistrations( } else if (existingPlugin.include) { if ( !existingPlugin.include.some((include) => - minimatch(projectIncludeGlob, include, { dot: true }) + picomatch(include)(projectIncludeGlob) ) ) { existingPlugin.include.push(projectIncludeGlob);