grunt-tsd icon indicating copy to clipboard operation
grunt-tsd copied to clipboard

Additional Properties are Not Allowed

Open wickY26 opened this issue 10 years ago • 5 comments

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

wickY26 avatar Dec 02 '14 14:12 wickY26

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.

Bartvds avatar Dec 02 '14 17:12 Bartvds

Forgot to add: I'm push TSD 0.6 any day now and will update grunt-tsd too, got time coming up.

Bartvds avatar Dec 02 '14 17:12 Bartvds

Yes I am using TSD 0.6. Thank you for your quick response.

wickY26 avatar Dec 03 '14 07:12 wickY26

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.

Bartvds avatar Dec 03 '14 08:12 Bartvds

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).

Bartvds avatar Dec 03 '14 21:12 Bartvds