私はtypescriptに慣れています。私のtypescriptファイルをjavascriptに変換するのは です.npm typescriptを実行すると、3.10.10Vs - windowsで.tsを.jsにコンパイルできません
私が持っているこの
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2016",
"dom"
]
}
}
のようなこの
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "${cwd}/node_modules/.bin/tsc.cmd",
"isShellCommand": true,
"args": [
"-p",
"."
],
"showOutput": "silent",
"problemMatcher": "$tsc"
}
とtsconfig.jsonファイルのように私のtask.jsonファイル私はTSC mock.tsのTSCを行う際
が、私はこの
「TSC」のようなエラーは、内部または外部コマンド、操作可能な プログラムまたはバッチファイルとして認識されません取得します。私は私のtasks.jsonファイル
"コマンド" でこれを使用ブログから少し研究した後
:、 "$ {CWDが} /node_modules/.bin/tsc.cmd" が、私は私の.TSはjavascriptの