Skip to content

Commit 5f164c6

Browse files
committed
Update API Extractor and improve type declaration config
Upgraded @microsoft/api-extractor and related dependencies to latest versions for improved API extraction. Enhanced Vite config to better control .d.ts emission, restricting output to library sources and excluding benchmarks. Removed default export of WebGLHelpers from webglplot.ts for cleaner exports.
1 parent 33fc803 commit 5f164c6

File tree

4 files changed

+119
-69
lines changed

4 files changed

+119
-69
lines changed

package-lock.json

Lines changed: 107 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
],
2222
"devDependencies": {
2323
"@eslint/js": "^9.39.2",
24-
"@types/node": "^25.0.3",
24+
"@microsoft/api-extractor": "^7.55.2",
2525
"@playwright/test": "^1.57.0",
26+
"@types/node": "^25.0.3",
2627
"eslint": "^9.39.2",
2728
"globals": "^16.5.0",
2829
"typedoc": "^0.28.15",

src/webglplot.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ export {
6666
type DataBounds,
6767
} from "./LogAxisUtils";
6868

69-
// Default export is WebGLHelpers for convenience
70-
export default WebGLHelpers;
71-
7269
// Temporary backward compatibility stub for benchmark files
7370
// @deprecated Use individual plotters with WebGL2RenderingContext directly
7471
export class WebglPlot {

vite.config.mts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,14 @@ export default defineConfig({
2222
},
2323
},
2424
},
25-
plugins: [dts({ rollupTypes: true })],
25+
plugins: [
26+
dts({
27+
// Roll up declarations into a single bundle (API Extractor)
28+
rollupTypes: true,
29+
insertTypesEntry: true,
30+
// Restrict .d.ts emission to the library sources
31+
include: ["src/**/*"],
32+
exclude: ["benchmark/**/*"],
33+
}),
34+
],
2635
});

0 commit comments

Comments
 (0)