Clarify definition of custom output file names in docs (#911)

This commit is contained in:
Pascal Jufer 2023-06-16 08:56:33 +02:00 committed by GitHub
parent a0362424a3
commit e3f02be280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,11 @@ Beside using positional arguments `tsup [...files]` to specify multiple entrypoi
```bash
# Outputs `dist/a.js` and `dist/b.js`.
tsup --entry src/a.ts --entry src/b.ts
```
The associated output file names can be defined as follows:
```bash
# Outputs `dist/foo.js` and `dist/bar.js`.
tsup --entry.foo src/a.ts --entry.bar src/b.ts
```