Skip to content

Commit

Permalink
move core node-file-trace logic into turbopack
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon authored and mischnic committed Oct 11, 2024
1 parent ca5eb39 commit 3959afe
Show file tree
Hide file tree
Showing 8 changed files with 435 additions and 337 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions turbopack/crates/node-file-trace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ turbopack-resolve = { workspace = true }

[build-dependencies]
turbo-tasks-build = { workspace = true }

[dev-dependencies]
insta = "1.40.0"
18 changes: 18 additions & 0 deletions turbopack/crates/node-file-trace/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# node-file-trace

Node file trace (nft) is a binary / library that can be used to precisely determine
which files (including those in `node_modules`) are needed for a given application at
run time.

## Usage

There are a few commands available (accessed via the `Args` struct if consuming as a
library). You can see these by running the binary. The binary should be self-documenting.

```bash
cargo run
```

## Externals

Tracing externals is not currently supported, though support will be added soon.
Loading

0 comments on commit 3959afe

Please sign in to comment.