Skip to content

Make typings in package.json an array #6585

@pocesar

Description

@pocesar

Sometimes the main file (like index.d.ts) won't, (and IMHO, should not) reference all the other .ts files from the project. Imagine I have 15+ folders each has a .ts and a .d.ts declaration for it, index.d.ts knows nothing about those files, because index.ts doesn't use them directly.
What about if typings could be an array, and you would be able to specify the order of the typings like:

{
"typings": [
   "./index.d.ts",
   "./somefolder/file1.d.ts",
   "./somefolder/file2.d.ts",
   "./somefolder/file3.d.ts",
   "./anotherfolder/file1.d.ts"
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it adds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions