Skip to content

Commit 859c5e3

Browse files
committed
Add note to readme that --tsconfig option works in watch mode
1 parent cbe0c5e commit 859c5e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Rollpkg uses the TypeScript compiler to transform your code to `ES2018` (default
203203
- `rollpkg build`
204204
- For most use cases no options are needed, just run the `rollpkg build` command. It creates `esm` and `cjs` builds with source maps and `*.d.ts` type files.
205205
- `rollpkg build --tsconfig ./path/to/tsconfig.build.json`
206-
- You can specify a custom path or name for your `tsconfig` if needed. By default Rollpkg will look in the root of your project for a `tsconfig.json` file.
206+
- You can specify a custom path or name for your `tsconfig` if needed. This option also works in watch mode with `rollpkg watch`. By default Rollpkg will look in the root of your project for a `tsconfig.json` file.
207207
- `rollpkg build --addUmdBuild`
208208
- By default `rollpkg build` only creates `esm` and `cjs` builds, use this option to also create `umd` builds.
209209
- `rollpkg build --noStats`
@@ -248,6 +248,7 @@ Rollpkg uses the TypeScript compiler to transform your code to `ES2018` (default
248248
- Only creates the `esm` build so rebuilds are lightning quick.
249249
- Use `ctrl c` to exit watch mode.
250250
- Watch mode always exits `0` (non-error state) so you can chain commands in npm scripts, for example `rollpkg watch && npm run ...` (if watch mode didn't exit `0`, then `npm run ...` would never run).
251+
- Can specify a custom name or path for your `tsconfig` using `rollpkg watch --tsconfig ./path/to/tsconfig.build.json`
251252

252253
---
253254

0 commit comments

Comments
 (0)