Skip to content

Commit 1075d7d

Browse files
os-zhuangclaude
andcommitted
fix(service-job): use explicit .js extensions for nodenext module resolution
The package's dts build runs under moduleResolution nodenext — relative imports of run-with-policy must carry the .js extension. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent a0fab65 commit 1075d7d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/services/service-job/src/cron-job-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
JobExecution,
99
JobScheduleOptions,
1010
} from '@objectstack/spec/contracts';
11-
import { runWithPolicy, JobTimeoutError } from './run-with-policy';
11+
import { runWithPolicy, JobTimeoutError } from './run-with-policy.js';
1212

1313
/** Minimal cluster lock surface for scheduler leader-election (structural — no hard dep on the cluster contract). */
1414
interface SchedulerCluster {

packages/services/service-job/src/interval-job-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
22

33
import type { IJobService, JobSchedule, JobHandler, JobExecution, JobScheduleOptions } from '@objectstack/spec/contracts';
4-
import { runWithPolicy, JobTimeoutError } from './run-with-policy';
4+
import { runWithPolicy, JobTimeoutError } from './run-with-policy.js';
55

66
/**
77
* Internal record for a scheduled job.

0 commit comments

Comments
 (0)