npm-pkgbuild 7.20.3 → 7.20.4
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
|
@@ -53,11 +53,7 @@ export class NodeModulesContentProvider extends ContentProvider {
|
|
|
53
53
|
for (const name of await globby("node_modules/**/*", {
|
|
54
54
|
cwd: tmp
|
|
55
55
|
})) {
|
|
56
|
-
if (
|
|
57
|
-
!name.match(
|
|
58
|
-
/(~|\.map|\.ts|\.orig|\.log|\.tmp|\.bak|\.bat|\.gypi|\.gyp|appveyor\.yml|yarn\.lock|\.DS_Store|jenkinsfile|\.travis\.yml|\.jshint(rc)?|\.npm.*|\.git.*|rollup\.config\.(js|mjs|cjs)|CODE_OF_CONDUCT(\.md)?|GOVERNANCE(\.md)?|CODEOWNERS(\.md)?|UPGRAD(E|ING)(\.md)?|AUTHORS(\.md)?|CONTRIBUT(ORS|ING)(.md)?|CHANGELOG(\.md)?|HISTORY(\.md)?|LICENSE(\-\w+|\.md|\.txt)?|README(.*\.md)?|\.o|\.a|\.c|\.cc|\.h|\.in|Makefile|\.cmake|\.mk|\.\d)$/i
|
|
59
|
-
)
|
|
60
|
-
) {
|
|
56
|
+
if (!toBeSkipped.test(name)) {
|
|
61
57
|
yield Object.assign(
|
|
62
58
|
new FileSystemEntry(name, tmp),
|
|
63
59
|
this.entryProperties
|
|
@@ -67,52 +63,91 @@ export class NodeModulesContentProvider extends ContentProvider {
|
|
|
67
63
|
}
|
|
68
64
|
}
|
|
69
65
|
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
66
|
+
const toBeSkipped = new RegExp(
|
|
67
|
+
"(" +
|
|
68
|
+
[
|
|
69
|
+
"~",
|
|
70
|
+
"\\.map",
|
|
71
|
+
"\\.ts",
|
|
72
|
+
"\\.orig",
|
|
73
|
+
"\\.log",
|
|
74
|
+
"\\.tmp",
|
|
75
|
+
"\\.bak",
|
|
76
|
+
"\\.bat",
|
|
77
|
+
"\\.gypi",
|
|
78
|
+
"\\.gyp",
|
|
79
|
+
"appveyor\\.yml",
|
|
80
|
+
"yarn\\.lock",
|
|
81
|
+
"\\.DS_Store",
|
|
82
|
+
"jenkinsfile",
|
|
83
|
+
"\\.travis\\.yml",
|
|
84
|
+
"\\.jshint(rc)?",
|
|
85
|
+
"\\.npm.*",
|
|
86
|
+
"\\.git.*",
|
|
87
|
+
"rollup\\.config\\.(js|mjs|cjs)",
|
|
88
|
+
"CODE_OF_CONDUCT(\\.md)?",
|
|
89
|
+
"GOVERNANCE(\\.md)?",
|
|
90
|
+
"CODEOWNERS(\\.md)?",
|
|
91
|
+
"UPGRAD(E|ING)(\\.md)?",
|
|
92
|
+
"AUTHORS(\\.md)?",
|
|
93
|
+
"CONTRIBUT(ORS|ING)(\\.md)?",
|
|
94
|
+
"CHANGELOG(\\.md)?",
|
|
95
|
+
"HISTORY(\\.md)?",
|
|
96
|
+
"LICENSE(-w+|\\.md|\\.txt)?",
|
|
97
|
+
"README(.*\\.md)?",
|
|
98
|
+
"\\.o",
|
|
99
|
+
"\\.a",
|
|
100
|
+
"\\.c",
|
|
101
|
+
"\\.cc",
|
|
102
|
+
"\\.h",
|
|
103
|
+
"\\.in",
|
|
104
|
+
"Makefile",
|
|
105
|
+
"\\.cmake",
|
|
106
|
+
"\\.mk",
|
|
107
|
+
"\\.d",
|
|
108
|
+
|
|
109
|
+
"\\.patch",
|
|
110
|
+
"\\.esl*",
|
|
111
|
+
"\\.zuul\\.yml",
|
|
112
|
+
"\\.doclets\\.yml",
|
|
113
|
+
"\\.editorconfig",
|
|
114
|
+
"\\.tern-project",
|
|
115
|
+
"\\.dockerignore",
|
|
116
|
+
"\\.dir-locals\\.el",
|
|
117
|
+
"gulpfile\\.js",
|
|
118
|
+
"jsdoc\\.json",
|
|
119
|
+
"Gruntfile\\.js",
|
|
120
|
+
"karma\\.conf\\.js",
|
|
121
|
+
"verb\\.md",
|
|
122
|
+
"\\.nvmrc",
|
|
123
|
+
"bower\\.json",
|
|
124
|
+
"\\.bash_completion.*",
|
|
125
|
+
"\\.coveralls\\.yml",
|
|
126
|
+
"\\.istanbul\\.yml",
|
|
127
|
+
"\\.babelrc.*",
|
|
128
|
+
"\\.nycrc",
|
|
129
|
+
"\\.env",
|
|
130
|
+
"x-package\\.json5",
|
|
131
|
+
"component\\.json",
|
|
132
|
+
"tsconfig\\.json",
|
|
133
|
+
"cypress\\.json",
|
|
134
|
+
"\\.airtap\\.yml",
|
|
135
|
+
"\\.jscs\\.json",
|
|
136
|
+
"sauce-labs\\.svg",
|
|
137
|
+
"PATENTS(\\.md)?",
|
|
138
|
+
"NOTICE(\\.md)?",
|
|
139
|
+
"SUMMARY\\.md",
|
|
140
|
+
"MIGRAT.*\\.md",
|
|
141
|
+
"PULL_REQUEST_TEMPLATE\\.md",
|
|
142
|
+
"PATTERNS\\.md",
|
|
143
|
+
"REFERENCE\\.md",
|
|
144
|
+
"SECURITY\\.md",
|
|
145
|
+
"SFTPStream\\.md",
|
|
146
|
+
"LIMITS\\.md",
|
|
147
|
+
"Porting-Buffer\\.md",
|
|
148
|
+
"chains and topics\\.md",
|
|
149
|
+
].join("|") +
|
|
150
|
+
")$",
|
|
151
|
+
"i"
|
|
152
|
+
);
|
|
153
|
+
|
package/src/output/rpm.mjs
CHANGED
|
@@ -37,7 +37,7 @@ export class RPM extends Packager {
|
|
|
37
37
|
named: {
|
|
38
38
|
staging: "BUILDROOT"
|
|
39
39
|
},
|
|
40
|
-
others: ["RPMS", "SRPMS", "SOURCES", "SPECS"]
|
|
40
|
+
others: ["RPMS", "SRPMS", "SOURCES", "SPECS"]
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -51,7 +51,8 @@ export class RPM extends Packager {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
async execute(sources, transformer, dependencies, options, expander) {
|
|
54
|
-
const { properties, tmpdir, staging, destination } =
|
|
54
|
+
const { properties, tmpdir, staging, destination } =
|
|
55
|
+
await this.prepareExecute(options);
|
|
55
56
|
|
|
56
57
|
properties.Requires = Object.entries(dependencies)
|
|
57
58
|
.map(([n, e]) => `${n}${e}`)
|
|
@@ -125,12 +126,14 @@ export class RPM extends Packager {
|
|
|
125
126
|
console.log(rpmbuild.stdout);
|
|
126
127
|
}
|
|
127
128
|
|
|
129
|
+
const packageFile = join(destination, this.packageFileName);
|
|
130
|
+
|
|
128
131
|
await cp(
|
|
129
132
|
join(tmpdir, "RPMS", properties.arch, this.packageFileName),
|
|
130
|
-
|
|
133
|
+
packageFile,
|
|
131
134
|
{ preserveTimestamps: true }
|
|
132
135
|
);
|
|
133
|
-
return
|
|
136
|
+
return packageFile;
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
|