Skip to content

Commit 4c9fdbf

Browse files
captbaritoneclaude
andcommitted
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>
1 parent b4d7daa commit 4c9fdbf

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

packages/webamp/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
"description": "Winamp 2 implemented in HTML5 and JavaScript",
55
"files": [
66
"built",
7-
"!built/types/demo",
87
"!built/*.html",
98
"!built/tsBuilt",
109
"!built/dist"
1110
],
1211
"types": "built/types/js/webamp.d.ts",
1312
"browser": "built/webamp.bundle.min.mjs",
14-
"browserslist": "> 0.5%, last 2 versions, Firefox ESR, not dead",
1513
"exports": {
1614
".": {
1715
"require": "./built/webamp.bundle.min.js",

packages/webamp/scripts/rollupPlugins.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export function getPlugins({ minify, outputFile }) {
3434
compilerOptions: {
3535
jsx: "react-jsx",
3636
module: "esnext",
37-
declarationDir: "dist/demo-site/declarations",
37+
declaration: false,
38+
declarationDir: undefined,
3839
outDir: "./tsBuilt",
3940
},
4041
}),

packages/webamp/tsconfig.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
{
22
"compilerOptions": {
33
"moduleResolution": "node",
4-
// "module": "commonjs",
54
"target": "esnext",
5+
"module": "esnext",
66
"allowJs": true,
77
"skipLibCheck": true,
88
"allowSyntheticDefaultImports": true,
99
"resolveJsonModule": true,
1010
"strict": true,
11-
// "jsx": "preserve",
1211
"declaration": true,
1312
"emitDeclarationOnly": true,
1413
"declarationDir": "./built/types",
1514
"pretty": true,
16-
"types": ["react/experimental", "react-dom/experimental", "jest"],
17-
"jsx": "react-jsx",
18-
"module": "esnext"
15+
"types": ["vitest/globals", "react/experimental", "react-dom/experimental"],
16+
"jsx": "react-jsx"
1917
},
20-
"include": ["**/*.ts", "**/*.tsx", "vite.config.mts", "vite.config.mts"],
21-
"exclude": ["node_modules", "demo/built", "built", "dist"]
18+
"include": ["**/*.ts", "**/*.tsx"],
19+
"exclude": ["node_modules", "built", "dist"]
2220
}

0 commit comments

Comments
 (0)