Skip to content

Commit d5b8e65

Browse files
committed
Simplify tstl object formatting in deprecation warning
1 parent 8378cdf commit d5b8e65

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/diagnostics.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ export const tstlOptionsAreMovingToTheTstlObject = (tstl: Record<string, any>) =
2020
source: "typescript-to-lua",
2121
messageText:
2222
'TSTL options are moving to the "tstl" object. Adjust your tsconfig to look like\n' +
23-
JSON.stringify({ tstl }, undefined, 4)
24-
.split("\n")
25-
.slice(1, -1)
26-
.map(line => line.slice(4))
27-
.join("\n"),
23+
`"tstl": ${JSON.stringify(tstl, undefined, 4)}`,
2824
});
2925

3026
export const watchErrorSummary = (errorCount: number): ts.Diagnostic => ({

0 commit comments

Comments
 (0)