Skip to content

Update and replace many dependencies - #1305

Open
Jake Bailey (jakebailey) wants to merge 8 commits into
microsoft:mainfrom
jakebailey:dependency-replacements
Open

Update and replace many dependencies#1305
Jake Bailey (jakebailey) wants to merge 8 commits into
microsoft:mainfrom
jakebailey:dependency-replacements

Conversation

@jakebailey

Copy link
Copy Markdown
Member

I'm interested this since vsce is now in the TypeScript dev dep tree, and has significant dep count and audit alerts.

Each commit is its own thing, which I can split into multiple PRs if desired. It's also technically a dupe of #1202, so it's ok if that happens and I rebase.

I'll also note that while I'm raising the minimum node engine to 20.19, the @azure/identity package did a bump to 22+ in a minor version, which means that vsce is technically also 22+ if someone relocks. So, there's a bunch more that could probably get updated.

I also have on another branch something that converts the repo to ESM, which is possible thanks to require(ESM). This does simplify some dep integration, but, is probably not worth much.

There are other deps I'd love to be able to replace with something more lightweight, like glob, but that's likely to cause breaking changes. Happy to discuss that, though.

Comment thread src/publish.ts
import { getOIDCCredential } from './oidc';

const tmpName = promisify(tmp.tmpName);
async function withTemporaryPackage<T>(fn: (packagePath: string) => Promise<T>): Promise<T> {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This would be better as a using disposable, but that requires newer Node.

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.

1 participant