mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
26236b4bc3
Fixes #15635 Importing ansicolor from node_modules or vendored as is failed because there is no ES5 transpiler configured for ES6 libs. - remove ansicolor from package.json - add ansicolor to public/vendor/ansicolor and port to typescript - adapt all ansicolor imports - add `public/vendor` as a path to be considered by ts compiler
37 lines
1011 B
JSON
37 lines
1011 B
JSON
{
|
|
"compilerOptions": {
|
|
"moduleResolution": "node",
|
|
"outDir": "public/dist",
|
|
"target": "es5",
|
|
"lib": ["es6", "dom"],
|
|
"rootDirs": ["public/"],
|
|
"jsx": "react",
|
|
"module": "esnext",
|
|
"declaration": false,
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"importHelpers": true,
|
|
"noEmitHelpers": true,
|
|
"removeComments": false,
|
|
"inlineSourceMap": false,
|
|
"sourceMap": true,
|
|
"noEmitOnError": false,
|
|
"emitDecoratorMetadata": false,
|
|
"experimentalDecorators": true,
|
|
"noImplicitReturns": true,
|
|
"noImplicitThis": true,
|
|
"noImplicitUseStrict": false,
|
|
"noImplicitAny": false,
|
|
"noUnusedLocals": true,
|
|
"baseUrl": "public",
|
|
"pretty": true,
|
|
"typeRoots": ["node_modules/@types", "types"],
|
|
"paths": {
|
|
"app": ["app"],
|
|
"sass": ["sass"]
|
|
}
|
|
},
|
|
"include": ["public/app/**/*.ts", "public/app/**/*.tsx", "public/test/**/*.ts", "public/vendor/**/*.ts"]
|
|
}
|