mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-17 16:46:04 +00:00
Clean up webamp build config
- Remove stale browserslist field (Babel was removed) - Remove stale files exclusion for built/types/demo - Fix rollup typescript plugin to not emit declarations (suppresses TS5069 warning) - Clean up tsconfig.json: remove commented-out lines, replace jest types with vitest/globals, remove stale includes/excludes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b4d7daa0c2
commit
4c9fdbf28b
3 changed files with 7 additions and 10 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue