Skip to content
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

feat: use PNPM logic to process depPathToFilename #24

Merged
merged 5 commits into from
Apr 10, 2024

Conversation

g-chao
Copy link
Collaborator

@g-chao g-chao commented Apr 9, 2024

Summary

There is an issue with the "targetFolder" in the ".pnpm-sync.json" file generated by pnpm-sync-lib. It is parsed from the "pnpm-lock" file, but the actual path used by pnpm is truncated and partially replaced with a hash due to the original path being too long.

It turns out there is an official PNPM package @pnpm/dependency-path that can help with this situation. https://github.com/pnpm/pnpm/blob/f7537b87f4346991a773f1cd039836bb67726861/packages/dependency-path/src/index.ts#L122

@g-chao g-chao merged commit 8883a2f into main Apr 10, 2024
2 checks passed
@g-chao g-chao deleted the chao/depPathToFilename branch April 10, 2024 00:06
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