chore(repo): fix incorrect import path in virtual plugin #1702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rollup Plugin Name:
virtual
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Might fix builds for PR #1578, so it probably could be accepted too then
Description
The "virtual" plugin package currently imports its own types from
../
, even though its types are actually placed inside../types
. Every other plugin appears to correctly import from../types
too (see e.g. alias, auto-install, ...).I stumbled across this while attempting to build the code of PR #1578 (which i need a fix for too) on my local machine, which errored due to the incorrect import. I noticed the current state is building solely because the virtual plugin lists its type definitions file in its
package.json
via thetypes
property, which miraculously letstsc
accept the faulty import (even though it shouldn't, in my opinion). My guess is it just works somehow because../
points to the folder where thepackage.json
lives in, which then references the types file 🤷♂️. Now, because in the PR #1578 thetypes
property is gone, we get an error there.I previously opened a PR to fix the branch of the original PR, but @Geylnu did not respond yet. So why did i open this PR then? Because i think this import path is incorrect and should be fixed anyway, no matter if the other PR will at some point be accepted (or maybe never might be).