diff --git a/packages/core/src/writer.ts b/packages/core/src/writer.ts index 84b6d3d0..033fca98 100644 --- a/packages/core/src/writer.ts +++ b/packages/core/src/writer.ts @@ -76,7 +76,7 @@ async function createTypeDefinitionFile( return; } - const importPath = path.relative(directory, configuration.path); + const importPath = path.posix.join(...path.relative(directory, configuration.path).split(path.sep)); let content = `import configuration from "${importPath}"; import { GetTypeByName } from "@content-collections/core"; `;