3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Fix issues caused by @shared tsconfig path

This commit is contained in:
Dragory 2019-11-08 00:03:02 +02:00
parent 53ed83b701
commit 9390b164d8
8 changed files with 56 additions and 18 deletions

View file

@ -0,0 +1,10 @@
const path = require('path');
const tsconfig = require('./tsconfig.json');
const tsconfigPaths = require('tsconfig-paths');
// E.g. ./dist/backend
const baseUrl = path.resolve(tsconfig.compilerOptions.outDir, path.basename(__dirname));
tsconfigPaths.register({
baseUrl,
paths: tsconfig.compilerOptions.paths || [],
});