(overrides: Record<string, string> = {})
| 14 | export const NPM_REGISTRY_URL = 'https://registry.npmjs.org/' |
| 15 | |
| 16 | function createNpmEnv(overrides: Record<string, string> = {}): Record<string, string> { |
| 17 | return { |
| 18 | ...process.env, |
| 19 | ...overrides, |
| 20 | FORCE_COLOR: '0', |
| 21 | npm_config_registry: NPM_REGISTRY_URL, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Validates an npm package name using the official npm validation package |
no outgoing calls
no test coverage detected