Closed
Description
Hi
likely my mistake, but I did not get it to work.
I have the following configuration (just keep relevant fields)
{
"include": [
"../../eikon-framework/src/**/*.ts"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"df-core/*": ["./build/df-core/*"],
"*": [
"./node_modules/*",
"./node_modules/@types/*"
]
},
"rootDir": "../../eikon-framework/src",
"outDir": "./build/eikon-framework"
}
}
I have the following file:
../../src/eikon-framework/src/auth/auth-impl.ts
import { GetElectronEnvironment } from 'df-core/env';
after the compilation in the outDir folder I have
[outDir]/eikon-framework/auth/auth-impl.js
const env_1 = require("../../../products/workspace/build/df-core/env/index");
It seems the resolution has been done from the original location of TS file and not from the output location of JS file.
With "df-core/": ["./build/df-core/"] and outDir = ./build/eikon-framework/auth/auth-impl.js
I would expect
const env_1 = require("../../df-core/env/index");
Could you help me please
Thanks