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

chore(db): Add missing github-slugger dependency & tests #10405

Merged
merged 4 commits into from
Mar 19, 2024

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Mar 12, 2024

Changes

This wasn't building locally thanks to github-slugger missing from the dependencies.

I've added it to the package, and a couple of tests while I was in there.

Testing

New unit tests were added (though unrelated to github-slugger)

Docs

N/A

Copy link

changeset-bot bot commented Mar 12, 2024

🦋 Changeset detected

Latest commit: 2375ce7

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

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

Copy link
Contributor

@lilnasy lilnasy left a comment

Choose a reason for hiding this comment

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

Looks great to me! Thanks for fixing it. I addressed the merge conflicts.

The changes seem obvious, but I'm surprised this wasn't an issue before. It may have to do with the specific package manager you use.

@43081j Could you share the error and the package manager it occurs with?

@ematipico
Copy link
Member

Yeah, this issue was completely unsound, but the package must be added. Thank you for fixing this

@43081j
Copy link
Contributor Author

43081j commented Mar 19, 2024

i didn't do anything odd in particular, i basically did a clean clone then pnpm i at the root and ran a build

i was using node v21, and pnpm 8.15.5 iirc

i'll try again locally later today if i can, to be sure it was those versions

@43081j
Copy link
Contributor Author

43081j commented Mar 19, 2024

just tried it on my macbook (was on WSL on windows before i think), with a clean clone

pnpm i
pnpm run build

@astrojs/db:build: src/core/cli/commands/link/index.ts:4:22 - error TS2307: Cannot find module 'github-slugger' or its corresponding type declarations.

node 21.7.1
pnpm 8.15.5

@43081j
Copy link
Contributor Author

43081j commented Mar 19, 2024

have done the PR comments FYI 👍

let me know if all is good

Copy link
Contributor

@bholmesdev bholmesdev left a comment

Choose a reason for hiding this comment

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

Surprised we got this far without catching... must have unsafely resolved from an Astro core dependency. Thanks for catching!

@ematipico ematipico merged commit 2ebcf94 into withastro:main Mar 19, 2024
14 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Mar 19, 2024
@43081j 43081j deleted the missing-slugger branch March 19, 2024 17:59
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.

4 participants