(sourcePaths: readonly string[]): string[] Build an include pattern array from source paths.
Each path becomes a <path>/**\/*.{ts,js,svelte,css,json} glob. Used by
discoverSourceFiles to derive a default include from
sourceOptions.sourcePaths when no explicit pattern is supplied — keeps
the glob fallback consistent with custom sourcePaths instead of silently
defaulting to src/lib.
sourcePaths
readonly string[]returns
string[] examples
deriveIncludePatterns(['packages/foo', 'packages/bar'])
// => ['packages/foo/**\/*.{ts,js,svelte,css,json}', 'packages/bar/**\/*.{ts,js,svelte,css,json}']