(
configPath = DEFAULT_CONFIG_FILE,
cwd = process.cwd(),
options: DevProxyConfigLoadOptions & Pick<WatchConfigOptions<DevProxyConfig>, 'onUpdate'> = {},
)
| 148 | } |
| 149 | |
| 150 | export const watchDevProxyConfig = async ( |
| 151 | configPath = DEFAULT_CONFIG_FILE, |
| 152 | cwd = process.cwd(), |
| 153 | options: DevProxyConfigLoadOptions & Pick<WatchConfigOptions<DevProxyConfig>, 'onUpdate'> = {}, |
| 154 | ) => { |
| 155 | const watcher = await watchConfig<DevProxyConfig>({ |
| 156 | ...createC12ConfigOptions(configPath, cwd, options), |
| 157 | onUpdate: options.onUpdate, |
| 158 | }) |
| 159 | |
| 160 | assertDevProxyConfig(watcher.config) |
| 161 | return watcher |
| 162 | } |
| 163 | |
| 164 | export const defineDevProxyConfig = (config: DevProxyConfig) => config |
no test coverage detected