npm-pkgbuild 20.7.12 → 20.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "20.7.12",
3
+ "version": "20.8.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": false
7
7
  },
8
- "packageManager": "npm@11.16.0",
8
+ "packageManager": "npm@11.18.0",
9
9
  "exports": {
10
10
  ".": {
11
11
  "default": "./src/module.mjs"
@@ -46,7 +46,7 @@
46
46
  "lint:docs": "documentation lint ./src**/*.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@npmcli/arborist": "^9.9.0",
49
+ "@npmcli/arborist": "^10.0.0",
50
50
  "@vercel/nft": "^1.10.2",
51
51
  "aggregate-async-iterator": "^1.2.5",
52
52
  "commander": "^15.0.0",
@@ -60,14 +60,14 @@
60
60
  "key-value-transformer": "^3.3.2",
61
61
  "npm-package-walker": "^8.0.11",
62
62
  "npm-packlist": "^11.3.0",
63
- "pacc": "^10.4.0",
63
+ "pacc": "^10.4.1",
64
64
  "package-directory": "^8.2.0",
65
65
  "pacote": "^22.0.0",
66
66
  "tar-stream": "^3.1.7",
67
67
  "uti": "^8.11.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@types/node": "^26.1.0",
70
+ "@types/node": "^26.1.1",
71
71
  "ava": "^8.0.1",
72
72
  "c8": "^11.0.0",
73
73
  "documentation": "^14.0.3",
@@ -4,7 +4,8 @@ import { execa } from "execa";
4
4
  import {
5
5
  integer_attribute_writable,
6
6
  yesno_attribute_writable,
7
- string_attribute_writable
7
+ string_attribute_writable,
8
+ string_collection_attribute_writable
8
9
  } from "pacc";
9
10
  import { ContentEntry, IteratorContentEntry } from "content-entry";
10
11
  import {
@@ -51,41 +52,82 @@ export class DEBIAN extends Packager {
51
52
  static attributes = {
52
53
  Package: {
53
54
  ...pkgbuild_name_attribute,
55
+ name: "Package",
54
56
  set: v => v.toLowerCase()
55
57
  },
56
- Version: pkgbuild_version_attribute,
58
+ Version: { ...pkgbuild_version_attribute, name: "Version" },
57
59
  Maintainer: {
58
60
  ...string_attribute_writable,
61
+ name: "Maintainer",
59
62
  alias: "maintainer",
60
63
  mandatory: true
61
64
  },
62
- Description: pkgbuild_description_attribute,
63
- Section: { ...string_attribute_writable, alias: "groups" },
64
- Priority: string_attribute_writable,
65
- Essential: yesno_attribute_writable,
66
- Origin: string_attribute_writable,
65
+ Description: { ...pkgbuild_description_attribute, name: "Description" },
66
+ Section: { ...string_attribute_writable, name: "Section", alias: "groups" },
67
+ Priority: { ...string_attribute_writable, name: "Priority" },
68
+ Essential: { ...yesno_attribute_writable, name: "Essential" },
69
+ Origin: { ...string_attribute_writable, name: "Origin" },
67
70
  Architecture: {
68
71
  ...string_attribute_writable,
72
+ name: "Architecture",
69
73
  alias: "arch",
70
74
  default: "all",
71
75
  mandatory: true,
72
76
  mapping: { aarch64: "arm64" }
73
77
  },
74
- Homepage: { ...string_attribute_writable, alias: "homepage" },
75
- Bugs: { ...string_attribute_writable, alias: "bugs" },
76
- Depends: debian_dependency_attribute_collection_writable,
77
- "Pre-Depends": debian_dependency_attribute_collection_writable,
78
- "Build-Depends": debian_dependency_attribute_collection_writable,
79
- "Build-Depends-Indep": debian_dependency_attribute_collection_writable,
80
- "Build-Depends-Arch": debian_dependency_attribute_collection_writable,
81
- Recommends: debian_dependency_attribute_collection_writable,
82
- Suggests: debian_dependency_attribute_collection_writable,
83
- Provides: debian_dependency_attribute_collection_writable,
84
- Breaks: debian_dependency_attribute_collection_writable,
85
- Replaces: debian_dependency_attribute_collection_writable,
86
- Source: { ...string_attribute_writable, alias: "source" },
87
- Uploaders: { mandatory: false },
88
- "Installed-Size": integer_attribute_writable
78
+ Homepage: {
79
+ ...string_attribute_writable,
80
+ name: "Homepage",
81
+ alias: "homepage"
82
+ },
83
+ Bugs: { ...string_attribute_writable, name: "Bugs", alias: "bugs" },
84
+ Depends: {
85
+ ...debian_dependency_attribute_collection_writable,
86
+ name: "Depends"
87
+ },
88
+ "Pre-Depends": {
89
+ ...debian_dependency_attribute_collection_writable,
90
+ name: "Pre-Depends"
91
+ },
92
+ "Build-Depends": {
93
+ ...debian_dependency_attribute_collection_writable,
94
+ name: "Build-Depends"
95
+ },
96
+ "Build-Depends-Indep": {
97
+ ...debian_dependency_attribute_collection_writable,
98
+ name: "Build-Depends-Indep"
99
+ },
100
+ "Build-Depends-Arch": {
101
+ ...debian_dependency_attribute_collection_writable,
102
+ name: "Build-Depends-Arch"
103
+ },
104
+ Recommends: {
105
+ ...debian_dependency_attribute_collection_writable,
106
+ name: "Recommends"
107
+ },
108
+ Suggests: {
109
+ ...debian_dependency_attribute_collection_writable,
110
+ name: "Suggests"
111
+ },
112
+ Provides: {
113
+ ...debian_dependency_attribute_collection_writable,
114
+ name: "Provides"
115
+ },
116
+ Breaks: {
117
+ ...debian_dependency_attribute_collection_writable,
118
+ name: "Breaks"
119
+ },
120
+ Replaces: {
121
+ ...debian_dependency_attribute_collection_writable,
122
+ name: "Replaces"
123
+ },
124
+ Source: { ...string_attribute_writable, name: "Source", alias: "source" },
125
+ Uploaders: {
126
+ ...string_collection_attribute_writable,
127
+ name: "Uploaders",
128
+ mandatory: false
129
+ },
130
+ "Installed-Size": { ...integer_attribute_writable, name: "Installed-Size" }
89
131
  };
90
132
 
91
133
  /**
@@ -61,30 +61,37 @@ export class RPM extends Packager {
61
61
  * @see https://rpm-packaging-guide.github.io
62
62
  */
63
63
  static attributes = {
64
- Name: pkgbuild_name_attribute,
65
- Summary: pkgbuild_description_attribute,
66
- License: { ...string_attribute, alias: "license", mandatory: true },
67
- Version: pkgbuild_version_attribute,
64
+ Name: { ...pkgbuild_name_attribute, name: "Name" },
65
+ Summary: { ...pkgbuild_description_attribute, name: "Summary" },
66
+ License: {
67
+ ...string_attribute,
68
+ name: "License",
69
+ alias: "license",
70
+ mandatory: true
71
+ },
72
+ Version: { ...pkgbuild_version_attribute, name: "Version" },
68
73
  Release: {
69
74
  ...integer_attribute,
75
+ name: "Release",
70
76
  alias: "release",
71
77
  default: 1,
72
78
  mandatory: true
73
79
  },
74
- Source0: { ...string_attribute, alias: "source" },
75
- Group: { ...string_attribute, alias: "groups" },
76
- Packager: { ...string_attribute, alias: "maintainer" },
77
- Vendor: { ...string_attribute, alias: "vendor" },
80
+ Source0: { ...string_attribute, name: "Source0", alias: "source" },
81
+ Group: { ...string_attribute, name: "Group", alias: "groups" },
82
+ Packager: { ...string_attribute, name: "Packager", alias: "maintainer" },
83
+ Vendor: { ...string_attribute, name: "Vendor", alias: "vendor" },
78
84
  BuildArch: {
79
85
  ...string_attribute,
86
+ name: "BuildArch",
80
87
  alias: "arch",
81
88
  default: "noarch",
82
89
  mandatory: true
83
90
  },
84
- URL: { ...url_attribute, alias: "homepage" },
85
- Requires: string_collection_attribute_writable,
86
- Obsoletes: string_collection_attribute_writable,
87
- Conflicts: string_collection_attribute_writable
91
+ URL: { ...url_attribute, name: "URL", alias: "homepage" },
92
+ Requires: { ...string_collection_attribute_writable, name: "Requires" },
93
+ Obsoletes: { ...string_collection_attribute_writable, name: "Obsoletes" },
94
+ Conflicts: { ...string_collection_attribute_writable, name: "Conflicts" }
88
95
  };
89
96
 
90
97
  static get workspaceLayout() {