File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @bluecadet/launchpad-monitor " : patch
3
+ ---
4
+
5
+ fix monitor pm2 passthrough types
Original file line number Diff line number Diff line change 1
- import type pm2 from "pm2" ;
2
1
import { z } from "zod" ;
3
- import { type MonitorPlugin , monitorPluginSchema } from "./core/monitor-plugin-driver.js" ;
2
+ import { monitorPluginSchema } from "./core/monitor-plugin-driver.js" ;
3
+ import type { StartOptions } from "pm2" ;
4
4
5
5
const windowsApiConfigSchema = z . object ( {
6
6
/**
@@ -101,14 +101,16 @@ export type AppLogConfig = z.infer<typeof appLogConfigSchema>;
101
101
const appConfigSchema = z . object ( {
102
102
/** pm2 configuration for this app. see https://pm2.keymetrics.io/docs/usage/application-declaration/#attributes-available */
103
103
pm2 : z
104
- . object ( {
105
- out_file : z . string ( ) . optional ( ) . describe ( "The file to write stdout to." ) ,
106
- error_file : z . string ( ) . optional ( ) . describe ( "The file to write stderr to." ) ,
107
- } )
108
- . passthrough ( )
104
+ . custom < StartOptions > ( )
105
+ . and (
106
+ z . object ( {
107
+ out_file : z . string ( ) . optional ( ) . describe ( "The file to write stdout to." ) ,
108
+ error_file : z . string ( ) . optional ( ) . describe ( "The file to write stderr to." ) ,
109
+ } ) ,
110
+ )
109
111
. describe (
110
112
"pm2 configuration for this app. see https://pm2.keymetrics.io/docs/usage/application-declaration/#attributes-available" ,
111
- ) as z . ZodType < pm2 . StartOptions & { out_file ?: string ; error_file ?: string } > ,
113
+ ) ,
112
114
/** Optional settings for moving this app's main windows to the foreground, minimize or hide them. */
113
115
windows : windowConfigSchema
114
116
. describe (
You can’t perform that action at this time.
0 commit comments