diff --git a/packages/webamp/package.json b/packages/webamp/package.json index ca4e1959..52872a15 100644 --- a/packages/webamp/package.json +++ b/packages/webamp/package.json @@ -4,14 +4,12 @@ "description": "Winamp 2 implemented in HTML5 and JavaScript", "files": [ "built", - "!built/types/demo", "!built/*.html", "!built/tsBuilt", "!built/dist" ], "types": "built/types/js/webamp.d.ts", "browser": "built/webamp.bundle.min.mjs", - "browserslist": "> 0.5%, last 2 versions, Firefox ESR, not dead", "exports": { ".": { "require": "./built/webamp.bundle.min.js", diff --git a/packages/webamp/scripts/rollupPlugins.mjs b/packages/webamp/scripts/rollupPlugins.mjs index f2eba753..83b86db8 100644 --- a/packages/webamp/scripts/rollupPlugins.mjs +++ b/packages/webamp/scripts/rollupPlugins.mjs @@ -34,7 +34,8 @@ export function getPlugins({ minify, outputFile }) { compilerOptions: { jsx: "react-jsx", module: "esnext", - declarationDir: "dist/demo-site/declarations", + declaration: false, + declarationDir: undefined, outDir: "./tsBuilt", }, }), diff --git a/packages/webamp/tsconfig.json b/packages/webamp/tsconfig.json index 787640fc..3fc42b81 100644 --- a/packages/webamp/tsconfig.json +++ b/packages/webamp/tsconfig.json @@ -1,22 +1,20 @@ { "compilerOptions": { "moduleResolution": "node", - // "module": "commonjs", "target": "esnext", + "module": "esnext", "allowJs": true, "skipLibCheck": true, "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "strict": true, - // "jsx": "preserve", "declaration": true, "emitDeclarationOnly": true, "declarationDir": "./built/types", "pretty": true, - "types": ["react/experimental", "react-dom/experimental", "jest"], - "jsx": "react-jsx", - "module": "esnext" + "types": ["vitest/globals", "react/experimental", "react-dom/experimental"], + "jsx": "react-jsx" }, - "include": ["**/*.ts", "**/*.tsx", "vite.config.mts", "vite.config.mts"], - "exclude": ["node_modules", "demo/built", "built", "dist"] + "include": ["**/*.ts", "**/*.tsx"], + "exclude": ["node_modules", "built", "dist"] }