npm-pkgbuild 7.23.6 → 7.23.7
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
|
@@ -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"
|
|
@@ -107,6 +106,7 @@ const toBeSkipped = new RegExp(
|
|
|
107
106
|
"\\.git.*",
|
|
108
107
|
"rollup\\.config\\.(js|mjs|cjs)",
|
|
109
108
|
"COPYING",
|
|
109
|
+
"Copyrightnotice\\.txt",
|
|
110
110
|
"Doxyfile",
|
|
111
111
|
"CODE_OF_CONDUCT(\\.md)?",
|
|
112
112
|
"GOVERNANCE(\\.md)?",
|
|
@@ -116,7 +116,7 @@ const toBeSkipped = new RegExp(
|
|
|
116
116
|
"CONTRIBUT(ORS|ING)(\\.md)?",
|
|
117
117
|
"CHANGELOG(\\.md)?",
|
|
118
118
|
"HISTORY(\\.md)?",
|
|
119
|
-
"LICENSE(\\-\\w+|\\.md|\\.txt)?",
|
|
119
|
+
"LICENSE(\\-\\w+|\\.md|\\.txt|\\.BSD)?",
|
|
120
120
|
"README(.*\\.md)?",
|
|
121
121
|
"\\.armv6\\.node",
|
|
122
122
|
"\\.o",
|
|
@@ -158,6 +158,7 @@ const toBeSkipped = new RegExp(
|
|
|
158
158
|
"\\.jscs\\.json",
|
|
159
159
|
"sauce-labs\\.svg",
|
|
160
160
|
"PATENTS(\\.md)?",
|
|
161
|
+
"release-notes\\.md",
|
|
161
162
|
"NOTICE(\\.md)?",
|
|
162
163
|
"SUMMARY\\.md",
|
|
163
164
|
"MIGRAT.*\\.md",
|
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
|
});
|