oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.17k stars 2.68k forks source link

Configurable `node_modules` folder name. #13380

Open Gn3po4g opened 1 month ago

Gn3po4g commented 1 month ago

What is the problem this feature would solve?

an alternative name for node_modules.

What is the feature you are proposing to solve the problem?

expose a configuration to set name of node_modules, like bun_modules or .modules.

What alternatives have you considered?

No response

Jarred-Sumner commented 1 month ago

This would be a very expensive decision in performance and in ecosystem compatibility

What value would it provide?

Gn3po4g commented 1 month ago

For example, a configuration

[install]
location = 'bun_modules' //default node_modules

I don't think it would make a big difference with the default value of node_modules.

The reason I suggested is that the filename node_modules is a bit strange if you develop with bun environment.

kravetsone commented 1 month ago

For example, a configuration

[install]
location = 'bun_modules' //default node_modules

I don't think it would make a big difference with the default value of node_modules.

The reason I suggested is that the filename node_modules is a bit strange if you develop with bun environment.

I guess it doesn't matter)

kravetsone commented 1 month ago

node_modules is defacto standard We also download from Node Package Manager

huseeiin commented 1 month ago

Aug 18, 2024

npm doesn't stand for "node package manager" read: https://github.com/npm/cli#is-npm-an-acronym-for-node-package-manager

lino-levan commented 4 weeks ago

npm does stand for "node package manager". Please stop falsely correcting people on this. read: https://x.com/rough__sea/status/1778377222597816536

Unrelatedly (or perhaps, back on topic), this proposal seems pretty short-sighted. I haven't seen a usecase for this irl.