Skip to content

Commit

Permalink
chore(all): Optimize packages (#208)
Browse files Browse the repository at this point in the history
* chore: Optimize packages

- 전체 패키지를 배포하고 있던 기존의 번들을 dist 폴더와 variable.css만 배포하여 번들사이즈를 줄입니다.

* reset ui package version

* cs

* update dependencies

* fix: VE/sprinkles 캐럿 버저닝으로 변경

* pnpm install
  • Loading branch information
Brokyeom authored Nov 16, 2024
1 parent b249fbe commit ffd6ebf
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .changeset/good-flies-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@sopt-makers/colors': patch
'@sopt-makers/fonts': patch
'@sopt-makers/icons': patch
'@sopt-makers/ui': patch
---

Optimize Package buldles
3 changes: 3 additions & 0 deletions packages/colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup index.ts --format cjs,esm --dts",
"dev": "tsup index.ts --format cjs,esm --dts --watch"
Expand Down
3 changes: 3 additions & 0 deletions packages/fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup index.ts --format cjs,esm --dts",
"dev": "tsup index.ts --format cjs,esm --dts --watch"
Expand Down
3 changes: 3 additions & 0 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup index.ts --format cjs,esm --dts",
"dev": "tsup index.ts --format cjs,esm --dts --watch"
Expand Down
9 changes: 7 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"license": "MIT",
"files": [
"dist",
"desktop-variables.css",
"mobile-variables.css",
"README.md"
],
"scripts": {
"test": "vitest",
"build": "pnpm clean && tsup --format cjs,esm --dts --sourcemap && pnpm buildCssModules",
Expand All @@ -22,8 +28,7 @@
"@sopt-makers/fonts": "workspace:^",
"@sopt-makers/icons": "workspace:^",
"@vanilla-extract/css": "^1.14.0",
"@vanilla-extract/sprinkles": "1.6.1",
"tsup": "^8.0.2"
"@vanilla-extract/sprinkles": "^1.6.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.5.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ffd6ebf

Please sign in to comment.