Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore files when publishing packages for Deno

I have done my first package for Deno, and then I publish it to deno.land/x/.

I would like to know if there is a way to Ignore some files and dires at the time of upload the package, example: [".github",".vim","test_deps.ts"].

Pretty much like .npmignore.

like image 415
Eliaz Bobadilla Avatar asked Oct 27 '25 09:10

Eliaz Bobadilla


1 Answers

There is not currently a way to ignore files, but if you'd like to only include certain files, you can organize them separately in a subdirectory of your repository, and use that option when publishing your module:

deno - publish module - options - subdirectory

The subdirectory that you choose in this step will become the root of the module's file hierarchy.

like image 169
jsejcksn Avatar answered Oct 30 '25 14:10

jsejcksn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!