diff --git a/packages/xpra/package.json b/packages/xpra/package.json index dc909c8a..ddb7c4d9 100644 --- a/packages/xpra/package.json +++ b/packages/xpra/package.json @@ -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": [ diff --git a/packages/xpra/vite.config.ts b/packages/xpra/vite.config.ts index 8c5bc35e..2be7ad15 100644 --- a/packages/xpra/vite.config.ts +++ b/packages/xpra/vite.config.ts @@ -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())