npm-pkgbuild 7.23.5 → 7.23.9
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.
|
|
3
|
+
"version": "7.23.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@npmcli/arborist": "^4.3.0",
|
|
42
42
|
"aggregate-async-iterator": "^1.1.9",
|
|
43
|
-
"commander": "^
|
|
44
|
-
"content-entry": "^4.1.
|
|
45
|
-
"content-entry-filesystem": "^4.0.
|
|
46
|
-
"content-entry-transform": "^1.3.
|
|
43
|
+
"commander": "^9.0.0",
|
|
44
|
+
"content-entry": "^4.1.3",
|
|
45
|
+
"content-entry-filesystem": "^4.0.5",
|
|
46
|
+
"content-entry-transform": "^1.3.8",
|
|
47
47
|
"execa": "^6.0.0",
|
|
48
48
|
"expression-expander": "^7.0.14",
|
|
49
49
|
"globby": "^13.1.0",
|
|
@@ -30,6 +30,11 @@ export class FileContentProvider extends ContentProvider {
|
|
|
30
30
|
} else {
|
|
31
31
|
this.definitions = { pattern: ["**/*"], ...definitions };
|
|
32
32
|
this.definitions.pattern = asArray(this.definitions.pattern);
|
|
33
|
+
/*
|
|
34
|
+
if(entryProperties && entryProperties.destination && !entryProperties.destination.endsWith('/')) {
|
|
35
|
+
entryProperties.destination += '/';
|
|
36
|
+
}
|
|
37
|
+
*/
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
this.entryProperties = entryProperties;
|
|
@@ -48,7 +48,6 @@ export class NodeModulesContentProvider extends ContentProvider {
|
|
|
48
48
|
|
|
49
49
|
const arb = new Arborist({ path: tmp });
|
|
50
50
|
await arb.buildIdealTree({
|
|
51
|
-
//rm: ["@types/node", "@types/uuid"],
|
|
52
51
|
update: true,
|
|
53
52
|
prune: true,
|
|
54
53
|
saveType: "prod"
|
|
@@ -86,6 +85,7 @@ const toBeSkipped = new RegExp(
|
|
|
86
85
|
"(" +
|
|
87
86
|
[
|
|
88
87
|
"~",
|
|
88
|
+
"\\.\\d",
|
|
89
89
|
"\\.map",
|
|
90
90
|
"\\.ts",
|
|
91
91
|
"\\.mts",
|
|
@@ -101,13 +101,16 @@ const toBeSkipped = new RegExp(
|
|
|
101
101
|
"yarn\\.lock",
|
|
102
102
|
"\\.DS_Store",
|
|
103
103
|
"jenkinsfile",
|
|
104
|
+
"\\.vcxproj",
|
|
104
105
|
"\\.travis\\.yml",
|
|
105
106
|
"\\.jshint(rc)?",
|
|
106
107
|
"\\.npm.*",
|
|
107
108
|
"\\.git.*",
|
|
108
109
|
"rollup\\.config\\.(js|mjs|cjs)",
|
|
109
110
|
"COPYING",
|
|
111
|
+
"Copyrightnotice\\.txt",
|
|
110
112
|
"Doxyfile",
|
|
113
|
+
"Dockerfile",
|
|
111
114
|
"CODE_OF_CONDUCT(\\.md)?",
|
|
112
115
|
"GOVERNANCE(\\.md)?",
|
|
113
116
|
"CODEOWNERS(\\.md)?",
|
|
@@ -116,16 +119,21 @@ 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
139
|
"\\.d",
|
|
@@ -158,6 +166,7 @@ const toBeSkipped = new RegExp(
|
|
|
158
166
|
"\\.jscs\\.json",
|
|
159
167
|
"sauce-labs\\.svg",
|
|
160
168
|
"PATENTS(\\.md)?",
|
|
169
|
+
"release-notes\\.md",
|
|
161
170
|
"NOTICE(\\.md)?",
|
|
162
171
|
"SUMMARY\\.md",
|
|
163
172
|
"MIGRAT.*\\.md",
|
|
@@ -167,6 +176,7 @@ const toBeSkipped = new RegExp(
|
|
|
167
176
|
"SECURITY\\.md",
|
|
168
177
|
"SFTPStream\\.md",
|
|
169
178
|
"LIMITS\\.md",
|
|
179
|
+
"DEPS",
|
|
170
180
|
"Porting-Buffer\\.md",
|
|
171
181
|
"chains and topics\\.md",
|
|
172
182
|
"build_detect_platform"
|
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 program from "commander";
|
|
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";
|
package/src/npm-shrink.mjs
CHANGED
|
@@ -79,6 +79,7 @@ export function shrinkNPM(pkg) {
|
|
|
79
79
|
"coordinates",
|
|
80
80
|
"tap",
|
|
81
81
|
"typesVersions",
|
|
82
|
+
"typeCoverage",
|
|
82
83
|
"node-gyp-build-optional",
|
|
83
84
|
"node-gyp-build-test",
|
|
84
85
|
"gitHead",
|
|
@@ -93,7 +94,8 @@ export function shrinkNPM(pkg) {
|
|
|
93
94
|
"readmeFilename",
|
|
94
95
|
"readme",
|
|
95
96
|
"node-gyp-build-optional",
|
|
96
|
-
"node-gyp-build-test"
|
|
97
|
+
"node-gyp-build-test",
|
|
98
|
+
"jsdelivr"
|
|
97
99
|
].map(key => {
|
|
98
100
|
delete pkg[key];
|
|
99
101
|
});
|