我正在使用我的Mac上的TypeScript和OSX 10.12.6的NodeJS項目。該項目在RPI上運行的網絡共享上(無法開發由於RPI上連接的硬件本地)。Typescript錯誤TS2688:無法找到'.AppleDouble'的類型定義文件
當我運行tsc -p tsconfig.json
我得到:
error TS2688: Cannot find type definition file for '.AppleDouble'.
因爲我在網絡共享工作原來所有文件夾與文件.AppleDouble
污染。
刪除使用這些文件之後:
find . -name '.AppleDouble' -print0 | xargs -0 rm -rf
我沒有問題彙編。事情是OSX不斷寫這些'.AppleDouble'文件到我的網絡共享。
在舊版本的OSX的您可以通過使用禁用此:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
或
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
但是它看起來像這些沒有在OSX 10.12工作了。有像BlueHarvest這樣的工具,但這些不會阻止創建,但只能自動刪除它們。
有沒有人知道如何我可以防止在網絡共享上創建.AppleDouble
文件或使Typescript編譯器工作,因此它會忽略.AppleDouble
?
我tsconfig.json:
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": false,
"sourceMap": false,
"rootDir": "src-ts",
"outDir": "build"
},
"exclude": [
"build",
"node_modules",
".AppleDouble"
]
}