Skip to content

Commit

Permalink
(docs): document usage of multi-entry w/ subdirs + globs
Browse files Browse the repository at this point in the history
  • Loading branch information
agilgur5 committed Dec 14, 2019
1 parent b8f0f4b commit ecafed2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,16 @@ Examples
You can run `tsdx watch` or `tsdx build` with multiple entry files, for example:
```shell
tsdx build --entry src/index.ts --entry src/foo.ts
# outputs dist/index.js dist/foo.js and their respective formats and declarations
tsdx build \
--entry src/index.ts \
--entry src/foo.ts \
--entry src/subdir/index.ts \
--entry src/globdir/**/*.ts;
# outputs dist/index.js, dist/foo.js, dist/subdir/index.js, and dist/globdir/**/*.js
# as well as their respective formats and declarations
```
When given multiple entries, TSDX will output separate bundles for each file for each format, as well as their declarations. Each file will be output to `dist/` with the same name it has in the `src/` directory.
When given multiple entries, TSDX will output separate bundles for each file for each format, as well as their declarations. Each file will be output to `dist/` with the same name it has in the `src/` directory. Entries in subdirectories of `src/` will be mapped to equivalently named subdirectories in `dist/`. TSDX will also expand any globs.
## Author
Expand Down

0 comments on commit ecafed2

Please sign in to comment.