balena-supervisor/tsconfig.json
Pagan Gazzard 836f6ab754 Enable node16 module resolution in tsconfig to ease the ESM transition
This means that dynamic import statements will emit actual `import`
statements rather than being translated to `require`, the benefit being
that we can now import ES modules via dynamic imports

Change-type: patch
2022-11-22 11:01:03 -03:00

25 lines
572 B
JSON

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