cleanup(misc): migrate to picomatch (#30485)
This commit is contained in:
parent
1ab8bdbe98
commit
da8baa95da
@ -10,6 +10,10 @@
|
|||||||
{
|
{
|
||||||
"name": "chalk",
|
"name": "chalk",
|
||||||
"message": "Please use `picocolors` in place of `chalk` for rendering terminal colors"
|
"message": "Please use `picocolors` in place of `chalk` for rendering terminal colors"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "minimatch",
|
||||||
|
"message": "Please use `picomatch` instead."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,8 +38,8 @@
|
|||||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||||
"@rollup/plugin-typescript": "^12.1.0",
|
"@rollup/plugin-typescript": "^12.1.0",
|
||||||
"autoprefixer": "^10.4.9",
|
"autoprefixer": "^10.4.9",
|
||||||
"minimatch": "9.0.3",
|
|
||||||
"picocolors": "^1.1.0",
|
"picocolors": "^1.1.0",
|
||||||
|
"picomatch": "4.0.2",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.4.38",
|
||||||
"rollup": "^4.14.0",
|
"rollup": "^4.14.0",
|
||||||
"rollup-plugin-copy": "^3.5.0",
|
"rollup-plugin-copy": "^3.5.0",
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
type ProjectConfiguration,
|
type ProjectConfiguration,
|
||||||
type Tree,
|
type Tree,
|
||||||
} from '@nx/devkit';
|
} from '@nx/devkit';
|
||||||
import { minimatch } from 'minimatch';
|
import picomatch = require('picomatch');
|
||||||
|
|
||||||
export async function addPluginRegistrations<T>(
|
export async function addPluginRegistrations<T>(
|
||||||
tree: Tree,
|
tree: Tree,
|
||||||
@ -38,7 +38,7 @@ export async function addPluginRegistrations<T>(
|
|||||||
} else if (existingPlugin.include) {
|
} else if (existingPlugin.include) {
|
||||||
if (
|
if (
|
||||||
!existingPlugin.include.some((include) =>
|
!existingPlugin.include.some((include) =>
|
||||||
minimatch(projectIncludeGlob, include, { dot: true })
|
picomatch(include)(projectIncludeGlob)
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
existingPlugin.include.push(projectIncludeGlob);
|
existingPlugin.include.push(projectIncludeGlob);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user