-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve build process issues in packages (#11)
This commit resolves build process issues caused by external dependencies in previous versions. It uses `tsup` for building packages, with configuration now imported from the `ui-core` package, which centralizes shared configurations and utilities. The `ui-core` package exports the `merge` function, `tsconfig.base.json`, and `tsup.config.base.ts`. Additionally, the exports field in the `ui-core` package.json has been updated for better structure and functionality.
- Loading branch information
1 parent
0b858d2
commit 5d36a25
Showing
13 changed files
with
610 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { defineConfig } from "tsup" | ||
import { tsupConfig } from "@halvaradop/ui-core/tsup.config.base" | ||
|
||
export default defineConfig(tsupConfig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./utils.js" | ||
export * from "./tsup.config.base.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Options } from "tsup" | ||
|
||
export const tsupConfig: Options = { | ||
entry: ["src"], | ||
format: ["esm", "cjs"], | ||
dts: true, | ||
clean: true, | ||
splitting: false, | ||
minify: true, | ||
external: ["vite", "react", "react-dom", "tailwindcss"], | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"display": "Node 20", | ||
"_version": "20.1.0", | ||
"compilerOptions": { | ||
"lib": ["ES2022", "DOM"], | ||
"target": "ES2022", | ||
"declaration": true, | ||
"module": "Node16", | ||
"moduleResolution": "Node16", | ||
"moduleDetection": "force", | ||
"strict": true, | ||
"allowJs": true, | ||
"checkJs": true, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"skipLibCheck": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
{ | ||
"display": "Node 20", | ||
"_version": "20.1.0", | ||
"extends": "./tsconfig.base.json", | ||
"compilerOptions": { | ||
"lib": ["ES2022", "DOM"], | ||
"target": "ES2022", | ||
"declaration": true, | ||
"jsx": "preserve", | ||
"outDir": "dist", | ||
"module": "Node16", | ||
"moduleResolution": "Node16", | ||
"moduleDetection": "force", | ||
"allowJs": true, | ||
"checkJs": true, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true | ||
"outDir": "dist" | ||
}, | ||
"include": ["./**/*.ts"] | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { defineConfig } from "tsup" | ||
import { tsupConfig } from "./src/tsup.config.base" | ||
|
||
export default defineConfig(tsupConfig) |
Oops, something went wrong.