definitelytyped.github.io
definitelytyped.github.io copied to clipboard
Version information
From the 'Publish to @types' from typescriptlang.org I understand that the definitions from DefinitelyTyped are used to create the @types/<library>
npm modules. From the contributing page I was wondering if the advice on versioning is still correct when it suggests library-1.2.0.d.ts
? (Which if #64 is correct then it should be index-1.2.0.d.ts too?) I was wondering (and am happy to prepare a pr to update documentation):
- what the SemVer version relates to. Are the major and minor parts related to the package version it is trying to follow, so for example, [email protected] should have an @types/[email protected] npm package?
- Is the patch version just autoincremented whenever a change to the .d.ts version in the DefinitelyTyped github repo is observed? If not how is it set? lodash only went up to 4.14.2 in npm but the @types/lodash goes up to 4.14.54
- Where are the major and minor versions obtained from? I can see that in the lodash index.d.ts it is written at the top of the header: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/lodash/index.d.ts am I correct in saying the major and minor versions parsed out from there but not the patch version (it shouldn't be given)?
Apologies if questions are confused / duplicated. Many thanks for any clarifications.
So this is relevant (great!) progress: https://github.com/Microsoft/types-publisher/pull/264