aboutsummaryrefslogtreecommitdiffstats
path: root/templates/package
diff options
context:
space:
mode:
authorMicash <70768913+micash545@users.noreply.github.com>2024-04-29 10:19:06 +0200
committerGitHub <noreply@github.com>2024-04-29 16:19:06 +0800
commitad4e902d5a1430c0c1df18bf404537df5ded1dba (patch)
tree0c42c4f85a6698d63defeb09425a7069a79d71fb /templates/package
parentd11133b83652238023b52576e0d3e57a4f4b21c9 (diff)
downloadgitea-ad4e902d5a1430c0c1df18bf404537df5ded1dba.tar.gz
gitea-ad4e902d5a1430c0c1df18bf404537df5ded1dba.zip
Add support for npm bundleDependencies (#30751)
Diffstat (limited to 'templates/package')
-rw-r--r--templates/package/content/npm.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/package/content/npm.tmpl b/templates/package/content/npm.tmpl
index a78a07d874..01298a664c 100644
--- a/templates/package/content/npm.tmpl
+++ b/templates/package/content/npm.tmpl
@@ -45,6 +45,15 @@
</div>
{{end}}
+ {{if .PackageDescriptor.Metadata.BundleDependencies}}
+ <h4 class="ui top attached header">{{ctx.Locale.Tr "packages.npm.dependencies.bundle"}}</h4>
+ <div class="ui attached segment">
+ {{range .PackageDescriptor.Metadata.BundleDependencies}}
+ {{.}}
+ {{end}}
+ </div>
+ {{end}}
+
{{if .PackageDescriptor.Metadata.Keywords}}
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.keywords"}}</h4>
<div class="ui attached segment">