Skip to content

Conversation

@hipstersmoothie
Copy link

@hipstersmoothie hipstersmoothie commented Oct 6, 2025

Comment on lines +120 to +130

if (opts.fullTraceInclude) {
const allFiles = await glob("**/*", {
cwd: tracedFile.pkgPath,
ignore: ["node_modules/**"],
});

for (const file of allFiles) {
tracedPackageVersion.files.push(file);
}
}
Copy link
Author

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

Copy link
Member

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) {
Copy link
Member

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.

@pi0 pi0 changed the title Add fullTraceInclude option feat: add fullTraceInclude option Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants