Closed kwonoj closed 8 years ago
This PR removes force override to outDir of TypeScript compiler options to allow correct compilation emit for relative reference to internal modules.
outDir
Let's say folder structures
--app |--src |--utils | +app-id.ts +logger.ts
and app-id.ts refer internal module logger as
app-id.ts
logger
import {logger} from '../logger'; logger.doSomething();
Then TypeScript compiler calculates output path unexpectedly, like
/logger.js /app/app-id.js
makes typescript-simple fails to lookup emitted output. I don't have concrete explanation why path resolving works in those way though.
This PR removes force override to
outDir
of TypeScript compiler options to allow correct compilation emit for relative reference to internal modules.Let's say folder structures
and
app-id.ts
refer internal modulelogger
asThen TypeScript compiler calculates output path unexpectedly, like
makes typescript-simple fails to lookup emitted output. I don't have concrete explanation why path resolving works in those way though.