[Pkg-javascript-devel] Bug#942361: Bug#942361: Bug#942361: I think .d.ts files should be included by default

Xavier yadd at debian.org
Wed Oct 16 22:13:06 BST 2019


Le 15/10/2019 à 10:24, Pirate Praveen a écrit :
> 
> 
> On Tue, Oct 15, 2019 at 13:35, Pirate Praveen <praveen at onenetbeyond.org>
> wrote:
>>
>>
>> On Tue, Oct 15, 2019 at 13:27, Pirate Praveen
>> <praveen at onenetbeyond.org> wrote:
>>>
>>>
>>> On Tue, Oct 15, 2019 at 13:23, Pirate Praveen
>>> <praveen at onenetbeyond.org> wrote:
>>>> Even though package.json#files mentions dist, I think .d.ts was
>>>> filtered out.
>>>
>>> I found the problem, package.json#scripts had a cp command too to
>>> copy d.ts, which I missed. Though original request to check typings
>>> field is still valid I think.
>>
>> Also just noticed we were not using pkg-js-t ools with
>> node-rollup-pluginutils.
> 
> As mentioned in the pkg-js list, types field does not work, so we should
> probably not install package.json#types but show a lintian warning,
> patch it and report upstream to use package.json#typings instead.

Hi,

I found another way:
 * back to "install all files when 'files' is missing"
 * else install "files", "types", "typings" files

I added this warning but tsc seems to fail even with "typings" field.
Workaround: debian/nodejs/extcopies in pkg-js-tools ≥ 0.9.17



More information about the Pkg-javascript-devel mailing list