grunt-tsd
grunt-tsd copied to clipboard
Additional Properties are Not Allowed
I managed to install and overwrite every file with tsd-cli without any problem, but after I register a tsd task to project gruntfile and took this error because schema pattern properties does not allow us to inner files as its pattern regex is
"^[\\w\\.-]+\\/[\\w\\.-]+\\.d\\.ts$"
so installing some package (cordova in my situation) which contains some other folders in its (plugins folder in this case) cannot be installed via grunt-tsd
Hmm, I assume you use TSD 0.6 prerelease to install the definitions?
Grunt-tsd is still the old one TSD 0.5.7 what still has this restriction.
Forgot to add: I'm push TSD 0.6 any day now and will update grunt-tsd too, got time coming up.
Yes I am using TSD 0.6. Thank you for your quick response.
Cool, I'll try to publish a temporary solution asap (days).
If you need it sooner you can fork grunt-tsd and change the package.json to have TSD point to the same semver as your globally install TSD 0.6, then link your project to your grunt-tsd fork using a git url instead of the semver.
I pushed a prerelease to npm that links TSD 0.6.
Install using a tag and it will get a grunt-tsd 0.2.0-beta
npm install grunt-tsd@next --save
Let me know if this works (you are now beta tester).