-
Notifications
You must be signed in to change notification settings - Fork 6
chore: standardize catalog deps and chip package #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.tsRepository: 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 -5Repository: sipe-team/side Length of output: 1048 Merge The 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 |
||
| }); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
웁스 - 이런게 있었네