Skip to content

Commit

Permalink
chore: 디자인 시스템 패키지에 tsup 설치 및 config 세팅 (#ATR-591)
Browse files Browse the repository at this point in the history
  • Loading branch information
LC-02s committed Jul 30, 2024
1 parent 217f956 commit 7c6fb01
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 22 deletions.
6 changes: 6 additions & 0 deletions packages/design-system/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"tsup": "^8.1.0"
},
"devDependencies": {
"@attraction/config": "workspace:^"
},
"keywords": [],
"author": "",
"license": "ISC"
Expand Down
3 changes: 3 additions & 0 deletions packages/design-system/packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@attraction/config/tsconfig.base.json"
}
13 changes: 13 additions & 0 deletions packages/design-system/packages/core/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Options } from 'tsup'

const options: Options = {
format: ['cjs', 'esm'],
clean: true,
sourcemap: 'inline',
dts: true,
entryPoints: ['src/index.ts'],
external: ['react', 'react-dom'],
minify: true,
}

export default options
6 changes: 6 additions & 0 deletions packages/design-system/packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"tsup": "^8.1.0"
},
"devDependencies": {
"@attraction/config": "workspace:^"
},
"keywords": [],
"author": "",
"license": "ISC"
Expand Down
3 changes: 3 additions & 0 deletions packages/design-system/packages/hooks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@attraction/config/tsconfig.base.json"
}
13 changes: 13 additions & 0 deletions packages/design-system/packages/hooks/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Options } from 'tsup'

const options: Options = {
format: ['cjs', 'esm'],
clean: true,
sourcemap: 'inline',
dts: true,
entryPoints: ['src/index.ts'],
external: ['react', 'react-dom'],
minify: true,
}

export default options
2 changes: 0 additions & 2 deletions packages/design-system/pnpm-workspace.yaml

This file was deleted.

60 changes: 40 additions & 20 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packages:
- 'apps/*'
- 'packages/*'
- 'packages/design-system/packages/*'

0 comments on commit 7c6fb01

Please sign in to comment.