Skip to content

Commit

Permalink
feat: rearrange exported files
Browse files Browse the repository at this point in the history
  • Loading branch information
Cahllagerfeld committed May 13, 2024
1 parent 474558c commit 2023822
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 49 deletions.
45 changes: 4 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,47 +19,10 @@
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./tailwind": {
"import": "./dist/tailwind/index.js",
"require": "./dist/tailwind/index.cjs"
},
"./utilities": {
"import": "./dist/utilities/index.js",
"require": "./dist/utilities/index.cjs"
},
"./components": {
"import": "./dist/components/index.js",
"require": "./dist/components/index.cjs"
},
"./components/client": {
"import": "./dist/components/client.js",
"require": "./dist/components/client.cjs"
},
"./components/server": {
"import": "./dist/components/server.js",
"require": "./dist/components/server.cjs"
}
},
"typesVersions": {
"*": {
"*": [
"dist/index.d.ts"
],
"tailwind": [
"dist/tailwind/index.d.ts"
],
"utilities": [
"dist/utilities/index.d.ts"
],
"components": [
"dist/components/index.d.ts"
],
"components/client": [
"dist/components/client.d.ts"
],
"components/server": [
"dist/components/server.d.ts"
]
"./*": {
"types": "./dist/*.d.ts",
"import": "./dist/*.js",
"require": "./dist/*.cjs"
}
},
"main": "./dist/index.cjs",
Expand Down
2 changes: 2 additions & 0 deletions src/components.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./components/client";
export * from "./components/server";
2 changes: 0 additions & 2 deletions src/components/index.ts

This file was deleted.

6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./utilities/index";
export * from "./tailwind/index";
export * from "./components/index";
export * from "./utilities";
export * from "./tailwind";
export * from "./components";
1 change: 1 addition & 0 deletions src/tailwind.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./tailwind/index";
1 change: 1 addition & 0 deletions src/utilities.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./utilities/index";
6 changes: 3 additions & 3 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const reactPureCalls = [
export default defineConfig({
entry: [
"src/index.ts",
"src/utilities/index.ts",
"src/tailwind/index.ts",
"src/components/index.ts",
"src/utilities.ts",
"src/tailwind.ts",
"src/components.ts",
"src/components/client.ts",
"src/components/server.ts"
//"src/components/**/index.{ts,tsx}"
Expand Down

0 comments on commit 2023822

Please sign in to comment.