mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-30 00:16:53 +00:00
feat: add .npmrc support for private npm registries (#8039)
* feat: add .npmrc support for private npm registries Add a new `npmrc` instance setting that accepts full .npmrc file content for configuring private npm registries. Works with bun (native .npmrc support since 1.1.18), deno (native .npmrc support in 2.x), and the npm proxy (parses default registry + auth token from .npmrc). Legacy `npm_config_registry` and `bunfig_install_scopes` fields are now hidden when empty, so new users only see the .npmrc field. Also fixes a pre-existing race condition where gen_bunfig was called after start_child_process. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * all --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
co-authored by
Claude Opus 4.6
parent
d48d598675
commit
60219e042d
@@ -406,23 +406,37 @@ export const settings: Record<string, Setting[]> = {
|
||||
ee_only: ''
|
||||
},
|
||||
{
|
||||
label: 'Npm config registry',
|
||||
description: 'Add private npm registry',
|
||||
key: 'npm_config_registry',
|
||||
fieldType: 'password',
|
||||
placeholder: 'https://registry.npmjs.org/:_authToken=npm_FOOBAR',
|
||||
label: 'NPM Registry Configuration (.npmrc)',
|
||||
description:
|
||||
'Full .npmrc file content for private npm registries. Used by Bun, Deno, and the npm proxy. Takes precedence over the legacy fields below.',
|
||||
key: 'npmrc',
|
||||
fieldType: 'codearea',
|
||||
codeAreaLang: 'ini',
|
||||
placeholder:
|
||||
'registry=https://registry.mycompany.com/\n//registry.mycompany.com/:_authToken=YOUR_TOKEN\n\n@myorg:registry=https://registry.myorg.com/\n//registry.myorg.com/:_authToken=SCOPED_TOKEN',
|
||||
storage: 'setting',
|
||||
ee_only: ''
|
||||
},
|
||||
{
|
||||
label: 'Bunfig install scopes',
|
||||
label: 'Npm config registry (legacy)',
|
||||
description: 'Add private npm registry. Prefer using the .npmrc field above.',
|
||||
key: 'npm_config_registry',
|
||||
fieldType: 'password',
|
||||
placeholder: 'https://registry.npmjs.org/:_authToken=npm_FOOBAR',
|
||||
storage: 'setting',
|
||||
ee_only: '',
|
||||
hiddenIfEmpty: true
|
||||
},
|
||||
{
|
||||
label: 'Bunfig install scopes (legacy)',
|
||||
description:
|
||||
'Add private scoped registries for Bun, See: https://bun.sh/docs/install/registries',
|
||||
'Add private scoped registries for Bun. Prefer using the .npmrc field above. See: https://bun.sh/docs/install/registries',
|
||||
key: 'bunfig_install_scopes',
|
||||
fieldType: 'password',
|
||||
placeholder: '"@myorg3" = { token = "mytoken", url = "https://registry.myorg.com/" }',
|
||||
storage: 'setting',
|
||||
ee_only: ''
|
||||
ee_only: '',
|
||||
hiddenIfEmpty: true
|
||||
},
|
||||
{
|
||||
label: 'Nuget Config',
|
||||
|
||||
Reference in New Issue
Block a user