Better HN
topnewbestaskshowjobs
Log inSign up

zkochan

39 karma · joined Jul 26, 2016 (10y ago) · 29 submissions

Submissions

comment 1y ago · link · parent

well, it is literally in an example in the text that you provided. So, I am not sure why you confused it with postinstall lifecycle scripts.

comment 1y ago · link · parent

enablePrePostScripts is about running "prebuild" and "postbuild" scripts automatically, when you run "pnpm run build"

comment 1y ago · link · parent

Good luck!

4.

Simulation: From Solipsism to Mahavishnu(vernus.one ↗)

3 points · by zkochan · 2y ago · discuss

5.

Painless Monorepo Dependency Management with Bit(bit.cloud ↗)

2 points · by zkochan · 4y ago · discuss

comment 4y ago · link · parent

> it starts from not judging people by their ethnicity or nationality

Russians that leave Russia are not blocked.

I am Hungarian by ethnicity. I will be probably also judged for the terrible policy of Orban. I feel deep shame for it. So I understand (a little) in what situation those "good" Russians are. And I know that those Russians support my decision and understand it.

comment 4y ago · link · parent

Racist rhetoric? Don't be ridiculous. There is no Russian race. I don't block Russians if they leave Russia. I have many Russian friends in Ukraine. Only Russians that live in Russia are blocked. Russians that pay tax to a government that is waging war against my country.

comment 4y ago · link · parent

> US-backed color revolutions - including the one in your very own country,

I see

I hope you won't use pnpm and we won't speak again.

comment 4y ago · link · parent

You have the audacity to call it anti Russian hysteria, when I should hide from air raid attacks sometimes several times a day?

Please don't use pnpm. Use Yarn or npm, those are better package managers for you.

comment 4y ago · link · parent

You can use pnpm without symlinks by setting node-linker=hoisted

https://pnpm.io/npmrc#node-linker

comment 4y ago · link · parent

In the USA there are different people. Good and bad. There are states that are very conservative and there is California. There are some basic values that everyone agrees upon. I think nobody can claim that everyone is bad or good in the US. Same goes for any other democratic society. Same goes for Ukraine. There are a lot of people that I don't like in Ukraine.

In Russia there are some good people but they are in extreme minority. Extreme. Even the liberals in Russia are supporting the annexation of Crimea. Maybe the dictatorship is the reason, maybe the propaganda. I don't know and I don't care. This is how it is and I do what I can to exclude them from my life.

comment 4y ago · link · parent

pnpm is really good for monorepos and there are many big open source projects that use pnpm: https://pnpm.io/workspaces#usage-examples

comment 4y ago · link · parent

pnpm also implements all three: https://pnpm.io/feature-comparison

But I think it is best to use Yarn for PnP and pnpm for the symlinked node_modules structure.

comment 4y ago · link · parent

Both pnpm and Yarn are independent projects maintained by the community. I personally think that these are better projects than npm CLI because they can make their own decisions. Not decisions dictated by business needs of a company.

I was OK to merge pnpm into npm in the past. They have never suggested me this opportunity. Instead, they decided to re-implement pnpm's algorithm into npm and call it "isolated mode".

comment 4y ago · link · parent

pnpm as well supports all three modes. But I think it is better to use Yarn for the PnP mode and pnpm for the symlinked mode.

Here is a feature comparison: https://pnpm.io/feature-comparison

comment 4y ago · link · parent

That was the deal a few weeks ago. After the atrocities that their army has committed in my country, I do not think I will ever unblock traffic from Russian Federation.

comment 4y ago · link · parent

Not symlinks. Hard links. Or copy-on-write on systems that support them.

comment 4y ago · link · parent

It is unrelated because you don't have this issue with pnpm. pnpm uses a central content-addressable store and each unique file is written only once on a disk. It doesn't matter in how many projects you install the same dependency.

comment 4y ago · link · parent

In any cases where pnpm doesn't work, you may set the node-linker=hoisted option and it will work:

https://pnpm.io/npmrc#node-linker

With node-linker=hoisted, pnpm creates a traditional hoisted (aka flat) node_modules, without using symlinks.

comment 4y ago · link · parent

Thank you!

comment 4y ago · link · parent

Слава Україні!

22.

Pnpm v4.9 comes with command completion(dev.to ↗)

1 points · by zkochan · 6y ago · discuss

23.

PNPM vs Yarn: monorepo node_modules(medium.com ↗)

4 points · by zkochan · 8y ago · discuss

comment 8y ago · link · parent

here's an article about how much less disk space is used by pnpm. This concept will probably come with the same disk space savings http://www.andrewconnell.com/blog/npm-yarn-pnpm-which-packag...

but this concept is fresh, pnpm already works;)

comment 8y ago · link · parent

This change will reduce the size node_modules uses up (10 or more times).

pnpm saves one version of a package only ever once on a disk and node_modules consume drastically less space

26.

Verdaccio 3 released(medium.com ↗)

2 points · by zkochan · 8y ago · discuss

27.

PNPM v2 is out Store server, recursive commands and other features since v1.0(medium.com ↗)

1 points · by zkochan · 8y ago · discuss

comment 9y ago · link · parent

Actually, I have written an article about this when the feature was added to pnpm: Why package managers need hook systems (https://medium.com/pnpm/why-package-managers-need-hook-syste...).

Also, soon pnpm will support aliases and that will make the hook system even more powerful

29.

How to publish an npm package together with its node_modules(github.com ↗)

1 points · by zkochan · 10y ago · discuss