Skip to content

Commit

Permalink
fix: export and vite typings (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoTGT authored Aug 18, 2024
1 parent 20bef3d commit fe165de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/xpra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"exports": {
".": {
"import": "./dist/xpra.es.js",
"require": "./dist/xpra.umd.js"
"require": "./dist/xpra.umd.js",
"types": "./dist/src/index.d.ts"
}
},
"files": [
Expand Down
6 changes: 3 additions & 3 deletions packages/xpra/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as path from 'path'
import * as path from 'node:path'
import dts from 'vite-plugin-dts'
import { defineConfig } from 'vite'
import { defineConfig, type Plugin } from 'vite'
import { visualizer } from 'rollup-plugin-visualizer'

const plugins = []
const plugins: Plugin[] = []

if (process.env.VITE_STATS) {
plugins.push(visualizer())
Expand Down

0 comments on commit fe165de

Please sign in to comment.