Skip to content

Allow specifying alternate bin and cache directories when downloading#306

Open
mdlavin wants to merge 1 commit into
bubenshchykov:masterfrom
mdlavin:allow-custom-dirs-during-download
Open

Allow specifying alternate bin and cache directories when downloading#306
mdlavin wants to merge 1 commit into
bubenshchykov:masterfrom
mdlavin:allow-custom-dirs-during-download

Conversation

@mdlavin

@mdlavin mdlavin commented May 18, 2023

Copy link
Copy Markdown

I've been using ngrok inside a Lambda function and in that environment, writing to the node_modules directory is not allowed. Instead, I've been using this patch so that I can store download cache and binaries in the temp directory of the OS.

Rather than making the temp directory use explicit, I thought making it configurable would be better

Comment thread download.d.ts
cdnUrl: string;
cdnPath: string;
ignoreCache: boolean;
cafilePath?: string;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The only new addition are the last two lines. The other lines are made optional to reflect reality.

Comment thread index.d.ts
interface CapturedRequestOptions {
limit: number;
tunnel_name: string;
tunnel_name?: string;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Noticed during development, the tunnnel_name isn't really required

@mdlavin

mdlavin commented May 18, 2023

Copy link
Copy Markdown
Author

P.S. Thank you for working on this project. We've been using it for a while and it works great!

@mdlavin

mdlavin commented Nov 9, 2023

Copy link
Copy Markdown
Author

@philnash would you mind considering this PR?

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