我里面有这个
watchers
typescript: [
"./assets/node_modules/typescript/bin/tsc",
"--noEmit",
"--watch",
"-p",
"assets"
]
但是结果是
[error] Could not start watcher "typescript" from "/Users/.../Packages/tester", executable does not exist
但是
./assets/node_modules/typescript/bin/tsc --watch --noEmit -p assets
工作得很好。
我不确定这里出了什么问题。
tsc: [
"--noEmit",
"--watch",
"-p",
"../../../",
cd: "assets/node_modules/typescript/bin/"
]
是我认为的解决方案。我确实想知道是否有更清洁的解决方案。
上述答案对我不起作用。而是:
node: [
"assets/node_modules/typescript/bin/tsc",
...,
"--project",
"./assets/"
]