Skip to content

Commit 148c8dc

Browse files
committed
Adjust our local date scalar to use the new module location std::cal::local_date
1 parent 2fe55d0 commit 148c8dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/gel/codecs/temporal.codec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class LuxonDateTimeCodec extends DateTimeCodec {
3737

3838
export class LuxonCalendarDateCodec extends LocalDateCodec {
3939
static info: ScalarInfo = {
40-
module: 'cal',
40+
module: 'std::cal',
4141
type: 'local_date',
4242
ts: 'CalendarDate',
4343
path: '~/common/temporal/calendar-date',

src/core/gel/generator/query-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function fixCustomScalarsImports(qbDir: Directory) {
6161
(s) => s.module,
6262
)) {
6363
const moduleFile = qbDir.addSourceFileAtPath(
64-
`modules/${scalars[0]!.module}.ts`,
64+
`modules/${scalars[0]!.module.replaceAll(/::/g, '/')}.ts`,
6565
);
6666
addCustomScalarImports(moduleFile, scalars);
6767
}

0 commit comments

Comments
 (0)