Skip to content

Commit

Permalink
build 시 node modules 포함되는 문제 해결했다
Browse files Browse the repository at this point in the history
  • Loading branch information
healtheloper committed Dec 12, 2023
1 parent 2e8fc39 commit 959502c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
},
"dependencies": {
"@capsizecss/core": "^3.1.1",
"@capsizecss/metrics": "^1.2.0",
"@emotion/cache": "^11.7.1",
"@emotion/react": "^11.7.1",
"@emotion/serialize": "^1.0.2",
Expand Down
5 changes: 3 additions & 2 deletions packages/co-design-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
"directory": "packages/co-design-core"
},
"peerDependencies": {
"@co-design/hooks": "^0.6.1",
"@co-design/hooks": "^0.9.1",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"dependencies": {
"@co-design/styles": "^0.10.0"
"@co-design/styles": "^0.10.0",
"@capsizecss/core": "^3.1.1"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import { createStyleObject } from '@capsizecss/core';
import { createStyles, CSSObject, defaultFontStyles, CoTypography, CoTypographyValue, getColor, CoColor } from '@co-design/styles';
import fontMetrics from '@capsizecss/metrics/arial';

// @capsizecss/metrics/arial
const fontMetrics = {
familyName: 'Arial',
category: 'sans-serif',
capHeight: 1467,
ascent: 1854,
descent: -434,
lineGap: 67,
unitsPerEm: 2048,
xHeight: 1062,
xWidthAvg: 904,
};

interface TypographyStyles {
color: CoColor;
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1242,11 +1242,6 @@
dependencies:
csstype "^3.1.1"

"@capsizecss/metrics@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@capsizecss/metrics/-/metrics-1.2.0.tgz#7c6f8817efa910eb1b0257a785300ab4e033ad26"
integrity sha512-zUYcqaR0rv4TYXyY97G1vRMMOyz+3EteXqLsM1XO/N8LnThwR1wYSE5cU15CUx3KPAiAEIbUZ13B7+plxYjHUA==

"@colors/[email protected]":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
Expand Down

0 comments on commit 959502c

Please sign in to comment.