Merge pull request 'Add local npm kind and npm virtual' (#67) from benvin/npm-local-virtual into main
ci/woodpecker/push/apply Pipeline was successful

Reviewed-on: #67
This commit was merged in pull request #67.
This commit is contained in:
2026-10-17 22:37:08 +11:00
6 changed files with 27 additions and 0 deletions
+5
View File
@@ -82,6 +82,11 @@ locals {
trimsuffix(basename(file_path), ".yaml") => content
if startswith(file_path, "local_helm/")
}
local_npm = {
for file_path, content in local.all_configs :
trimsuffix(basename(file_path), ".yaml") => content
if startswith(file_path, "local_npm/")
}
local_docker = {
for file_path, content in local.all_configs :
trimsuffix(basename(file_path), ".yaml") => content
+1
View File
@@ -0,0 +1 @@
description: "Internal npm packages"
+5
View File
@@ -0,0 +1,5 @@
package_type: npm
description: "Virtual npm registry over internal and public packages — member order is priority order for duplicate versions"
members:
- npm-internal
- npmjs
@@ -32,6 +32,7 @@ inputs = {
local_pypi = local.config.local_pypi
local_rpm = local.config.local_rpm
local_helm = local.config.local_helm
local_npm = local.config.local_npm
local_docker = local.config.local_docker
local_generic = local.config.local_generic
virtual = local.config.virtual
+7
View File
@@ -176,6 +176,13 @@ resource "artifactapi_local_helm" "this" {
description = each.value.description
}
resource "artifactapi_local_npm" "this" {
for_each = var.local_npm
name = each.key
description = each.value.description
}
resource "artifactapi_local_docker" "this" {
for_each = var.local_docker
+8
View File
@@ -179,6 +179,14 @@ variable "local_helm" {
default = {}
}
variable "local_npm" {
description = "Map of local npm registries"
type = map(object({
description = optional(string, "")
}))
default = {}
}
variable "local_generic" {
description = "Map of local generic (raw-file) repositories"
type = map(object({