Skip to content

Commit c8c0d0b

Browse files
committed
fix: ensure default watch option is true and cast objectql service type
1 parent a8c201b commit c8c0d0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/metadata/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class MetadataPlugin implements Plugin {
2424

2525
this.manager = new MetadataManager({
2626
rootDir,
27-
watch: this.options.watch,
27+
watch: this.options.watch ?? true,
2828
formats: ['yaml', 'json', 'typescript', 'javascript']
2929
});
3030
}
@@ -56,7 +56,7 @@ export class MetadataPlugin implements Plugin {
5656
ctx.logger.info(`Loaded ${items.length} ${type}`);
5757

5858
// Helper: Register with ObjectQL Registry
59-
const ql = ctx.getService('objectql');
59+
const ql = ctx.getService('objectql') as any;
6060
if (ql && ql.registry) {
6161
items.forEach((item: any) => {
6262
// Determine key field (id or name)

0 commit comments

Comments
 (0)