【问题标题】:How to specify a location for TypeScript in tasks.json?如何在 tasks.json 中指定 TypeScript 的位置?
【发布时间】:2019-04-25 08:46:50
【问题描述】:

如果您要求在 Visual Studio 代码中执行 TypeScript 构建任务,您会得到如下信息:

    {
        "type": "typescript",
        "tsconfig": "tsconfig.json",
        "problemMatcher": [
            "$tsc"
        ],
        "group": "build"
    }

这会导致它在命令行上运行“tsc”。如何更改“tsc”的路径,使其运行类似于“./node_modules/.bin/tsc”。

【问题讨论】:

    标签: typescript visual-studio-code vscode-tasks


    【解决方案1】:

    VS 代码包含多个预定义的problem matches

    如果我理解正确,我想你要找的是creating your own problem matcher

    【讨论】:

    • 对不起,我已经澄清了这个问题。原始措辞涉及对其工作原理的误解。
    猜你喜欢
    • 1970-01-01
    • 2015-07-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-05
    • 2012-03-10
    • 1970-01-01
    • 2019-03-06
    相关资源
    最近更新 更多