Skip to content

Commit

Permalink
chore: update tsup and typescript options
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed Apr 14, 2024
1 parent d398f1a commit 9c56c4b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../../tsconfig.json",
"compilerOptions": {
"isolatedModules": false,
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"],
Expand Down
6 changes: 4 additions & 2 deletions packages/react/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import { defineConfig } from 'tsup'
const config: Options = {
clean: true,
dts: true,
format: ['cjs', 'esm'],
target: 'es2019',
minify: true,
outDir: 'dist',
target: 'es2019',
entry: ['src/**/*.ts?(x)'],
format: ['cjs', 'esm'],
banner: { js: '"use client";' },
}

Expand Down
1 change: 0 additions & 1 deletion packages/theme/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../../tsconfig.json",
"compilerOptions": {
"isolatedModules": false,
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
Expand Down
6 changes: 4 additions & 2 deletions packages/theme/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import { defineConfig } from 'tsup'
const config: Options = {
clean: true,
dts: true,
format: ['cjs', 'esm'],
target: 'es2019',
minify: true,
outDir: 'dist',
target: 'es2019',
entry: ['src/**/*.ts?(x)'],
format: ['cjs', 'esm'],
}

export { config }
Expand Down

0 comments on commit 9c56c4b

Please sign in to comment.