Skip to content

Formatting package.json#3

Merged
arshad-yaseen merged 1 commit intobunup:mainfrom
ryohidaka:style/format-package-json
Jan 9, 2026
Merged

Formatting package.json#3
arshad-yaseen merged 1 commit intobunup:mainfrom
ryohidaka:style/format-package-json

Conversation

@ryohidaka
Copy link
Copy Markdown
Contributor

What:

Formatting codes in directories starting with full-*

Why:

Lint errors occur at the time of project creation

Sample
$ biome check .
package.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ✖ Formatter would have printed the following content:

     1  1 │   {
     2    │ - ··"name""bunup-test",
     3    │ - ··"version""0.1.0",
     4    │ - ··"description""Production-ready·component·library·with·best·practices",
     5    │ - ··"homepage""https://github.com/ryohidaka/bun-test#readme",
     6    │ - ··"bugs":·{
     7    │ - ····"url""https://github.com/ryohidaka/bun-test/issues"
     8    │ - ··},
     9    │ - ··"license""MIT",
    10    │ - ··"files":·[
    11    │ - ····"dist"
    12    │ - ··],
    13    │ - ··"repository":·{
    14    │ - ····"type""git",
    15    │ - ····"url""git+https://github.com/ryohidaka/bun-test.git"
    16    │ - ··},
    17    │ - ··"scripts":·{
    18    │ - ····"build""bunup",
    19    │ - ····"dev""bunup·--watch",
    20    │ - ····"postinstall""bun·simple-git-hooks",
    21    │ - ····"lint""biome·check·.",
    22    │ - ····"lint:fix""biome·check·--write·.",
    23    │ - ····"release""bumpp·--commit·--push·--tag",
    24    │ - ····"test""bun·test",
    25    │ - ····"test:coverage""bun·test·--coverage",
    26    │ - ····"test:watch""bun·test·--watch",
    27    │ - ····"type-check""tsc·--noEmit"
    28    │ - ··},
    29    │ - ··"devDependencies":·{
    30    │ - ····"@biomejs/biome""^2.3.11",
    31    │ - ····"@types/bun""^1.3.5",
    32    │ - ····"bumpp""^10.3.2",
    33    │ - ····"bunup""^0.16.17",
    34    │ - ····"simple-git-hooks""^2.13.1",
    35    │ - ····"typescript""^5.9.3"
    36    │ - ··},
    37    │ - ··"peerDependencies":·{
    38    │ - ····"typescript"">=4.5.0"
    39    │ - ··},
    40    │ - ··"peerDependenciesMeta":·{
    41    │ - ····"typescript":·{
    42    │ - ······"optional":·true
    43    │ - ····}
    44    │ - ··},
    45    │ - ··"type""module",
    46    │ - ··"exports":·{
    47    │ - ····".":·{
    48    │ - ······"import":·{
    49    │ - ········"types""./dist/index.d.ts",
    50    │ - ········"default""./dist/index.js"
    51    │ - ······}
    52    │ - ····},
    53    │ - ····"./package.json""./package.json"
    54    │ - ··},
    55    │ - ··"module""./dist/index.js",
    56    │ - ··"simple-git-hooks":·{
    57    │ - ····"pre-commit""bun·run·lint·&&·bun·run·type-check"
    58    │ - ··},
    59    │ - ··"types""./dist/index.d.ts"
        2 │ + → "name""bunup-test",
        3 │ + → "version""0.1.0",
        4 │ + → "description""Production-ready·component·library·with·best·practices",
        5 │ + → "homepage""https://github.com/ryohidaka/bun-test#readme",
        6 │ + → "bugs":·{
        7 │ + → → "url""https://github.com/ryohidaka/bun-test/issues"
        8 │ + → },
        9 │ + → "license""MIT",
       10 │ + → "files":·[
       11 │ + → → "dist"
       12 │ + → ],
       13 │ + → "repository":·{
       14 │ + → → "type""git",
       15 │ + → → "url""git+https://github.com/ryohidaka/bun-test.git"
       16 │ + → },
       17 │ + → "scripts":·{
       18 │ + → → "build""bunup",
       19 │ + → → "dev""bunup·--watch",
       20 │ + → → "postinstall""bun·simple-git-hooks",
       21 │ + → → "lint""biome·check·.",
       22 │ + → → "lint:fix""biome·check·--write·.",
       23 │ + → → "release""bumpp·--commit·--push·--tag",
       24 │ + → → "test""bun·test",
       25 │ + → → "test:coverage""bun·test·--coverage",
       26 │ + → → "test:watch""bun·test·--watch",
       27 │ + → → "type-check""tsc·--noEmit"
       28 │ + → },
       29 │ + → "devDependencies":·{
       30 │ + → → "@biomejs/biome""^2.3.11",
       31 │ + → → "@types/bun""^1.3.5",
       32 │ + → → "bumpp""^10.3.2",
       33 │ + → → "bunup""^0.16.17",
       34 │ + → → "simple-git-hooks""^2.13.1",
       35 │ + → → "typescript""^5.9.3"
       36 │ + → },
       37 │ + → "peerDependencies":·{
       38 │ + → → "typescript"">=4.5.0"
       39 │ + → },
       40 │ + → "peerDependenciesMeta":·{
       41 │ + → → "typescript":·{
       42 │ + → → → "optional":·true
       43 │ + → → }
       44 │ + → },
       45 │ + → "type""module",
       46 │ + → "exports":·{
       47 │ + → → ".":·{
       48 │ + → → → "import":·{
       49 │ + → → → → "types""./dist/index.d.ts",
       50 │ + → → → → "default""./dist/index.js"
       51 │ + → → → }
       52 │ + → → },
       53 │ + → → "./package.json""./package.json"
       54 │ + → },
       55 │ + → "module""./dist/index.js",
       56 │ + → "simple-git-hooks":·{
       57 │ + → → "pre-commit""bun·run·lint·&&·bun·run·type-check"
       58 │ + → },
       59 │ + → "types""./dist/index.d.ts"
    60 60 │   }
    61 61 │


Checked 5 files in 6ms. No fixes applied.
Found 1 error.
check ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ✖ Some errors were emitted while running checks.


error: script "lint" exited with code 1

How:

Run lint:fix for all directories starting with full-*

@arshad-yaseen
Copy link
Copy Markdown
Collaborator

Oh thanks! 🚀

@arshad-yaseen arshad-yaseen merged commit 5c57ee6 into bunup:main Jan 9, 2026
@ryohidaka ryohidaka deleted the style/format-package-json branch January 9, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants