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

fix(ruleset-bundler): improve package import heuristics #1985

Merged
merged 4 commits into from
Dec 10, 2021

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Dec 2, 2021

As raised on our Discord https://discord.com/channels/841794018173648916/859895506271600670/916069211405705246
image

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

@P0lip P0lip added the t/bug Something isn't working label Dec 2, 2021
@P0lip P0lip self-assigned this Dec 2, 2021
const path = id.split('/');

if (path.length > 0 && isValidPackageName(path[0])) {
if (isPackageImport(id)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@P0lip P0lip marked this pull request as ready for review December 2, 2021 22:03
@P0lip P0lip requested review from a team and jgreen44 and removed request for a team December 2, 2021 22:04
@P0lip P0lip requested a review from domagojk December 6, 2021 19:07
@jgreen44 jgreen44 removed their request for review December 7, 2021 15:08
@P0lip P0lip enabled auto-merge (squash) December 10, 2021 15:43
@P0lip P0lip merged commit 5c013e9 into develop Dec 10, 2021
@P0lip P0lip deleted the fix/rollup/silent-out-message branch December 10, 2021 15:45
stoplight-bot pushed a commit that referenced this pull request Dec 10, 2021
# [@stoplight/spectral-ruleset-bundler-v1.0.1](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-ruleset-bundler-v1.0.0...@stoplight/spectral-ruleset-bundler-v1.0.1) (2021-12-10)

### Bug Fixes

* **ruleset-bundler:** improve package import heuristics ([#1985](#1985)) ([5c013e9](5c013e9))
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version @stoplight/spectral-ruleset-bundler-v1.0.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants