feat(misc): update minimatch version used across packages (#21207)

This commit is contained in:
Leosvel Pérez Espinosa 2024-01-18 19:08:15 +01:00 committed by GitHub
parent e4e7f54bfb
commit f98a16ff57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
29 changed files with 40 additions and 43 deletions

View File

@ -225,7 +225,7 @@
"metro-config": "0.76.8",
"metro-resolver": "0.76.8",
"mini-css-extract-plugin": "~2.4.7",
"minimatch": "3.0.5",
"minimatch": "9.0.3",
"next-sitemap": "^3.1.10",
"ng-packagr": "~17.0.0",
"node-fetch": "^2.6.7",

View File

@ -52,7 +52,7 @@
"find-cache-dir": "^3.3.2",
"ignore": "^5.0.4",
"magic-string": "~0.30.2",
"minimatch": "3.0.5",
"minimatch": "9.0.3",
"semver": "7.5.3",
"tslib": "^2.3.0",
"webpack": "^5.80.0",

View File

@ -20,7 +20,7 @@ import { getProjectEntryPoints } from '../utils/storybook-ast/entry-point';
import { getE2EProject } from './lib/get-e2e-project';
import { getModuleFilePaths } from '../utils/storybook-ast/module-info';
import type { StoriesGeneratorOptions } from './schema';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
import { nxVersion } from '../../utils/versions';
export async function angularStoriesGenerator(

View File

@ -42,7 +42,7 @@
"jest-config": "^29.4.1",
"jest-resolve": "^29.4.1",
"jest-util": "^29.4.1",
"minimatch": "3.0.5",
"minimatch": "9.0.3",
"resolve.exports": "1.1.0",
"tslib": "^2.3.0",
"@nx/devkit": "file:../devkit",

View File

@ -18,7 +18,7 @@ import { projectGraphCacheDirectory } from 'nx/src/utils/cache-directory';
import { calculateHashForCreateNodes } from '@nx/devkit/src/utils/calculate-hash-for-create-nodes';
import { getGlobPatternsFromPackageManagerWorkspaces } from 'nx/plugins/package-json-workspaces';
import { combineGlobPatterns } from 'nx/src/utils/globs';
import * as minimatch from 'minimatch';
import { minimatch } from 'minimatch';
export interface JestPluginOptions {
targetName?: string;

View File

@ -52,7 +52,7 @@
"tsconfig-paths": "^4.1.2",
"ignore": "^5.0.4",
"js-tokens": "^4.0.0",
"minimatch": "3.0.5",
"minimatch": "9.0.3",
"ora": "5.3.0",
"semver": "7.5.3",
"source-map-support": "0.5.19",

View File

@ -1,4 +1,4 @@
import * as minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import * as path from 'path';
import * as fse from 'fs-extra';
import ignore from 'ignore';

View File

@ -52,7 +52,7 @@
"js-yaml": "4.1.0",
"jsonc-parser": "3.2.0",
"lines-and-columns": "~2.0.3",
"minimatch": "3.0.5",
"minimatch": "9.0.3",
"npm-run-path": "^4.0.1",
"open": "^8.4.0",
"semver": "7.5.3",

View File

@ -2,7 +2,7 @@ import { createHash } from 'crypto';
import { existsSync, readFileSync, statSync, writeFileSync } from 'fs';
import { copySync, ensureDirSync } from 'fs-extra';
import * as http from 'http';
import * as minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { URL } from 'node:url';
import * as open from 'open';
import {

View File

@ -38,7 +38,7 @@ describe('glob', () => {
tree.write('3.txt', '3');
fs.writeFile('4.md', '4');
const withTree = glob(tree, ['*.txt']).sort();
const withTree = glob(tree, ['**/*.txt']).sort();
expect(withTree).toMatchInlineSnapshot(`
[

View File

@ -1,10 +1,8 @@
import { minimatch } from 'minimatch';
import { Tree } from '../tree';
import { combineGlobPatterns } from '../../utils/globs';
import { workspaceRoot } from '../../utils/workspace-root';
import { globWithWorkspaceContext } from '../../utils/workspace-context';
import minimatch = require('minimatch');
/**
* Performs a tree-aware glob search on the files in a workspace. Able to find newly
* created files and hides deleted files before the updates are committed to disk.

View File

@ -1,3 +1,4 @@
import { minimatch } from 'minimatch';
import { basename, join, relative } from 'path';
import {
@ -24,8 +25,6 @@ import { readNxJson } from './nx-json';
import type { Tree } from '../tree';
import minimatch = require('minimatch');
export { readNxJson, updateNxJson } from './nx-json';
/**

View File

@ -10,7 +10,7 @@ import { Task, TaskGraph } from '../config/task-graph';
import { hashArray, hashObject } from './file-hasher';
import { getOutputsForTargetAndConfiguration } from '../tasks-runner/utils';
import { workspaceRoot } from '../utils/workspace-root';
import * as minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { join } from 'path';
import { hashFile } from '../native';
import { findAllProjectNodeDependencies } from '../utils/project-graph-utils';

View File

@ -10,7 +10,7 @@ import { DaemonClient } from '../daemon/client/client';
import { hashArray } from './file-hasher';
import { NodeTaskHasherImpl } from './node-task-hasher-impl';
import { InputDefinition } from '../config/workspace-json-project-json';
import * as minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { NativeTaskHasherImpl } from './native-task-hasher-impl';
import { workspaceRoot } from '../utils/workspace-root';
import { NxWorkspaceFilesExternals } from '../native';

View File

@ -1,5 +1,5 @@
import { TouchedProjectLocator } from '../affected-project-graph-models';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
import { workspaceRoot } from '../../../utils/workspace-root';
import { getNxRequirePaths } from '../../../utils/installation-directory';
import { join } from 'path';

View File

@ -1,4 +1,4 @@
import * as minimatch from 'minimatch';
import { minimatch } from 'minimatch';
import { TouchedProjectLocator } from '../affected-project-graph-models';
import { NxJsonConfiguration } from '../../../config/nx-json';
import {

View File

@ -24,7 +24,7 @@ import {
} from './utils/project-configuration-utils';
import { NxJsonConfiguration } from '../config/nx-json';
import { getDefaultPluginsSync } from '../utils/nx-plugin.deprecated';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
import { CreateNodesResult } from '../devkit-exports';
import { CreatePackageJsonProjectsNextToProjectJson } from '../plugins/project-json/build-nodes/package-json-next-to-project-json';
import { LoadedNxPlugin } from '../utils/nx-plugin';

View File

@ -10,7 +10,7 @@ import { CreateNodesResult, LoadedNxPlugin } from '../../utils/nx-plugin';
import { readJsonFile } from '../../utils/fileutils';
import { workspaceRoot } from '../../utils/workspace-root';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
import { join } from 'path';
export type SourceInformation = [string, string];

View File

@ -3,7 +3,7 @@ import {
getMatchingStringsWithCache,
} from './find-matching-projects';
import type { ProjectGraphProjectNode } from '../config/project-graph';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
describe('findMatchingProjects', () => {
let projectGraph: Record<string, ProjectGraphProjectNode> = {

View File

@ -1,4 +1,4 @@
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
import type { ProjectGraphProjectNode } from '../config/project-graph';
const validPatternTypes = [

View File

@ -36,7 +36,7 @@
"@nx/eslint": "file:../eslint",
"@nx/js": "file:../js",
"tslib": "^2.3.0",
"minimatch": "3.0.5"
"minimatch": "9.0.3"
},
"peerDependencies": {
"@playwright/test": "^1.36.0"

View File

@ -16,7 +16,7 @@ import { calculateHashForCreateNodes } from '@nx/devkit/src/utils/calculate-hash
import type { PlaywrightTestConfig } from '@playwright/test';
import { getFilesInDirectoryUsingContext } from 'nx/src/utils/workspace-context';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
import { loadPlaywrightConfig } from '../utils/load-config-file';
import { projectGraphCacheDirectory } from 'nx/src/utils/cache-directory';
import { getLockFileName } from '@nx/js';

View File

@ -32,7 +32,7 @@
"ignore": "^5.0.4",
"metro-config": "~0.76.8",
"metro-resolver": "~0.76.8",
"minimatch": "3.0.5",
"minimatch": "9.0.3",
"node-fetch": "^2.6.7",
"tsconfig-paths": "^4.1.2",
"tslib": "^2.3.0",

View File

@ -12,7 +12,7 @@ import {
containsComponentDeclaration,
projectRootPath,
} from '@nx/react/src/generators/stories/stories';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
import { nxVersion } from '../../utils/versions';
export async function createAllStories(

View File

@ -35,7 +35,7 @@
"@svgr/webpack": "^8.0.1",
"chalk": "^4.1.0",
"file-loader": "^6.2.0",
"minimatch": "3.0.5",
"minimatch": "9.0.3",
"tslib": "^2.3.0",
"@nx/devkit": "file:../devkit",
"@nx/js": "file:../js",

View File

@ -18,7 +18,7 @@ import {
visitNotIgnoredFiles,
} from '@nx/devkit';
import { basename, join } from 'path';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
import { ensureTypescript } from '@nx/js/src/utils/typescript/ensure-typescript';
import { nxVersion } from '../../utils/versions';

View File

@ -28,7 +28,7 @@
"migrations": "./migrations.json"
},
"dependencies": {
"minimatch": "3.0.5",
"minimatch": "9.0.3",
"tslib": "^2.3.0",
"@nx/devkit": "file:../devkit",
"@nx/js": "file:../js",

View File

@ -13,7 +13,7 @@ import {
import { basename, join } from 'path';
import { nxVersion } from '../../utils/versions';
import { createComponentStories } from './lib/component-story';
import minimatch = require('minimatch');
import { minimatch } from 'minimatch';
export interface StorybookStoriesSchema {
project: string;

24
pnpm-lock.yaml generated
View File

@ -750,8 +750,8 @@ devDependencies:
specifier: ~2.4.7
version: 2.4.7(webpack@5.88.0)
minimatch:
specifier: 3.0.5
version: 3.0.5
specifier: 9.0.3
version: 9.0.3
next-sitemap:
specifier: ^3.1.10
version: 3.1.29(@next/env@14.0.4)(next@13.3.4)
@ -5516,7 +5516,7 @@ packages:
dependencies:
'@humanwhocodes/object-schema': 1.2.1
debug: 4.3.4(supports-color@5.5.0)
minimatch: 3.0.5
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
dev: true
@ -17738,7 +17738,7 @@ packages:
deepmerge: 4.3.1
fs-extra: 10.1.0
memfs: 3.5.0
minimatch: 3.0.5
minimatch: 3.1.2
node-abort-controller: 3.0.1
schema-utils: 3.2.0
semver: 7.5.3
@ -17761,7 +17761,7 @@ packages:
deepmerge: 4.3.1
fs-extra: 10.1.0
memfs: 3.5.0
minimatch: 3.0.5
minimatch: 3.1.2
node-abort-controller: 3.1.1
schema-utils: 3.2.0
semver: 7.5.3
@ -18223,7 +18223,7 @@ packages:
dependencies:
inflight: 1.0.6
inherits: 2.0.4
minimatch: 3.0.5
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
dev: true
@ -18244,7 +18244,7 @@ packages:
fs.realpath: 1.0.0
inflight: 1.0.6
inherits: 2.0.4
minimatch: 3.0.5
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
dev: true
@ -19748,7 +19748,7 @@ packages:
async: 3.2.4
chalk: 4.1.2
filelist: 1.0.4
minimatch: 3.0.5
minimatch: 3.1.2
dev: true
/jasmine-core@2.99.1:
@ -22580,7 +22580,7 @@ packages:
array-differ: 3.0.0
array-union: 2.1.0
arrify: 2.0.1
minimatch: 3.0.5
minimatch: 3.1.2
dev: true
/mute-stream@0.0.8:
@ -22798,7 +22798,7 @@ packages:
resolution: {integrity: sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==}
engines: {node: '>= 0.10.5'}
dependencies:
minimatch: 3.0.5
minimatch: 3.1.2
dev: true
/node-domexception@1.0.0:
@ -26366,7 +26366,7 @@ packages:
engines: {node: '>= 0.8.0'}
dependencies:
debug: 2.6.9
minimatch: 3.0.5
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
dev: true
@ -28228,7 +28228,7 @@ packages:
dependencies:
'@istanbuljs/schema': 0.1.3
glob: 7.1.4
minimatch: 3.0.5
minimatch: 3.1.2
dev: true
/text-extensions@1.9.0: