Skip to content

Commit

Permalink
chore: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
binjospookie committed Jan 6, 2024
1 parent 03992ce commit ad7ac8b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions website/src/content/docs/explanation/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ The task is to compare all exports and imports of the package. Anything not impo
1. file reading is divided into batches
2. file is not immediately converted to AST. First the import of the package is searched for in the file. _createReadStream_ is used
3. there is an instant exit with success as soon as the size of _exports Set_ is equal to zero
4. [swc](https://swc.rs/) is used to parse the AST
5. [fdir](https://thecodrr.github.io/fdir/) is used as project crawler
4. <a href="https://swc.rs" target="_blank">swc</a> is used to parse the AST
5. <a href="https://thecodrr.github.io/fdir" target="_blank">fdir</a> is used as project crawler
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: How to find unused code inside a package with Pure Index
---

1. Use Pure Index to find unused exports from packages.
2. Use [knip](https://knip.dev/) or [ts-prune](https://github.com/nadeesha/ts-prune) to clean up unused code inside packages.
2. Use <a href="https://knip.dev" target="_blank">knip</a> or <a href="https://github.com/nadeesha/ts-prune" target="_blank">ts-prune</a> to clean up unused code inside packages.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm run check-exports
3. Depending on the project, you may need to [configure](/pure-index/reference/configuration) Pure Index.

:::tip
Use [nx](https://nx.dev) (or any other monorepo manager) to run a script for checking multiple packages with a single command.
Use <a href="https://nx.dev" target="_blank">nx</a> (or any other monorepo manager) to run a script for checking multiple packages with a single command.

```bash title="Example"
nx run-many --target=check-usage --parallel=12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ title: How to speed up the checking of exports

1. [Exclude](/pure-index/reference/configuration#exclude) all directories where your package cannot be found (dist, build, .cache, toolchain, etc).

2. If you have multiple packages inside a monorepo, use tools to run scripts in parallel and cache the result like [nx](https://nx.dev), [turborepo](https://turbo.build/repo) or similar.
2. If you have multiple packages inside a monorepo, use tools to run scripts in parallel and cache the result like <a href="https://nx.dev" target="_blank">nx</a>, <a href="https://turbo.build/repo" target="_blank">turborepo</a> or similar.

3. Customize the [batch](/pure-index/reference/configuration#batch) value for your project.
2 changes: 1 addition & 1 deletion website/src/content/docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ List of directories that will be excluded when searching for imports.
- **Type**: `object`
- **Default**: `{"syntax": "typescript", "tsx": true}`

Object with [swc parser parameters](https://swc.rs/docs/configuration/compilation#jscparser)
Object with <a href="https://swc.rs/docs/configuration/compilation#jscparser" target="_blank">swc parser parameters</a>

### dir

Expand Down

0 comments on commit ad7ac8b

Please sign in to comment.