Closed
Description
npm does not support importing packages from subdirectories of git repositories.
According to npm/npm#2974 (comment):
This isn't something that the npm CLI team is interested in adding to the tool.
There are third-party solutions like GitPkg that allow this functionality in npm, but I'm not sure we should rely on a third-party tool to handle imports–lest something bad happen.
However, both Yarn (although, yarn requires the website to also use yarn) and pnpm do support this, so we could convert this repository to use one of them instead.
This would also require any project that runs api-docs-tooling
use the same package manager (i.e. pnpm dlx
instead of npx
for execution).
Reference: nodejs/nodejs.org#7401 (comment)
Metadata
Metadata
Assignees
Labels
No labels