Skip to content

Commit

Permalink
fix: fixed dts wrong import of config
Browse files Browse the repository at this point in the history
  • Loading branch information
Marviuz authored and sdorra committed Apr 1, 2024
1 parent 762e03f commit 72f7e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
`;
Expand Down

0 comments on commit 72f7e6d

Please sign in to comment.