[x] I used gofmt for formatting the code before submitting the pull request.
Fix npm pack when reading a pre packed npm package
When reading for an already packed npm package, there was a missing file path that wasn't set because of the changes to handle workspaces.
This PR should fix it by setting the file path.
[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[x] I used gofmt for formatting the code before submitting the pull request.
Fix npm pack when reading a pre packed npm package
When reading for an already packed npm package, there was a missing file path that wasn't set because of the changes to handle workspaces. This PR should fix it by setting the file path.