@absolutejs/absolute 0.19.0-beta.660 → 0.19.0-beta.661

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.
@@ -0,0 +1,5 @@
1
+ type WorkspaceDevOptions = {
2
+ configPath?: string;
3
+ };
4
+ export declare const workspace: (subcommand: string | undefined, options: WorkspaceDevOptions) => Promise<void>;
5
+ export {};
@@ -23,6 +23,34 @@ export type StaticConfig = {
23
23
  /** Revalidation interval in seconds. When set, stale pages are re-rendered in the background (ISR). */
24
24
  revalidate?: number;
25
25
  };
26
+ export type WorkspaceHealthcheckConfig = string | {
27
+ url: string;
28
+ intervalMs?: number;
29
+ timeoutMs?: number;
30
+ };
31
+ export type WorkspaceAbsoluteServiceConfig = {
32
+ kind: 'absolute';
33
+ cwd?: string;
34
+ entry?: string;
35
+ config?: string;
36
+ dependsOn?: string[];
37
+ env?: Record<string, string>;
38
+ healthcheck?: WorkspaceHealthcheckConfig;
39
+ port?: number;
40
+ };
41
+ export type WorkspaceCommandServiceConfig = {
42
+ kind: 'command';
43
+ command: string[];
44
+ cwd?: string;
45
+ dependsOn?: string[];
46
+ env?: Record<string, string>;
47
+ healthcheck?: WorkspaceHealthcheckConfig;
48
+ port?: number;
49
+ };
50
+ export type WorkspaceServiceConfig = WorkspaceAbsoluteServiceConfig | WorkspaceCommandServiceConfig;
51
+ export type WorkspaceConfig = {
52
+ services: Record<string, WorkspaceServiceConfig>;
53
+ };
26
54
  export type BuildConfig = {
27
55
  buildDirectory?: string;
28
56
  assetsDirectory?: string;
@@ -58,6 +86,7 @@ export type BuildConfig = {
58
86
  static?: StaticConfig;
59
87
  images?: ImageConfig;
60
88
  sitemap?: SitemapConfig;
89
+ workspace?: WorkspaceConfig;
61
90
  };
62
91
  export type BuildResult = ReturnType<typeof build>;
63
92
  export type DevBuildResult = ReturnType<typeof devBuild>;