Skip to content

Commit 3c708e0

Browse files
committed
fix mapping file generation
1 parent 02c68ab commit 3c708e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/typesync/src/Generator.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { execSync } from 'node:child_process';
2+
import { readdirSync } from 'node:fs';
13
import { FileSystem, Path, type Error as PlatformError } from '@effect/platform';
24
import { NodeFileSystem } from '@effect/platform-node';
35
import { Cause, Console, Data, Effect, String as EffectString } from 'effect';
4-
import { execSync } from 'node:child_process';
5-
import { readdirSync } from 'node:fs';
66

77
import * as Domain from '../domain/Domain.js';
88
import * as Utils from './Utils.js';
@@ -381,7 +381,8 @@ export function buildMappingFile(schema: Domain.InsertAppSchema) {
381381
}
382382
}
383383

384-
const typeMapping = ` ${type.name}: {
384+
const typeName = Utils.toPascalCase(type.name);
385+
const typeMapping = ` ${typeName}: {
385386
typeIds: [Id.Id('${type.knowledgeGraphId}')],
386387
properties: {
387388
${properties.join(',\n')},

0 commit comments

Comments
 (0)