Skip to content

Commit

Permalink
🐛 Fix broken paths to types
Browse files Browse the repository at this point in the history
The correct tsconfig is now used when building. This also drastically reduces the amount of d.ts files in the dist folder. Fixes #103 (again 😬).
  • Loading branch information
flauwekeul committed Jul 14, 2023
1 parent c4499ed commit 509f966
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "4.1.2",
"description": "Create hexagon grids easily",
"source": "src/index.ts",
"main": "dist/honeycomb-grid.umd.js",
"module": "dist/honeycomb-grid.mjs",
"types": "dist/index.d.ts",
"main": "./dist/honeycomb-grid.umd.js",
"module": "./dist/honeycomb-grid.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
Expand All @@ -19,7 +19,7 @@
}
},
"scripts": {
"build": "tsc --project tsconfig.build.json && vite build",
"build": "vite build",
"coverage": "vitest run --coverage",
"dev": "vite",
"docs:build": "typedoc && vitepress build docs",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default defineConfig({
name: 'Honeycomb',
},
},
plugins: [dts()],
plugins: [dts({ tsconfigPath: 'tsconfig.build.json' })],
})

0 comments on commit 509f966

Please sign in to comment.