<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 5 mai 2022 à 15:57, Yadd <<a href="mailto:yadd@debian.org">yadd@debian.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 05/05/2022 15:49, Pirate Praveen wrote:<br>
> <br>
> <br>
> On വ്യാ, മേയ് 5 2022 at 03:46:30 വൈകു +0200 +0200, Yadd <<a href="mailto:yadd@debian.org" target="_blank">yadd@debian.org</a>> <br>
> wrote:<br>
>> On 05/05/2022 11:53, Pirate Praveen wrote:<br>
>>> Package: pkg-js-tools<br>
>>> Version: 0.14.19<br>
>>><br>
>>> An example is istextorbinary module it has both esm and cjs <br>
>>> versions and  so require test should not be skipped even though type: <br>
>>> module is present.<br>
>>><br>
>>>   "type": "module",<br>
>>>   "main": "edition-es2019/index.js",<br>
>>>   "exports": {<br>
>>>     "node": {<br>
>>>       "import": "./edition-es2019-esm/index.js",<br>
>>>       "require": "./edition-es2019/index.js"<br>
>>>     },<br>
>><br>
>> Hi,<br>
>><br>
>> could you give me the repository link ?<br>
> <br>
> This is a new package and I need some more work before I can push it. <br>
> For now you can just try with npm2deb create istextorbinary I think.<br>
<br>
Could you give me the link to a complete "exports" syntax ? It seems <br>
there are many ways to declare CJS files<br></blockquote><div><br></div><div>I may have skipped that part when I explained this to you :)</div><div>See</div><div>file:///usr/share/doc/nodejs/api/packages.html#conditional-exports</div><div><br></div></div></div>