npm-pkgbuild 7.23.7 → 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
|
@@ -85,6 +85,7 @@ const toBeSkipped = new RegExp(
|
|
|
85
85
|
"(" +
|
|
86
86
|
[
|
|
87
87
|
"~",
|
|
88
|
+
"\\.\\d",
|
|
88
89
|
"\\.map",
|
|
89
90
|
"\\.ts",
|
|
90
91
|
"\\.mts",
|
|
@@ -100,6 +101,7 @@ const toBeSkipped = new RegExp(
|
|
|
100
101
|
"yarn\\.lock",
|
|
101
102
|
"\\.DS_Store",
|
|
102
103
|
"jenkinsfile",
|
|
104
|
+
"\\.vcxproj",
|
|
103
105
|
"\\.travis\\.yml",
|
|
104
106
|
"\\.jshint(rc)?",
|
|
105
107
|
"\\.npm.*",
|
|
@@ -108,6 +110,7 @@ const toBeSkipped = new RegExp(
|
|
|
108
110
|
"COPYING",
|
|
109
111
|
"Copyrightnotice\\.txt",
|
|
110
112
|
"Doxyfile",
|
|
113
|
+
"Dockerfile",
|
|
111
114
|
"CODE_OF_CONDUCT(\\.md)?",
|
|
112
115
|
"GOVERNANCE(\\.md)?",
|
|
113
116
|
"CODEOWNERS(\\.md)?",
|
|
@@ -116,19 +119,23 @@ const toBeSkipped = new RegExp(
|
|
|
116
119
|
"CONTRIBUT(ORS|ING)(\\.md)?",
|
|
117
120
|
"CHANGELOG(\\.md)?",
|
|
118
121
|
"HISTORY(\\.md)?",
|
|
119
|
-
"LICENSE(\\-\\w
|
|
120
|
-
"README(.*\\.md)?",
|
|
122
|
+
"LICENSE(\\-\\w+(\\.txt)?|\\.md|\\.txt|\\.BSD|\\.APACHE2|\\.MIT|\\.terms)?",
|
|
123
|
+
"README(.*\\.md|\\.txt)?",
|
|
124
|
+
"INSTALL(.*\\.md)?",
|
|
121
125
|
"\\.armv6\\.node",
|
|
126
|
+
"\\.py",
|
|
122
127
|
"\\.o",
|
|
123
128
|
"\\.a",
|
|
124
129
|
"\\.c",
|
|
125
130
|
"\\.cc",
|
|
131
|
+
"\\.cpp",
|
|
126
132
|
"\\.h",
|
|
127
133
|
"\\.in",
|
|
128
|
-
"
|
|
134
|
+
"\\.vc",
|
|
135
|
+
"\\.m4",
|
|
136
|
+
"Makefile(\\.am|\\.fallback|\\.msc)?",
|
|
129
137
|
"\\.cmake",
|
|
130
138
|
"\\.mk",
|
|
131
|
-
"\\.d",
|
|
132
139
|
"\\.patch",
|
|
133
140
|
"\\.esl*",
|
|
134
141
|
"\\.zuul\\.yml",
|
|
@@ -168,6 +175,7 @@ const toBeSkipped = new RegExp(
|
|
|
168
175
|
"SECURITY\\.md",
|
|
169
176
|
"SFTPStream\\.md",
|
|
170
177
|
"LIMITS\\.md",
|
|
178
|
+
"DEPS",
|
|
171
179
|
"Porting-Buffer\\.md",
|
|
172
180
|
"chains and topics\\.md",
|
|
173
181
|
"build_detect_platform"
|
|
@@ -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
|
-
|
|
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 };
|
package/src/npm-pkgbuild-cli.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { readFileSync } from "fs";
|
|
4
4
|
import { readFile } from "fs/promises";
|
|
5
5
|
import { join } from "path";
|
|
6
|
-
import {
|
|
6
|
+
import { program } from "commander";
|
|
7
7
|
import { aggregateFifo } from "aggregate-async-iterator";
|
|
8
8
|
import { createContext } from "expression-expander";
|
|
9
9
|
import { packageDirectory } from "pkg-dir";
|