npm-pkgbuild 7.23.10 → 7.24.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "7.23.10",
3
+ "version": "7.24.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -46,6 +46,11 @@ export async function extractFromPackage(pkg, dir) {
46
46
  properties.name = properties.name.replace(/^\@\w+\//, "");
47
47
  }
48
48
 
49
+ properties.access = "private";
50
+ if (pkg.publishConfig) {
51
+ properties.access = pkg.publishConfig.access;
52
+ }
53
+
49
54
  if (pkg.contributors) {
50
55
  properties.maintainer = pkg.contributors.map(
51
56
  c => `${c.name} <${c.email}>`
@@ -77,10 +82,10 @@ export async function extractFromPackage(pkg, dir) {
77
82
  arch.add(npmArchMapping[a]);
78
83
  }
79
84
  }
80
-
85
+
81
86
  if (pkgbuild.arch) {
82
87
  for (const a of asArray(pkgbuild.arch)) {
83
- arch.add(a);
88
+ arch.add(a);
84
89
  }
85
90
  }
86
91
 
@@ -130,7 +135,7 @@ export async function extractFromPackage(pkg, dir) {
130
135
  processPkg(pkg, dir);
131
136
 
132
137
  if (arch.size > 0) {
133
- properties.arch = [...arch].filter(a => a === npmArchMapping[hostArch])
138
+ properties.arch = [...arch].filter(a => a === npmArchMapping[hostArch]);
134
139
  }
135
140
 
136
141
  return { properties, sources, dependencies, output };