Skip to content

Commit 31698c1

Browse files
authored
Merge pull request #4765 from DSpace/backport-4762-to-dspace-9_x
[Port dspace-9_x] Add undeclared dependencies to package.json
2 parents 7474b39 + c7e6aae commit 31698c1

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)