Document usage with pnpm
See original GitHub issueTo get XO to work on a pnpm
directory, all ESLint-related XO-dependencies must be installed as a devDependency
. This can be accomplished with the following command:
(
export PKG=xo;
npm info "xo@latest" dependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | grep "\"eslint" | xargs pnpm i -D "$PKG@latest"
)
To fix the eslint-plugin-import
issues (#270), eslint-import-resolver-node
must also be installed:
pnpm install --save-dev eslint-import-resolver-node
Finally, if "prettier"
is set to true
in XO’s config, it must be installed too:
pnpm install --save-dev prettier
I think it would be prudent to document this in the README.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Fast, disk space efficient package manager | pnpm
Fast. pnpm is up to 2x faster than the alternatives ; Efficient. Files inside node_modules are cloned or hard linked from a single...
Read more >pnpm - npm
pnpm uses a content-addressable filesystem to store all files from all module directories on a disk. When using npm, if you have 100...
Read more >npm, pnpm, and Yarn | WebStorm Documentation - JetBrains
WebStorm also uses the path to the chosen package manager every time you invoke the Run 'npm install'/Run 'yarn install'/Run 'pnpm install' ...
Read more >How to use pnpm with Netlify Build
With pnpm, you can share dependencies across multiple projects and any changes to those dependencies only require an update to whatever files ......
Read more >JavaScript package managers compared: npm, Yarn, or pnpm?
pnpm uses the same configuration mechanism as npm, so you can use a .npmrc file. Configuring a private registry also works the same...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
pnpm
is not a “random” package manager. It’s used by several major companies and has a dedicated and growing user base.And the idea is that if a user has chosen
pnpm
as their primary package manager, and they want to use XO, they can. If a user wants to run XO on a project or environment wherepnpm
is required, they can. Running 3 commands isn’t that much trouble, and properly documenting helps everyone.Closing this, as someone searching for “xo and pnpm” will be able to find this issue easily. Didn’t mean to annoy or upset anyone.