我需要在TSD存储库中安装一个完整的目录,而不仅仅是一个目录。
例如,运行tsd install cordova只下载cordova目录中的cordova.d.ts文件。我还需要cordova.d.ts中的are,它位于cordova目录中的plugins目录中。
因此,我需要类似tsd install cordova/*的东西,它可以下载cordova目录中的所有文件/文件夹。
对这怎么可能有什么想法吗?
编辑:
我试图使用-r标志作为文档声明,但这是我得到的:
>> tsd 0.5.7
-> warning path reference not in index: plugins/BatteryStatus.d.ts
-> warning path reference not in index: plugins/Camera.d.ts
-> warning path reference not in index: plugins/Contacts.d.ts
-> warning path reference not in index: plugins/Device.d.ts
-> warning path reference not in index: plugins/DeviceMotion.d.ts
-> warning path reference not in index: plugins/DeviceOrientation.d.ts
-> warning path reference not in index: plugins/Dialogs.d.ts
-> warning path reference not in index: plugins/FileSystem.d.ts
-> warning path reference not in index: plugins/FileTransfer.d.ts
-> warning path reference not in index: plugins/Globalization.d.ts
-> warning path reference not in index: plugins/InAppBrowser.d.ts
-> warning path reference not in index: plugins/Media.d.ts
-> warning path reference not in index: plugins/MediaCapture.d.ts
-> warning path reference not in index: plugins/NetworkInformation.d.ts
-> warning path reference not in index: plugins/Push.d.ts
-> warning path reference not in index: plugins/Splashscreen.d.ts
-> warning path reference not in index: plugins/Vibration.d.ts
-> warning path reference not in index: plugins/WebSQL.d.ts
- cordova/cordova.d.ts : <head> : 2014-08-21 12:11
>> running install..
> skipped existing: cordova/cordova.d.ts
>> written zero files它仍然只安装主cordova/cordova.d.ts文件。
发布于 2014-08-22 19:51:14
发布于 2014-10-26 12:24:58
TSD作者:这是0.5.x上的一个已知问题,但在0.6.0中得到了解决:我将在任何一天向npm发布它,或者看这张关于如何获得预释放:https://github.com/DefinitelyTyped/tsd/issues/100的票证。
然后在0.6中你可以做到:
tsd install cordova/ -rs发布于 2014-08-21 15:30:47
您需要使用resolve标志,即-r。
tsd query cordova -a install -rhttps://stackoverflow.com/questions/25429327
复制相似问题