Skip to content

Commit

Permalink
Add files field to CLI package and update configurations
Browse files Browse the repository at this point in the history
- Added a `files` field to `cli/package.json` to include `dist-cli/**/*` in the published package.
- Updated `.syncpackrc` to sort and include the `files` field for consistent package configuration.
- Modified `biome.jsonc` to ignore `package.json` formatting to avoid conflicts with Syncpack.
  • Loading branch information
hoshinotsuyoshi committed Dec 4, 2024
1 parent 4abcf14 commit 2803722
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/.syncpackrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"devDependencies",
"peerDependencies",
"scripts",
"packageManager"
"packageManager",
"files"
],
"sortPackages": true,
"semverGroups": [
Expand Down
5 changes: 4 additions & 1 deletion frontend/packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@
"lint:biome": "biome check .",
"lint:tsc": "tsc --noEmit",
"test": "vitest run"
}
},
"files": [
"dist-cli/**/*"
]
}
3 changes: 2 additions & 1 deletion frontend/packages/configs/biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 80
"lineWidth": 80,
"ignore": ["package.json"] // some rules conflict with syncpack
},
"linter": {
"enabled": true,
Expand Down

0 comments on commit 2803722

Please sign in to comment.