Skip to content

Commit

Permalink
chore: 0.3.9 버전 배포 및 rollupOptions 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 committed Jan 11, 2024
1 parent ff7bf9b commit 6eb0c0d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "concept-be-design-system",
"description": "컨셉비 디자인 시스템",
"version": "0.3.6",
"version": "0.3.9",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
Expand All @@ -26,8 +26,7 @@
"publish:npm": "rm -rf dist && mkdir dist && tsc && vite build && cp -r ./src/assets ./dist && npm publish",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"chromatic": "npx chromatic --project-token=chpt_ae88f34fc3fe003"
"build-storybook": "storybook build"
},
"dependencies": {
"@emotion/react": "^11.11.1",
Expand Down
9 changes: 8 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { useEffect } from 'react';
import { useEffect, useState } from 'react';

import Child from './Child';
import CheckboxContainer from './components/CheckboxContainer/CheckboxContainer';
import Dropdown from './components/Dropdown/Dropdown';
import RadioContainer from './components/RadioContainer/RadioContainer';
import Tag from './components/Tag/Tag';
import useCheckbox from './hooks/useCheckbox';
import useDropdown from './hooks/useDropdown';
import useRadio from './hooks/useRadio';
Expand Down Expand Up @@ -82,6 +83,7 @@ const App = () => {
see: '',
do: '',
});
const [tags, setTags] = useState<string[]>(['a', 'b', 'c', 'd']);

useEffect(() => {
if (dropdownValue.do !== '') {
Expand All @@ -93,6 +95,11 @@ const App = () => {

return (
<>
{tags.map((tag) => (
<Tag onDelete={(name) => setTags(tags.filter((tag) => tag !== name))}>
{tag}
</Tag>
))}
<Child />
<Dropdown
selectedValue={dropdownValue.see}
Expand Down
7 changes: 5 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ export default defineConfig({
entry: path.resolve(__dirname, 'src/index.ts'),
name: 'index',
fileName: 'index',
formats: ['es', 'umd', 'cjs'],
formats: ['es', 'cjs'],
},

rollupOptions: {
external: ['react'],
external: ['react', 'react-dom', '@emotion/react', '@emotion/styled'],
output: {
globals: {
react: 'React',
'react-dom': 'ReactDOM',
'@emotion/react': '@emotion/react',
'@emotion/styled': '@emotion/styled',
},
},
},
Expand Down

0 comments on commit 6eb0c0d

Please sign in to comment.