Skip to content

Conversation

JackRobards
Copy link
Owner

I accidentally broke the CLI as part of upgrading the chalk package (version 5 is pure ESM). Switching the CLI to ESM also gets it working properly again, without needing to downgrade the chalk dependency.

The CLI export is also now separate from the rest of the lit-analyzer package, and so won't be included as part of the default index.js file.

I will try to look at adding some tests around the CLI tool soon, to prevent this sort of regression from happening in the future.

Unfortunately, I don't believe that it is possible to upgrade the rest of the packages to ESM yet. I explored this work in this other PR, but until VSCode supports ESM dependencies that work is blocked.

@changeset-bot
Copy link

changeset-bot bot commented Jan 22, 2025

🦋 Changeset detected

Latest commit: df2021e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@jackolope/lit-analyzer Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JackRobards JackRobards merged commit 21f38f5 into main Jan 22, 2025
6 checks passed
@JackRobards JackRobards deleted the fix-lit-analyzer-cli branch January 22, 2025 05:30
@github-actions github-actions bot mentioned this pull request Jan 21, 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.

1 participant