Skip to content

Commit

Permalink
fix: channel import not working (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni authored Oct 8, 2024
1 parent 069e7ee commit b473fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/codegen/generators/typescript/channels/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export async function generateTypeScriptChannels(
);

dependencies.push(
`import {${parameter.modelName}} from '${ensureRelativePath(parameterImportPath)}';`
`import {${parameter.modelName}} from './${ensureRelativePath(parameterImportPath)}';`
);
}

Expand All @@ -137,7 +137,7 @@ export async function generateTypeScriptChannels(
path.resolve(payloadGenerator.outputPath, payload.modelName)
);
dependencies.push(
`import {${payload.modelName}} from '${ensureRelativePath(payloadImportPath)}';`
`import {${payload.modelName}} from './${ensureRelativePath(payloadImportPath)}';`
);

for (const protocol of protocolsToUse) {
Expand Down
5 changes: 0 additions & 5 deletions test/blackbox/typescript.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ describe.each(typescriptConfig)(
fs.rmSync(outputPath, { recursive: true });
}
});
afterAll(async () => {
if (fs.existsSync(outputPath)) {
fs.rmSync(outputPath, { recursive: true });
}
});
test('and be syntactically correct', async () => {
const newConfig = {...config}
const newGens = [...newConfig.generators]
Expand Down

0 comments on commit b473fd5

Please sign in to comment.