MCPcopy Create free account
hub / github.com/angular/dev-infra / ngSyncMatchFn

Function ngSyncMatchFn

ng-dev/utils/g3-sync-config.ts:48–51  ·  view source on GitHub ↗
(projectRelativePath: string)

Source from the content-addressed store, hash-verified

46
47 // match everything that needs to be synced except external and separate sync files
48 const ngSyncMatchFn = (projectRelativePath: string) =>
49 syncedFilePatterns.some((p) => p.match(projectRelativePath)) &&
50 alwaysExternalFilePatterns.every((p) => !p.match(projectRelativePath)) &&
51 separateFilePatterns.every((p) => !p.match(projectRelativePath));
52
53 // match only files that need to be synced separately
54 const separateSyncMatchFn = (projectRelativePath: string) =>

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected