Skip to content

feat: add programmatic api for cli - #2013

Draft
netomi wants to merge 2 commits into
mainfrom
add-api-for-cli
Draft

feat: add programmatic api for cli#2013
netomi wants to merge 2 commits into
mainfrom
add-api-for-cli

Conversation

@netomi

@netomi netomi commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This fixes #1591.

This is the first attempt to provide an api for functionality like publishVSIX.

It also bumps to node 22 as 20 is anyway unmaintained and vitest requires at least 22.

@netomi
netomi force-pushed the add-api-for-cli branch from 6c99e79 to f6fde48 Compare July 29, 2026 13:37
@netomi
netomi requested a review from gnugomez July 29, 2026 13:52
@netomi

netomi commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

@gnugomez can you take a look and respond if this goes in the right direction?

Comment thread cli/package.json
Comment on lines 30 to 32
"main": "lib/index",
"types": "lib/index",
"bin": "bin/ovsx",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: I think that for clarification we should add the proper file extensions

It might work either way, at least for the main entry point it will surely work, I'm not completely sure for the types tho.

"main": "lib/index.js",
"types": "lib/index.d.ts",
"bin": "bin/ovsx"

if that was consumed like this before and worked please ignore my comment

@gnugomez gnugomez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the code is looking good to me

I would suggest to improve a bit the documentation we're adding since there's some other functions being exported that are not even mentioned (I'm talking about all the namespace related ones).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add programmatic API to the ovsx package

2 participants