mirror of
https://github.com/egoist/tsup.git
synced 2025-12-08 20:35:58 +00:00
chore: tip for cli app
This commit is contained in:
parent
7cd17da1a6
commit
808bde32d3
@ -101,6 +101,10 @@ dist
|
||||
|
||||
You can use `--target es5` or `"target": "es5"` in `tsconfig.json` to compile the code down to es5, it's processed by [buble](http://buble.surge.sh/). Some features are NOT supported by this target, namely: `for .. of`.
|
||||
|
||||
### Building CLI app
|
||||
|
||||
When an entry file like `src/cli.ts` contains hashbang like `#!/bin/env node` tsup will automatically make the outout file executable, so you don't have to run `chmod +x dist/cli.js`.
|
||||
|
||||
### Watch mode
|
||||
|
||||
```bash
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user