Skip to content

Commit

Permalink
fix(schematics): exclude popular hidden directories (#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Dec 19, 2022
1 parent 6ee6f50 commit 6ea575e
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion projects/cdk/schematics/constants/file-globs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
import {Pattern} from 'ng-morph';

const EXCLUDE_DIRECTORIES = [`scripts`, `dist`, `node_modules`].join(`|`);
const EXCLUDE_DIRECTORIES = [
// compiled
`scripts`,
`dist`,
`node_modules`,
`coverage`,
`dll`,
`tmp`,
`__build__`,
// hidden directories
`.rpt2_cache`,
`.husky`,
`.vscode`,
`.idea`,
`.github`,
`.gitlab`,
`.devplatform`,
`.angular`,
`.tmp`,
`.nx`,
].join(`|`);

const EXCLUDE_FILE_PATTERNS = [
`*__name@dasherize__*`, // schematics templates
`*.d`, // typings
Expand Down

0 comments on commit 6ea575e

Please sign in to comment.