mxsdev / ts-type-explorer

VSCode Extension & utilities for exploring TypeScript type information
https://marketplace.visualstudio.com/items?itemName=mxsdev.typescript-explorer&ssr=false
159 stars 4 forks source link

Test that ensures we don't import non-types from typescript #22

Closed mxsdev closed 1 year ago

mxsdev commented 1 year ago

Sometimes the bundle fails in vscode because an extraneous dependency (typescript) is require'd, but is not included in the bundle.

This can probably be accomplished with this eslint rule, but the vscode integration tests should 100% be using the bundled version rather than --extensionDevPath.

mxsdev commented 1 year ago

I think the best that can be done is with daa3f672cbe518b2afb6d96fe424806e4a495360, since vscode's testing framework has no mechanism to test an actual bundle.