Closed jclaveau closed 11 months ago
Uh oh! @jclaveau, the image you shared is missing helpful alt text. Check your issue body.
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.
Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
Uh oh! @jclaveau, the image you shared is missing helpful alt text. Check your issue body.
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.
Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
Whew, got me scared with this title 😄 but this is really a docs request. I don't recall ever seeing an issue reported on the github:...
syntax. It feels to me that if a project is going to link to a repository in that way, it should really be willing to work with details of how the tooling works (read: this is a userland issue, not a dedent issue). That tooling is -to my understanding- mostly meant for developers to be able to try something locally or pin to a specific in-development / unpublished version of the repository.
Furthermore, if you're going to link to a repository, you should really pin to a specific commit. Linking to "github:..."
is the equivalent of "*"
for the version number. No guarantees your builds won't suddenly start failing from a breaking change upon a coincidental lockfile update.
...all that being said, most of my other repos have an explicit install
command in their readme. I can add one in here. Thanks for the suggestion!
I didn't expect dedent to be added with a github:...
url when I ran pnpm install dmnd/dedent
, I just noticed it afterwards (including the absence of commit).
Thank you for your time!
Bug Report Checklist
main
branch of the repository.Expected
Actual
I installed
dedent
withpnpm install dmnd/dedent
Then Typescript can't find the declaration but at runtime (Vite devServer) my strings are dedented:
Also trying to auto-import it with https://github.com/unplugin/unplugin-auto-import configured with
I get
Additional Info
My project is a pnpm monorepo with one tsconfig per package. dedent is a dep of only one of the packages
When I go to
node_modules/dedent
, thedist
folder is missing.When I install the dev dependencies and build it, the
dist
folder is created and everything works wellInvestigating I realized that my package.json was odd
so I run a
pnpm remove dedent
thenpnpm install dedent
and everythin works well now (removing it first is mandatory)I open this bug anyway as it may be useful to add an 'install' section to the README to avoid this. I personally didn't know that pnpm would automatically map to github if I added the vendor in the install command.