Skip to content

Commit 1615a1b

Browse files
committed
build: update to latest minimatch
The bot update of minimatch didn't work, because there are breaking changes.
1 parent a42a4f6 commit 1615a1b

12 files changed

+20
-29
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"@types/glob": "^8.0.0",
9696
"@types/jasmine": "^5.0.0",
9797
"@types/luxon": "^3.0.0",
98-
"@types/minimatch": "^5.1.2",
9998
"@types/node": "^22.14.1",
10099
"@types/selenium-webdriver": "^3.0.17",
101100
"@types/semver": "^7.3.9",
@@ -124,7 +123,7 @@
124123
"karma-sourcemap-loader": "^0.4.0",
125124
"magic-string": "0.30.17",
126125
"marked": "^15.0.12",
127-
"minimatch": "^3.0.4",
126+
"minimatch": "^10.0.3",
128127
"node-fetch": "^2.6.0",
129128
"parse5": "^7.1.2",
130129
"postcss": "^8.4.17",

pnpm-lock.yaml

Lines changed: 6 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/check-entry-point-setup.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import {join, dirname} from 'path';
1111
import {sync as globSync} from 'glob';
1212
import {readFileSync} from 'fs';
13-
import minimatch from 'minimatch';
13+
import {minimatch} from 'minimatch';
1414
import chalk from 'chalk';
1515

1616
const [entryPointManifest] = process.argv.slice(2);

scripts/check-package-externals.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import chalk from 'chalk';
1212
import {readFileSync} from 'fs';
13-
import minimatch from 'minimatch';
13+
import {minimatch} from 'minimatch';
1414
import {join, relative} from 'path';
1515
import ts from 'typescript';
1616

scripts/ownerslint.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import chalk from 'chalk';
22
import {readdirSync, readFileSync, statSync} from 'fs';
3-
import minimatch from 'minimatch';
3+
import {Minimatch} from 'minimatch';
44
import {join} from 'path';
55

66
/**
@@ -23,7 +23,7 @@ const ownedPaths = readFileSync(ownersFilePath, 'utf8')
2323
// Split off just the path glob.
2424
.map(line => line.split(/\s+/)[0])
2525
// Turn paths into Minimatch objects.
26-
.map(path => new minimatch.Minimatch(path, {dot: true, matchBase: true}));
26+
.map(path => new Minimatch(path, {dot: true, matchBase: true}));
2727

2828
const ignoredPaths = readFileSync(gitIgnorePath, 'utf8')
2929
.split('\n')
@@ -32,7 +32,7 @@ const ignoredPaths = readFileSync(gitIgnorePath, 'utf8')
3232
// Remove empty lines and comments.
3333
.filter(line => line && !line.startsWith('#'))
3434
// Turn paths into Minimatch objects.
35-
.map(path => new minimatch.Minimatch(path, {dot: true, matchBase: true}));
35+
.map(path => new Minimatch(path, {dot: true, matchBase: true}));
3636

3737
for (let paths = getChildPaths('.'); paths.length; ) {
3838
paths = Array.prototype.concat(
@@ -72,7 +72,7 @@ if (errors) {
7272
}
7373

7474
/** Check if the given path is owned by the given owned path matcher. */
75-
function isOwnedBy(path: string, ownedPath: minimatch.IMinimatch) {
75+
function isOwnedBy(path: string, ownedPath: Minimatch) {
7676
// If the owned path ends with `**` its safe to eliminate whole directories.
7777
if (ownedPath.pattern.endsWith('**') || statSync(path).isFile()) {
7878
return ownedPath.match('/' + path);

tools/stylelint/no-prefixes/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {createPlugin, Rule, utils} from 'stylelint';
2-
import minimatch from 'minimatch';
2+
import {minimatch} from 'minimatch';
33
import {NeedsPrefix} from './needs-prefix';
44

55
const parseSelector = require('stylelint/lib/utils/parseSelector');

tools/tslint-rules/lightweightTokensRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ts from 'typescript';
2-
import minimatch from 'minimatch';
2+
import {minimatch} from 'minimatch';
33
import * as Lint from 'tslint';
44

55
/** Arguments this rule supports. */

tools/tslint-rules/noCrossEntryPointRelativeImportsRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ts from 'typescript';
2-
import minimatch from 'minimatch';
2+
import {minimatch} from 'minimatch';
33

44
import {existsSync} from 'fs';
55
import {dirname, join, normalize, resolve} from 'path';

tools/tslint-rules/noLifecycleInvocationRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as Lint from 'tslint';
22
import ts from 'typescript';
3-
import minimatch from 'minimatch';
3+
import {minimatch} from 'minimatch';
44

55
const hooks = new Set([
66
'ngOnChanges',

tools/tslint-rules/noZoneDependenciesRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import minimatch from 'minimatch';
1+
import {minimatch} from 'minimatch';
22
import * as Lint from 'tslint';
33
import ts from 'typescript';
44

tools/tslint-rules/requireLicenseBannerRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Lint from 'tslint';
2-
import minimatch from 'minimatch';
2+
import {minimatch} from 'minimatch';
33
import ts from 'typescript';
44

55
/** License banner that is placed at the top of every public TypeScript file. */

tools/tslint-rules/validateDecoratorsRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import minimatch from 'minimatch';
1+
import {minimatch} from 'minimatch';
22
import * as Lint from 'tslint';
33
import ts from 'typescript';
44

0 commit comments

Comments
 (0)