@absolutejs/absolute 0.19.0-beta.681 → 0.19.0-beta.682

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.
@@ -51,6 +51,10 @@ export type DelayReadyConfig = {
51
51
  ms: number;
52
52
  };
53
53
  export type ServiceReadyConfig = false | string | HttpReadyConfig | TcpReadyConfig | CommandReadyConfig | DelayReadyConfig;
54
+ export type ServiceShutdownConfig = false | string[] | {
55
+ command: string[];
56
+ timeoutMs?: number;
57
+ };
54
58
  export type ServiceVisibility = 'public' | 'internal';
55
59
  export type BaseBuildConfig = {
56
60
  buildDirectory?: string;
@@ -96,6 +100,7 @@ export type AbsoluteServiceConfig = BaseBuildConfig & {
96
100
  entry?: string;
97
101
  env?: Record<string, string>;
98
102
  ready?: ServiceReadyConfig;
103
+ shutdown?: ServiceShutdownConfig;
99
104
  port?: number;
100
105
  visibility?: ServiceVisibility;
101
106
  command?: never;
@@ -107,6 +112,7 @@ export type CommandServiceConfig = {
107
112
  dependsOn?: string[];
108
113
  env?: Record<string, string>;
109
114
  ready?: ServiceReadyConfig;
115
+ shutdown?: ServiceShutdownConfig;
110
116
  port?: number;
111
117
  visibility?: ServiceVisibility;
112
118
  entry?: never;
package/package.json CHANGED
@@ -302,5 +302,5 @@
302
302
  "typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
303
303
  },
304
304
  "types": "./dist/src/index.d.ts",
305
- "version": "0.19.0-beta.681"
305
+ "version": "0.19.0-beta.682"
306
306
  }