Skip to content

Commit

Permalink
chore: added new build/package entry point types
Browse files Browse the repository at this point in the history
  • Loading branch information
hussedev committed Nov 30, 2024
1 parent 0606fb5 commit 914ee0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
"types": "./dist/mocks.d.ts",
"import": "./dist/mocks.js",
"require": "./dist/mocks.js"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.js",
"require": "./dist/types.js"
}
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default defineConfig({
lib: resolve(__dirname, "./src/lib/index.ts"),
mainAll: resolve(__dirname, "./src/mainAll.ts"),
mocks: resolve(__dirname, "./src/mocks/handlers.ts"),
types: resolve(__dirname, "./src/types/index.ts"),
},
name: "gitcoin-ui",
fileName: (format: any, filename: any) => `${filename}.js`,
Expand Down

0 comments on commit 914ee0d

Please sign in to comment.