Skip to content

Commit 36fea82

Browse files
authored
Merge pull request #4762 from alanorth/undeclared-deps
Add undeclared dependencies to package.json
2 parents 27a1bfc + 54d44e6 commit 36fea82

File tree

3 files changed

+291
-18
lines changed

3 files changed

+291
-18
lines changed

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);

0 commit comments

Comments
 (0)