2022-03-30 10:42:47 +02:00
|
|
|
// Copyright 2021 The Gitea Authors. All rights reserved.
|
2022-11-27 13:20:29 -05:00
|
|
|
// SPDX-License-Identifier: MIT
|
2022-03-30 10:42:47 +02:00
|
|
|
|
|
|
|
|
package npm
|
|
|
|
|
|
|
|
|
|
// TagProperty is the name of the property for tag management
|
|
|
|
|
const TagProperty = "npm.tag"
|
|
|
|
|
|
|
|
|
|
// Metadata represents the metadata of a npm package
|
|
|
|
|
type Metadata struct {
|
|
|
|
|
Scope string `json:"scope,omitempty"`
|
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
|
Author string `json:"author,omitempty"`
|
2025-12-13 02:56:05 +08:00
|
|
|
License License `json:"license,omitempty"`
|
2022-03-30 10:42:47 +02:00
|
|
|
ProjectURL string `json:"project_url,omitempty"`
|
|
|
|
|
Keywords []string `json:"keywords,omitempty"`
|
|
|
|
|
Dependencies map[string]string `json:"dependencies,omitempty"`
|
2024-04-29 10:19:06 +02:00
|
|
|
BundleDependencies []string `json:"bundleDependencies,omitempty"`
|
2022-03-30 10:42:47 +02:00
|
|
|
DevelopmentDependencies map[string]string `json:"development_dependencies,omitempty"`
|
|
|
|
|
PeerDependencies map[string]string `json:"peer_dependencies,omitempty"`
|
2025-01-06 22:45:20 +08:00
|
|
|
PeerDependenciesMeta map[string]any `json:"peer_dependencies_meta,omitempty"`
|
2022-03-30 10:42:47 +02:00
|
|
|
OptionalDependencies map[string]string `json:"optional_dependencies,omitempty"`
|
2022-10-07 22:24:44 -07:00
|
|
|
Bin map[string]string `json:"bin,omitempty"`
|
2022-03-30 10:42:47 +02:00
|
|
|
Readme string `json:"readme,omitempty"`
|
2025-06-18 03:48:09 +02:00
|
|
|
Repository Repository `json:"repository"`
|
2022-03-30 10:42:47 +02:00
|
|
|
}
|