@arcgis/lumina-compiler 5.0.0-next.5 → 5.0.0-next.7

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.
@@ -84,6 +84,7 @@ export declare class CompilerContext {
84
84
  * @private
85
85
  */
86
86
  readonly _plugin: Plugin;
87
+ private _startCollectingComponentStories;
87
88
  /**
88
89
  * List of directories of common interest to the compiler
89
90
  */
@@ -106,10 +107,10 @@ export declare class CompilerContext {
106
107
  */
107
108
  privateApiJson: ApiJson;
108
109
  /**
109
- * Resolves once api.json is first generated.
110
+ * Resolves once api.json is first generated during a given build run.
110
111
  * @private
111
112
  */
112
- readonly apiJsonDeferred: Deferred<void>;
113
+ apiJsonDeferred: Deferred<void>;
113
114
  /**
114
115
  * In some test environments, api.json will never be produced.
115
116
  */
@@ -188,6 +189,7 @@ export declare class CompilerContext {
188
189
  * If running in a Vite instance created by Vitest Puppeteer integration.
189
190
  */
190
191
  isInPuppeteerTestFrontEnd: boolean;
192
+ isInBuildWatch: boolean;
191
193
  /**
192
194
  * Whether Vite build/serve is running inside of Storybook.
193
195
  */
@@ -301,7 +303,7 @@ export declare class CompilerContext {
301
303
  *
302
304
  * @private
303
305
  */
304
- readonly _customElementDependencies: CustomElementInterdependencies;
306
+ _customElementDependencies: CustomElementInterdependencies;
305
307
  /**
306
308
  * Result of getCompilerOptionsForPrinter() call.
307
309
  *
@@ -333,6 +335,9 @@ export declare class CompilerContext {
333
335
  _updateLuminaTsPromise?: Promise<void>;
334
336
  normalizedDocumentationUrl: string;
335
337
  alternativeDocumentationUrl: string;
338
+ private _didCallOptions;
339
+ /** @private */
340
+ _originalRollupInputOptions?: Record<string, string> | undefined;
336
341
  constructor(options: LuminaOptions);
337
342
  private _inferBuildSetup;
338
343
  /**
@@ -1,19 +1,14 @@
1
1
  import { CompilerContext } from '../context';
2
- /**
3
- * Create a separate entrypoint for each component to allow consuming
4
- * applications to only load the necessary code.
5
- *
6
- * @remarks
7
- * Finds all components in the src/components folder. With support for nested
8
- * components (looking for .tsx files whose name matches their folder name)
9
- */
10
- export declare const getComponentEntrypoints: (context: CompilerContext) => Promise<Readonly<Record<string, string>>>;
11
2
  /**
12
3
  * @example
13
4
  * `src/components/component-name/component-name.tsx` =>
14
5
  * `./components/component-name/customElement`
15
6
  */
16
7
  export declare const entrypointPathToDistPath: (sourceFileName: string, srcPath?: string) => string;
8
+ /**
9
+ * Finds all components in the src/components folder. With support for nested
10
+ * components (looking for .tsx files whose name matches their folder name)
11
+ */
17
12
  export declare const findComponentFiles: (context: CompilerContext, componentsDirectory: string, searchBase?: string) => Promise<string[]>;
18
13
  /**
19
14
  * Check if absolute file path looks like a component entrypoint
@@ -4,7 +4,7 @@ import { ApiCustomElementDeclaration, ApiJson } from '@arcgis/api-extractor';
4
4
  * Build the complete api.json, either once during build, or in serve mode if
5
5
  * full-reload is needed.
6
6
  */
7
- export declare function buildApiJson(context: CompilerContext, isFirstGenerate: boolean): Promise<ApiJson>;
7
+ export declare function buildApiJson(context: CompilerContext, reFetchComponentEntrypoints: boolean): Promise<ApiJson>;
8
8
  /**
9
9
  * Update the api.json for a single file on hot reload
10
10
  */