Skip to content

Commit 62f4cbd

Browse files
committed
Add glob dependency and update syntax
This undeclared dependency is used by lint/src/util/theme-support.ts.
1 parent e72b93b commit 62f4cbd

3 files changed

Lines changed: 268 additions & 14 deletions

File tree

lint/src/util/theme-support.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ class ThemeableComponentRegistry {
150150
traverse(source);
151151
}
152152

153-
const glob = require('glob');
153+
const { globSync } = require('glob');
154154

155155
// note: this outputs Unix-style paths on Windows
156-
const wrappers: string[] = glob.GlobSync(prefix + 'src/app/**/themed-*.component.ts', { ignore: 'node_modules/**' }).found;
156+
const wrappers: string[] = globSync(prefix + 'src/app/**/themed-*.component.ts', { ignore: 'node_modules/**' });
157157

158158
for (const wrapper of wrappers) {
159159
registerWrapper(wrapper);

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@
211211
"eslint-plugin-simple-import-sort": "^10.0.0",
212212
"eslint-plugin-unused-imports": "^3.2.0",
213213
"express-static-gzip": "^2.2.0",
214+
"glob": "^11.0.3",
214215
"jasmine": "^3.8.0",
215216
"jasmine-core": "^3.8.0",
216217
"jasmine-marbles": "0.9.2",

0 commit comments

Comments
 (0)