Skip to content

Cli fixes#883

Merged
Perryvw merged 3 commits intoTypeScriptToLua:masterfrom
ark120202:cli-fixes
May 23, 2020
Merged

Cli fixes#883
Perryvw merged 3 commits intoTypeScriptToLua:masterfrom
ark120202:cli-fixes

Conversation

@ark120202
Copy link
Copy Markdown
Contributor

Fixes #863
Resolves #748

const tsInvalidCompilerOptionErrorCode = 5023;
parsedCommandLine.errors = parsedCommandLine.errors.filter(
e => !(e.code === tsInvalidCompilerOptionErrorCode && String(e.messageText).endsWith(`'${args[i]}'.`))
e => !((e.code === 5023 || e.code === 5025) && String(e.messageText).includes(`'${args[i]}'.`))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like these magic numbers. If you want to hardcode them like this at least add a comment saying something like // TS error code 5023: Invalid Compiler option

@Perryvw Perryvw merged commit 1e4a8bb into TypeScriptToLua:master May 23, 2020
@ark120202 ark120202 deleted the cli-fixes branch May 25, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't use additional command line options when using --project Remove new did you mean CLI parsing diagnostic

2 participants