balena-supervisor/tsconfig.json
Felipe Lalanne 71eaa3327e Use tsconfig-paths for easier access to the source
Currently, tests only can import source code modules through relative
paths `../../`. This makes it very difficult to refactor and organize
tests in folders as the paths change.

[tsconfig-paths](https://www.npmjs.com/package/tsconfig-paths) allows to
reference the source through an alias defined in the "paths" section of
tsconfig.json
2022-08-18 12:23:31 -04:00

25 lines
561 B
JSON

{
"compilerOptions": {
"baseUrl": "./",
"target": "ES2019",
"module": "commonjs",
"strict": true,
"strictFunctionTypes": false,
"strictPropertyInitialization": false,
"preserveConstEnums": true,
"inlineSourceMap": true,
"outDir": "./build/",
"skipLibCheck": true,
"lib": ["es2019"],
"resolveJsonModule": true,
"allowJs": true,
"paths": {
"~/src/*": ["src/*"],
"~/lib/*": ["src/lib/*"],
"~/test-lib/*": ["test/lib/*"],
"~/test-data/*": ["test/data/*"]
}
},
"include": ["src/**/*", "test/**/*", "typings/**/*.d.ts"]
}