Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-slot": "catalog:",
"@sipe-team/tokens": "workspace:*",
"@vanilla-extract/css": "catalog:",
"@vanilla-extract/recipes": "^0.5.5",
"clsx": "^2.1.0",
"@vanilla-extract/recipes": "catalog:",
"clsx": "catalog:",
"@sipe-team/icon": "workspace:*"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-slot": "catalog:",
"@sipe-team/typography": "workspace:^",
"@sipe-team/tokens": "workspace:*",
"clsx": "^2.1.1"
"clsx": "catalog:"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "catalog:",
"@storybook/addon-essentials": "catalog:",
"@storybook/addon-interactions": "catalog:",
"@storybook/addon-links": "catalog:",
Expand All @@ -38,8 +38,8 @@
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@types/react": "catalog:react",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@vanilla-extract/css": "catalog:",
"happy-dom": "catalog:",
"react": "catalog:react",
Expand Down
6 changes: 3 additions & 3 deletions packages/badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@sipe-team/tokens": "workspace:*",
"@sipe-team/typography": "workspace:*",
"clsx": "^2.1.1"
"clsx": "catalog:"
},
"devDependencies": {
"@storybook/addon-essentials": "catalog:",
Expand All @@ -35,8 +35,8 @@
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@types/react": "catalog:react",
"@vanilla-extract/css": "catalog:",
"happy-dom": "catalog:",
Expand Down
10 changes: 5 additions & 5 deletions packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-slot": "catalog:",
"@sipe-team/tokens": "workspace:*",
"@sipe-team/typography": "workspace:*",
"@vanilla-extract/recipes": "^0.5.5",
"clsx": "^2.1.1"
"@vanilla-extract/recipes": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@storybook/addon-essentials": "catalog:",
Expand All @@ -37,8 +37,8 @@
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@types/react": "catalog:react",
"@vanilla-extract/css": "catalog:",
"happy-dom": "catalog:",
Expand Down
10 changes: 5 additions & 5 deletions packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-slot": "catalog:",
"@sipe-team/tokens": "workspace:*",
"clsx": "^2.1.1"
"clsx": "catalog:"
},
"devDependencies": {
"@storybook/addon-essentials": "catalog:",
Expand All @@ -35,11 +35,11 @@
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@types/react": "catalog:react",
"@vanilla-extract/css": "catalog:",
"@vanilla-extract/recipes": "^0.5.5",
"@vanilla-extract/recipes": "catalog:",
"happy-dom": "catalog:",
"react": "catalog:react",
"react-dom": "catalog:react",
Expand Down
4 changes: 2 additions & 2 deletions packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
},
"dependencies": {
"@sipe-team/tokens": "workspace:*",
"clsx": "^2.1.1",
"@vanilla-extract/recipes": "^0.5.5"
"clsx": "catalog:",
"@vanilla-extract/recipes": "catalog:"
},
"devDependencies": {
"@storybook/addon-essentials": "catalog:",
Expand Down
20 changes: 10 additions & 10 deletions packages/chip/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@side/chip",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

웁스 - 이런게 있었네

"name": "@sipe-team/chip",
"version": "0.0.1",
"description": "Chip component for SIDE design system",
"main": "./dist/index.js",
Expand All @@ -25,22 +25,22 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@radix-ui/react-slot": "^1.0.2",
"@vanilla-extract/css": "^1.14.0",
"@vanilla-extract/recipes": "^0.5.1",
"clsx": "^2.0.0"
"@radix-ui/react-slot": "catalog:",
"@vanilla-extract/css": "catalog:",
"@vanilla-extract/recipes": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@sipe-team/tokens": "workspace:*",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@testing-library/user-event": "catalog:",
"@types/react": "^18.2.0",
"@types/react": "catalog:react",
"jsdom": "^26.1.0",
"react": "^18.2.0",
"tsup": "^8.0.0",
"typescript": "^5.0.0",
"vitest": "^1.0.0"
"react": "catalog:react",
"tsup": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">=18.0.0"
Expand Down
7 changes: 3 additions & 4 deletions packages/chip/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { defineConfig } from 'tsup';

import defaultConfig from '../../tsup.config';

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
clean: true,
...defaultConfig,
external: ['react', '@radix-ui/react-slot', 'clsx'],
Comment on lines +6 to 7
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Root tsup config =="
sed -n '1,220p' tsup.config.ts

echo
echo "== Chip tsup config =="
sed -n '1,220p' packages/chip/tsup.config.ts

echo
echo "== external declarations =="
rg -n --type=ts -C2 '\bexternal\s*:' tsup.config.ts packages/chip/tsup.config.ts

Repository: sipe-team/side

Length of output: 831


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== All tsup.config.ts files in packages/* =="
fd 'tsup.config.ts' packages/

echo
echo "== External declarations in all package configs =="
fd 'tsup.config.ts' packages/ -x rg -l 'external' {}

echo
echo "== Show external patterns in all package configs =="
fd 'tsup.config.ts' packages/ -x sh -c 'echo "=== {} ==="; rg -A3 -B1 "external" {} || echo "(no external property)"'

Repository: sipe-team/side

Length of output: 875


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Chip package.json (dependencies section) =="
jq '.dependencies, .peerDependencies, .devDependencies' packages/chip/package.json

echo
echo "== Sample other package configs (button, avatar) =="
echo "--- button/tsup.config.ts ---"
cat packages/button/tsup.config.ts

echo
echo "--- avatar/tsup.config.ts ---"
cat packages/avatar/tsup.config.ts

echo
echo "== Verify if any package defines peerDependencies for react =="
fd 'package.json' packages/ -x jq -r 'select(.peerDependencies.react != null) | input_filename' 2>/dev/null | head -5

Repository: sipe-team/side

Length of output: 1048


Merge external array instead of replacing it for consistent configuration handling.

The packages/chip/tsup.config.ts spreads defaultConfig then overwrites external. While currently working (the root config has no external property), this pattern will break maintainability if the root config evolves to define shared externals. The spread operator won't merge arrays—it will replace them entirely.

Suggested refactor
 export default defineConfig({
   ...defaultConfig,
-  external: ['react', '@radix-ui/react-slot', 'clsx'],
+  external: [
+    ...((defaultConfig as { external?: string[] }).external ?? []),
+    'react',
+    '@radix-ui/react-slot',
+    'clsx',
+  ],
 });
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/chip/tsup.config.ts` around lines 6 - 7, The config currently
spreads defaultConfig and replaces the external array; instead merge arrays so
shared externals aren't lost: read defaultConfig.external (handle it possibly
undefined), concat or spread it with ['react','@radix-ui/react-slot','clsx'],
and deduplicate the resulting array before assigning to external in the exported
config (reference defaultConfig and the external property in tsup.config.ts).

});
6 changes: 3 additions & 3 deletions packages/divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"prepack": "pnpm run build"
},
"dependencies": {
"clsx": "^2.1.1",
"clsx": "catalog:",
"@sipe-team/tokens": "workspace:*"
},
"devDependencies": {
Expand All @@ -35,8 +35,8 @@
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@types/react": "catalog:react",
"@vanilla-extract/css": "catalog:",
"happy-dom": "catalog:",
Expand Down
6 changes: 3 additions & 3 deletions packages/flex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"clsx": "^2.1.1"
"@radix-ui/react-slot": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "catalog:",
"@storybook/addon-essentials": "catalog:",
"@storybook/addon-interactions": "catalog:",
"@storybook/addon-links": "catalog:",
Expand Down
6 changes: 3 additions & 3 deletions packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"clsx": "^2.1.1"
"@radix-ui/react-slot": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "catalog:",
"@storybook/addon-essentials": "catalog:",
"@storybook/addon-interactions": "catalog:",
"@storybook/addon-links": "catalog:",
Expand Down
12 changes: 6 additions & 6 deletions packages/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-slot": "catalog:",
"@sipe-team/tokens": "workspace:*",
"@vanilla-extract/recipes": "^0.5.5",
"clsx": "^2.1.1"
"@vanilla-extract/recipes": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@vanilla-extract/css": "catalog:",
Expand All @@ -37,9 +37,9 @@
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@testing-library/user-event": "catalog:",
"@types/react": "catalog:react",
"happy-dom": "catalog:",
"react": "catalog:react",
Expand Down
12 changes: 6 additions & 6 deletions packages/radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"dependencies": {
"@sipe-team/tokens": "workspace:*",
"@sipe-team/typography": "workspace:*",
"@vanilla-extract/recipes": "^0.5.5",
"clsx": "^2.1.1"
"@vanilla-extract/recipes": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@storybook/addon-essentials": "catalog:",
Expand All @@ -36,10 +36,10 @@
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@testing-library/dom": "catalog:",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@testing-library/user-event": "catalog:",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"@vanilla-extract/css": "catalog:",
Expand Down
12 changes: 6 additions & 6 deletions packages/skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@
},
"dependencies": {
"@sipe-team/tokens": "workspace:*",
"@radix-ui/react-slot": "^1.1.0",
"@vanilla-extract/recipes": "^0.5.5",
"clsx": "^2.1.1"
"@radix-ui/react-slot": "catalog:",
"@vanilla-extract/recipes": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "catalog:",
"@storybook/addon-essentials": "catalog:",
"@storybook/addon-interactions": "catalog:",
"@storybook/addon-links": "catalog:",
"@storybook/blocks": "catalog:",
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@vanilla-extract/css": "catalog:",
"@types/react": "catalog:react",
"happy-dom": "catalog:",
Expand Down
12 changes: 6 additions & 6 deletions packages/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
"dependencies": {
"@radix-ui/react-use-controllable-state": "^1.2.2",
"@sipe-team/tokens": "workspace:^",
"@vanilla-extract/recipes": "^0.5.5",
"clsx": "^2.1.1"
"@vanilla-extract/recipes": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "catalog:",
"@storybook/addon-essentials": "catalog:",
"@storybook/addon-interactions": "catalog:",
"@storybook/addon-links": "catalog:",
"@storybook/blocks": "catalog:",
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@testing-library/user-event": "catalog:",
"@types/react": "catalog:react",
"@vanilla-extract/css": "catalog:",
"@vanilla-extract/vite-plugin": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"vitest": "catalog:"
},
"dependencies": {
"@vanilla-extract/dynamic": "^2.1.2",
"@vanilla-extract/dynamic": "catalog:",
"@sipe-team/tokens": "workspace:*"
},
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions packages/tooltip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"clsx": "^2.1.1"
"@radix-ui/react-slot": "catalog:",
"clsx": "catalog:"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "catalog:",
"@storybook/addon-essentials": "catalog:",
"@storybook/addon-interactions": "catalog:",
"@storybook/addon-links": "catalog:",
"@storybook/blocks": "catalog:",
"@storybook/react": "catalog:",
"@storybook/react-vite": "catalog:",
"@storybook/test": "catalog:",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@testing-library/user-event": "catalog:",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"@vanilla-extract/css": "catalog:",
Expand Down
Loading
Loading