Skip to content

Commit

Permalink
Merge pull request #18 from kaiachain/dev
Browse files Browse the repository at this point in the history
Update version to v1.0.2
  • Loading branch information
skqksh authored Oct 24, 2024
2 parents ddfd252 + bcae0f3 commit 2550d6a
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 177 deletions.
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default {
plugins: ['lodash'],
presets: [
'@babel/preset-env',
'@babel/preset-react',
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@kaiachain/kaia-design-system",
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/types/index.d.ts",
"sideEffects": false,
"scripts": {
"build": "rollup -c rollup.config.js",
"prepublishOnly": "yarn build",
Expand All @@ -30,7 +31,7 @@
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.24.7",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
Expand All @@ -42,26 +43,25 @@
"@types/lodash": "^4.17.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"babel-jest": "^29.7.0",
"babel-plugin-lodash": "^3.3.4",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.1",
"rollup": "^4.18.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-svgr": "^2.0.0",
"ts-jest": "^29.1.5",
"typescript": "^5.4.5",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0"
"typescript": "^5.4.5"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"react": "^18.3.1",
"react-click-away-listener": "^2.2.3",
"react-dom": "^18.3.1"
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"react-click-away-listener": "^2.2.3"
}
}
11 changes: 10 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ export default {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
babelHelpers: 'bundled',
}),
terser(),
terser({
compress: {
drop_console: true,
passes: 3, // 압축을 3번 반복
pure_funcs: ['console.log'], // console.log 함수 제거
},
mangle: {
toplevel: true, // 최상위 변수 및 함수 이름도 압축
},
}),
],
}
2 changes: 1 addition & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const StyledLedLineIconBox = styled(StyledIconBox)<{ disabled?: boolean }>`
const IconList = ['check', 'right', 'upright'] as const
type IconType = (typeof IconList)[number]

interface KaButtonProps {
export interface KaButtonProps {
leftIcon?: IconType | ReactElement
rightIcon?: IconType | ReactElement
type?:
Expand Down
Loading

0 comments on commit 2550d6a

Please sign in to comment.