Search code examples
configuration-filesdeno

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.


Solution

  • 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.