-
Notifications
You must be signed in to change notification settings - Fork 9
feat: add proxyVarSubDir option to path extenders #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d33af87
8fdab3e
e48cf7a
7e78bd0
70648b2
3fa2d15
d593920
c738d0b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| public | ||
| node_modules | ||
| .claude |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ export type AddingPosition = 'start' | 'end' | |
|
|
||
| export interface AddDirToWindowsEnvPathOpts { | ||
| proxyVarName?: string | ||
| proxyVarSubDir?: string | ||
| overwriteProxyVar?: boolean | ||
| position?: AddingPosition | ||
| } | ||
|
|
@@ -69,7 +70,10 @@ async function _addDirToWindowsEnvPath (dir: string, opts: AddDirToWindowsEnvPat | |
| expandableString: false, | ||
| overwrite: opts.overwriteProxyVar ?? false | ||
| })) | ||
| changes.push(await addToPath(registryOutput, `%${opts.proxyVarName}%`, opts.position)) | ||
| const pathEntry = opts.proxyVarSubDir | ||
| ? `%${opts.proxyVarName}%${path.sep}${opts.proxyVarSubDir}` | ||
| : `%${opts.proxyVarName}%` | ||
| changes.push(await addToPath(registryOutput, pathEntry, opts.position)) | ||
zkochan marked this conversation as resolved.
Show resolved
Hide resolved
Comment on lines
+73
to
+76
|
||
| } else { | ||
| changes.push(await addToPath(registryOutput, addedDir, opts.position)) | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.