sparse-intern-71089
08/08/2019, 6:28 PMwhite-balloon-205
billowy-laptop-45963
08/08/2019, 6:30 PMError: Cannot find module ...
billowy-laptop-45963
08/08/2019, 6:32 PM"baseUrl": ".",
"paths": { "mypath/*": ["src/*"] }
and in index.ts:
import { something } from "mypath/abc"
billowy-laptop-45963
08/08/2019, 6:33 PMwhite-balloon-205
tsconfig
. We use https://github.com/TypeStrong/ts-node under the hood to do the TypeScript compilation - so Pulumi will behave as defined there in terms of how tsconfig
is interpreted for TS compilation/loading.
If you do need to take control of this yourself (doing tsc
manually instead of relying on ts-node
) see https://www.pulumi.com/docs/reference/javascript/#disabling-built-in-typescript-support.billowy-laptop-45963
08/08/2019, 6:37 PMbillowy-laptop-45963
08/08/2019, 6:53 PM-r tsconfig-paths/register
. Can I simply add that requires to the ts-node invocation that happens under the hood?white-balloon-205
ts-node
. If you want to open an issue and/or PR for this - we can look into that.