fix(mod_format): Correct file extension for TypeScript path configuration

This commit is contained in:
2024-11-05 01:57:39 +01:00
parent 59c3deb83a
commit 181fad27fd
3 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export const run = async (projectArg: Project) => {
const publishModules = await tsPublishInstance.getModuleSubDirs(paths.cwd);
for (const publishModule of Object.keys(publishModules)) {
const publishConfig = publishModules[publishModule];
tsconfigObject.compilerOptions.paths[`${publishConfig.name}`] = [`./${publishModule}/index.ts`];
tsconfigObject.compilerOptions.paths[`${publishConfig.name}`] = [`./${publishModule}/index.js`];
}
tsconfigSmartfile.setContentsFromString(JSON.stringify(tsconfigObject, null, 2));
await tsconfigSmartfile.write();