Skip to content

Commit

Permalink
fix(monorepo): typescript types during build
Browse files Browse the repository at this point in the history
closes #278
closes #277
  • Loading branch information
steveoh committed Aug 27, 2024
1 parent d5de796 commit b94ae6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions packages/utah-design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,19 @@
}
],
"type": "module",
"module": "./dist/index.esm.js",
"types": "./dist/index.esm.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.js",
"types": "./dist/index.esm.d.ts"
"types": "./dist/index.d.ts"
},
"./src": {
"import": "./src/index.js"
}
},
"files": [
"dist",
"src"
"src",
"!stories/**/*"
],
"scripts": {
"build": "vite build --config ../../vite.config.js",
Expand All @@ -64,10 +63,10 @@
"tailwind-variants": "^0.2.1"
},
"peerDependencies": {
"@arcgis/core": "^4.30.9",
"firebase": ">=10.0.0",
"@arcgis/core": "4.x",
"firebase": "10.x",
"prop-types": "^15.8.1",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
"react": ">=16.8",
"react-dom": ">=16.8"
}
}
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (packageName === 'utilities') {
}

const config = defineConfig({
plugins: [react(), dts({ rollupTypes: true })],
plugins: [react(), dts({ include: ['src'] })],
build: {
lib: {
entry: resolve(directory, 'src/index.js'),
Expand All @@ -43,7 +43,7 @@ const config = defineConfig({
},
},
sourcemap: true,
emptyOutDir: false,
emptyOutDir: true,
rollupOptions,
},
test: {
Expand Down

0 comments on commit b94ae6b

Please sign in to comment.