diff --git a/packages/webamp/scripts/rollupPlugins.mjs b/packages/webamp/scripts/rollupPlugins.mjs index efcde3e64..053c41ee6 100644 --- a/packages/webamp/scripts/rollupPlugins.mjs +++ b/packages/webamp/scripts/rollupPlugins.mjs @@ -30,7 +30,7 @@ export function getPlugins({ minify, outputFile, vite }) { compilerOptions: { jsx: "react-jsx", module: "esnext", - declarationDir: vite ? "dist/declarations" : undefined, + declarationDir: vite ? "dist/demo-site/declarations" : undefined, // Without this it complains that files will be overwritten, but I don't // think this ever gets used... outDir: vite ? undefined : "./tsBuilt", diff --git a/packages/webamp/vite.config.ts b/packages/webamp/vite.config.ts index 206196ee4..955875d36 100644 --- a/packages/webamp/vite.config.ts +++ b/packages/webamp/vite.config.ts @@ -3,7 +3,7 @@ import { getPlugins } from "./scripts/rollupPlugins.mjs"; export default defineConfig({ build: { - outDir: "../dist", + outDir: "../dist/demo-site", }, root: "demo", // Used only by the demo site, not the library @@ -13,7 +13,11 @@ export default defineConfig({ }, // @ts-ignore plugins: [ - ...getPlugins({ minify: true, outputFile: "dist/report", vite: true }), + ...getPlugins({ + minify: true, + outputFile: "dist/demo-site/report", + vite: true, + }), /* replace({ // Ensure we don't use the dev build of React