You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recommend to use https://nodejs.org/api/packages.html#exports and to have a main entry point (import { render } from '@vscode/prompt-tsx';) and a vscode-specific part (import { toVsCodeChatMessages } from '@vscode/prompt-tsx/vscode';).
That way, you communicate that by default the main export has no runtime dependency on vscode (and thus, that the library is safe to use in traditional test-runners).
The text was updated successfully, but these errors were encountered:
Currently, the project has exactly one runtime-dependency to VS Code:
vscode-prompt-tsx/src/base/index.ts
Lines 94 to 95 in b9b5bb4
(which currently breaks esbuild, see #40)
I recommend to use https://nodejs.org/api/packages.html#exports and to have a main entry point (
import { render } from '@vscode/prompt-tsx';
) and a vscode-specific part (import { toVsCodeChatMessages } from '@vscode/prompt-tsx/vscode';
).That way, you communicate that by default the main export has no runtime dependency on vscode (and thus, that the library is safe to use in traditional test-runners).
The text was updated successfully, but these errors were encountered: