bun icon indicating copy to clipboard operation
bun copied to clipboard

After `bun install`, package.json has weird formatting

Open Electroid opened this issue 2 years ago • 1 comments

Before

{
  "dependencies": {},
}

After

{
  "dependencies": { "@actions/core": "^1.10.0" },
}

It should look like this instead:

{
  "dependencies": {
    "@actions/core": "^1.10.0"
  },
}

Electroid avatar Feb 03 '23 19:02 Electroid

any news? Tabs auto convert to 2 spaces

R4R3-M37 avatar Sep 19 '23 18:09 R4R3-M37

Yeah this is actually quite annoying; if I have Prettier set to tabs but use bun add|install via the command line, it'll convert my tabs to spaces, requiring a re-format of package.json. It's trivial, but not very ergonomic.

orbiteleven avatar Oct 03 '23 15:10 orbiteleven