Skip to content

Commit

Permalink
Merge pull request #22 from pafry7/fix/readme
Browse files Browse the repository at this point in the history
docs: fix library name in npx example
  • Loading branch information
kazushisan authored Sep 19, 2024
2 parents 55fdd7f + 39b1c28 commit ac7f03a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ The CLI will respect the `tsconfig.json` for loading source files.
Here's an example of using the cli. Make sure to skip your entrypoint file.

```bash
npx ts-remove-unused --skip 'src\/main\.ts'
npx @line/ts-remove-unused --skip 'src\/main\.ts'
```

### Check

Use `--check` to check for unused files and exports without making changes to project files. The command will exit with exit code 1 if there are any unused files or exports discovered.

```bash
npx ts-remove-unused --check
npx @line/ts-remove-unused --check
```

### Use the JavaScript API
Expand Down Expand Up @@ -139,7 +139,7 @@ export const hello = 'world';
The `--skip` option is also available to skip files that match a given regex pattern. Note that you can pass multiple patterns.

```bash
npx ts-remove-unused --skip 'src/main\.ts' --skip '/pages/'
npx @line/ts-remove-unused --skip 'src/main\.ts' --skip '/pages/'
```

By default, `.d.ts` files are skipped. If you want to include `.d.ts` files, use the `--include-d-ts` option.
Expand Down

0 comments on commit ac7f03a

Please sign in to comment.