question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document usage with pnpm

See original GitHub issue

To 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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jorgegonzalezcommented, Jul 5, 2018

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 where pnpm is required, they can. Running 3 commands isn’t that much trouble, and properly documenting helps everyone.

1reaction
jorgegonzalezcommented, Jul 11, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found