Skip to content

Commit a454406

Browse files
committed
fix: correct js imports
1 parent 3244475 commit a454406

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

reader/ts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { Definition } from './parser.ts';
1+
export { Definition } from './parser.js';
22
export type { Feature } from './types.ts';

reader/ts/src/mapper/dataTypeMapper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import {
1111
import {
1212
DataTypeIdentifier as TucanaDataTypeIdentifier,
1313
DefinitionDataType_Variant, DefinitionDataTypeRule, GenericMapper_GenericCombinationStrategy
14-
} from "@code0-tech/tucana/pb/shared.data_type_pb.ts"
15-
import {GenericMapper as TucanaGenericMapper} from "@code0-tech/tucana/pb/shared.data_type_pb.ts"
16-
import {ConstructedDataTypes, getID} from "../parser.ts";
17-
import {getTranslationConnection} from "./translation.ts";
14+
} from "@code0-tech/tucana/pb/shared.data_type_pb.js"
15+
import {GenericMapper as TucanaGenericMapper} from "@code0-tech/tucana/pb/shared.data_type_pb.js"
16+
import {ConstructedDataTypes, getID} from "../parser.js";
17+
import {getTranslationConnection} from "./translation.js";
1818

1919
function getDataType(identifier: string, constructedDataTypes: ConstructedDataTypes): DataType | null {
2020
const dataType = constructedDataTypes.constructedDataTypes.find(dt => dt.identifier === identifier)

reader/ts/src/mapper/flowTypeMapper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {FlowType as TucanaFlowType, FlowTypeSetting as TucanaFlowTypeSetting} from "@code0-tech/tucana/pb/shared.flow_definition_pb.ts"
1+
import {FlowType as TucanaFlowType, FlowTypeSetting as TucanaFlowTypeSetting} from "@code0-tech/tucana/pb/shared.flow_definition_pb.js"
22
import {FlowType, FlowTypeSetting} from "@code0-tech/sagittarius-graphql-types";
3-
import {getDataType} from "./dataTypeMapper.ts";
4-
import {ConstructedDataTypes, getID} from "../parser.ts";
3+
import {getDataType} from "./dataTypeMapper.js";
4+
import {ConstructedDataTypes, getID} from "../parser.js";
55
import {getTranslationConnection} from "./translation.js";
66

77
function mapFlowType(flowType: TucanaFlowType, constructed: ConstructedDataTypes): FlowType | null {

reader/ts/src/mapper/functionMapper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import {FunctionDefinition, ParameterDefinitionConnection} from "@code0-tech/sag
22
import {
33
RuntimeFunctionDefinition as TucanaFunction,
44
RuntimeParameterDefinition
5-
} from "@code0-tech/tucana/pb/shared.runtime_function_pb.ts";
6-
import {getDataTypeIdentifier} from "./dataTypeMapper.ts";
7-
import {ConstructedDataTypes, getID} from "../parser.ts";
5+
} from "@code0-tech/tucana/pb/shared.runtime_function_pb.js";
6+
import {getDataTypeIdentifier} from "./dataTypeMapper.js";
7+
import {ConstructedDataTypes, getID} from "../parser.js";
88
import {getTranslationConnection} from "./translation.js";
99

1010
function mapFunction(func: TucanaFunction, constructed: ConstructedDataTypes): FunctionDefinition | null {

reader/ts/src/parser.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import {DefinitionDataType as TucanaDataType} from "@code0-tech/tucana/pb/shared.data_type_pb.ts";
2-
import {Feature} from "./types.ts";
1+
import {DefinitionDataType as TucanaDataType} from "@code0-tech/tucana/pb/shared.data_type_pb.js";
2+
import {Feature} from "./types.js";
33
import {readdirSync, readFileSync} from "node:fs";
4-
import {FlowType as TucanaFlowType} from "@code0-tech/tucana/pb/shared.flow_definition_pb.ts";
5-
import {RuntimeFunctionDefinition as TucanaFunction} from "@code0-tech/tucana/pb/shared.runtime_function_pb.ts";
4+
import {FlowType as TucanaFlowType} from "@code0-tech/tucana/pb/shared.flow_definition_pb.js";
5+
import {RuntimeFunctionDefinition as TucanaFunction} from "@code0-tech/tucana/pb/shared.runtime_function_pb.js";
66
import path from "node:path";
7-
import {mapFlowType} from "./mapper/flowTypeMapper.ts";
8-
import {mapFunction} from "./mapper/functionMapper.ts";
7+
import {mapFlowType} from "./mapper/flowTypeMapper.js";
8+
import {mapFunction} from "./mapper/functionMapper.js";
99
import {DataType} from "@code0-tech/sagittarius-graphql-types";
10-
import {DefinitionDataType} from "@code0-tech/tucana/pb/shared.data_type_pb.ts";
11-
import {getDataType} from "./mapper/dataTypeMapper.ts";
10+
import {DefinitionDataType} from "@code0-tech/tucana/pb/shared.data_type_pb.js";
11+
import {getDataType} from "./mapper/dataTypeMapper.js";
1212

1313
export interface ConstructedDataTypes {
1414
scannedTucanaTypes: DefinitionDataType[]

0 commit comments

Comments
 (0)