为 Deno 发布包时忽略文件

Ignore files when publishing packages for Deno

我已经完成了my first package for Deno, and then I publish it to deno.land/x/

我想知道是否有办法在上传包时忽略一些文件和目录,例如:[".github",".vim", "test_deps.ts"].

很像 .npmignore

目前没有忽略文件的方法,但如果您只想包含某些文件,可以将它们单独组织在存储库的子目录中,并在 publishing your module 时使用该选项:

您在此步骤中选择的子目录将成为模块文件层次结构的根目录。