sveld 0.35.0 → 0.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/bundle.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type NormalizedPath } from "./brands";
1
+ import { asRelativeSourcePath, type NormalizedPath } from "./brands";
2
2
  import { type ParsedComponent } from "./ComponentParser";
3
3
  import { type SveldDiagnostic } from "./diagnostics";
4
4
  import { ParseCache } from "./parse-cache";
@@ -99,6 +99,13 @@ export interface CollectedComponents {
99
99
  rootDir: string;
100
100
  resolveComponentFilePath: ResolveComponentFilePath;
101
101
  }
102
+ /** A `.svelte` file discovered on disk, before it's merged into `exports`/`allComponents`. */
103
+ export interface GlobbedComponentSource {
104
+ moduleName: string;
105
+ source: ReturnType<typeof asRelativeSourcePath>;
106
+ }
107
+ /** Globs every `.svelte` file under `rootDir`, resolving each to its module name and source path. */
108
+ export declare function globComponentSources(rootDir: string): GlobbedComponentSource[];
102
109
  /**
103
110
  * Discovers component sources for an entry point without parsing them.
104
111
  *