Skip to main content


The files command will list all files within a package that will be distributed, based on the files property in package.json, and taking into account any ignore files. This is useful for verifying the contents of a package is what you expect before publishing.

packemon files <package name>


Files supports the following command line options.

  • --format - The format to display the files in. Accepts "tree" (default) or "list".


Example output using our own package.

Tree format

โ”Œโ”€ dts
โ”‚ โ””โ”€ index.d.ts
โ”œโ”€ lib
โ”‚ โ”œโ”€ index.js
โ”‚ โ””โ”€
โ”œโ”€ src
โ”‚ โ””โ”€ index.ts
โ”œโ”€ LICENSE
โ”œโ”€ package.json

List format

โ”Œโ”€ dts/index.d.ts
โ”œโ”€ lib/index.js
โ”œโ”€ lib/
โ”œโ”€ src/index.ts
โ”œโ”€ LICENSE
โ”œโ”€ package.json