We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3c663 commit 5f99db2Copy full SHA for 5f99db2
packages/schematics/angular/web-worker/index.ts
@@ -139,8 +139,10 @@ function addSnippet(options: WebWorkerOptions): Rule {
139
}
140
141
const siblingModules = host.getDir(options.path).subfiles
142
- // Find all files that start with the same name, are ts files, and aren't spec files.
143
- .filter(f => f.startsWith(options.name) && f.endsWith('.ts') && !f.endsWith('spec.ts'))
+ // Find all files that start with the same name, are ts files,
+ // and aren't spec or module files.
144
+ .filter(f => f.startsWith(options.name) && f.endsWith('.ts')
145
+ && !f.endsWith('spec.ts') && !f.endsWith('-.module.ts'))
146
// Sort alphabetically for consistency.
147
.sort();
148
0 commit comments