Skip to main content

Files

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>

Options

Files supports the following command line options.

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

Examples

Example output using our own package.

Tree format

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

List format

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