-
Couldn't load subscription status.
- Fork 2
feat: add fullTraceInclude option
#4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| if (opts.fullTraceInclude) { | ||
| const allFiles = await glob("**/*", { | ||
| cwd: tracedFile.pkgPath, | ||
| ignore: ["node_modules/**"], | ||
| }); | ||
|
|
||
| for (const file of allFiles) { | ||
| tracedPackageVersion.files.push(file); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently this only adds all the files from a package detected by NFT. This does not account for new files discovered by nft. Not sure how to approach that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With option bein array, we can pre-resolve them here
| }; | ||
| tracedPackage.versions[pkgJSON.version || "0.0.0"] = tracedPackageVersion; | ||
|
|
||
| if (opts.fullTraceInclude) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option could be more granular by giving an array of problematic packages to full trace.
nitrojs/nitro#1988