See Syntax highlighting inside custom string, it would read even better as:
val json = json"""
{
"declarationMap": true,
"esModuleInterop": true,
"baseUrl": ".",
"rootDir": "typescript",
"declaration": true,
"outDir": ${pubBundledOut()},
"plugins": [
{"transform": "typescript-transform-paths"},
{
"transform": "typescript-transform-paths",
"afterDeclarations": true
}
],
"moduleResolution": "node",
"module": "CommonJS",
"target": "ES2020"
}
"""
2 Likes