Skip to content

Conversation

@bunsenstraat
Copy link
Collaborator

No description provided.

ci-bot and others added 30 commits October 7, 2025 09:15
…n.lock working, package-lock needs investigation
Lock files (yarn.lock, package-lock.json) are now reloaded fresh each time
a package version needs to be resolved. This ensures that changes to lock
files during the session are picked up immediately.

Previously, lock files were parsed once during ImportResolver initialization
and cached. If a user added or modified a lock file, the stale cached versions
would be used, causing the wrong package version to be resolved.

Changes:
- Clear lockFileVersions map before each reload
- Call loadLockFileVersions() in resolvePackageVersion() before checking cache
- This has minimal overhead as lock files are small text files
@bunsenstraat bunsenstraat marked this pull request as ready for review December 22, 2025 16:18
@yann300
Copy link
Contributor

yann300 commented Dec 22, 2025

do you still need the hardbat boiler plate in there?

path = this.normalize(path)
path = this.limitPluginScope(path)
path = this.getPathFromUrl(path).file
path = (await this.getPathFromUrl(path)).file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it an async function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old code :) reverted

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.

3 participants