From 2803722abbd98f57b462b9f75ee019873ea51ffb Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Wed, 4 Dec 2024 15:30:50 +0900 Subject: [PATCH] Add `files` field to CLI package and update configurations - 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. --- frontend/.syncpackrc | 3 ++- frontend/packages/cli/package.json | 5 ++++- frontend/packages/configs/biome.jsonc | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/.syncpackrc b/frontend/.syncpackrc index 6ea44f18a..18d760587 100644 --- a/frontend/.syncpackrc +++ b/frontend/.syncpackrc @@ -13,7 +13,8 @@ "devDependencies", "peerDependencies", "scripts", - "packageManager" + "packageManager", + "files" ], "sortPackages": true, "semverGroups": [ diff --git a/frontend/packages/cli/package.json b/frontend/packages/cli/package.json index 4bfdbb161..373c85ce6 100644 --- a/frontend/packages/cli/package.json +++ b/frontend/packages/cli/package.json @@ -51,5 +51,8 @@ "lint:biome": "biome check .", "lint:tsc": "tsc --noEmit", "test": "vitest run" - } + }, + "files": [ + "dist-cli/**/*" + ] } diff --git a/frontend/packages/configs/biome.jsonc b/frontend/packages/configs/biome.jsonc index ceed9667a..3a7dd4d0c 100644 --- a/frontend/packages/configs/biome.jsonc +++ b/frontend/packages/configs/biome.jsonc @@ -6,7 +6,8 @@ "formatter": { "enabled": true, "indentStyle": "space", - "lineWidth": 80 + "lineWidth": 80, + "ignore": ["package.json"] // some rules conflict with syncpack }, "linter": { "enabled": true,