Skip to content

Commit

Permalink
debug windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Aug 2, 2024
1 parent 798b509 commit 2d213f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/api/typescript-config-file.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {MaybePromise, wrapInTry} from '@augment-vir/common';
import {toPosixPath} from '@augment-vir/node-js';
import {rm} from 'node:fs/promises';
import {basename, join} from 'node:path';
import {findClosestNodeModulesDir} from '../augments/index';
Expand All @@ -18,6 +19,7 @@ export async function withImportedTsFile<T>(
moduleType,
});
try {
console.info({compiledPath});
const loadedConfig = await import(compiledPath);

return await callback(loadedConfig);
Expand All @@ -41,6 +43,7 @@ export async function withCompiledTsFile<T>(
moduleType,
});
try {
console.info({compiledPath});
return await callback(compiledPath);
} finally {
await wrapInTry(() => rm(compiledPath, {force: true}));
Expand Down Expand Up @@ -88,5 +91,5 @@ export async function compileTs({
write: true,
});

return outfile;
return toPosixPath(outfile);
}

0 comments on commit 2d213f3

Please sign in to comment.