npm-pkgbuild 12.3.1 → 13.0.1
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": "
|
|
3
|
+
"version": "13.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"test": "npm run test:ava",
|
|
38
|
-
"test:ava": "ava --timeout
|
|
38
|
+
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
39
39
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
40
40
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
41
41
|
"lint": "npm run lint:docs && npm run lint:tsc",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tsc:types": "tsc -d --allowJs --declarationDir dist --emitDeclarationOnly ./src/extract-from-package.mjs"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@npmcli/arborist": "^7.2.
|
|
47
|
+
"@npmcli/arborist": "^7.2.1",
|
|
48
48
|
"@vercel/nft": "^0.24.2",
|
|
49
49
|
"aggregate-async-iterator": "^1.1.16",
|
|
50
50
|
"commander": "^11.1.0",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"uti": "^8.2.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@types/node": "^20.8.
|
|
69
|
+
"@types/node": "^20.8.10",
|
|
70
70
|
"ava": "^5.3.1",
|
|
71
71
|
"c8": "^8.0.1",
|
|
72
72
|
"documentation": "^14.0.2",
|
|
73
|
-
"semantic-release": "^22.0.
|
|
73
|
+
"semantic-release": "^22.0.6",
|
|
74
74
|
"stream-buffers": "^3.0.2",
|
|
75
75
|
"typescript": "^5.2.2"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
|
-
"node": ">=
|
|
78
|
+
"node": ">=20.9.0",
|
|
79
79
|
"bun": ">=1.0"
|
|
80
80
|
},
|
|
81
81
|
"repository": {
|
|
@@ -289,27 +289,26 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
289
289
|
fragment;
|
|
290
290
|
fragment = fragments[fragment.parent]
|
|
291
291
|
) {
|
|
292
|
-
|
|
292
|
+
const missedRequirements = [];
|
|
293
293
|
|
|
294
294
|
const requires = fragment.requires;
|
|
295
295
|
if (requires) {
|
|
296
296
|
if (requires.output && !output[requires.output]) {
|
|
297
|
-
|
|
298
|
-
console.log("skipping output", requires.output, output);
|
|
297
|
+
missedRequirements.push(`output ${requires.output} not avaliable`);
|
|
299
298
|
}
|
|
300
299
|
if (requires.dependencies) {
|
|
301
300
|
for (const [p, v] of Object.entries(requires.dependencies)) {
|
|
302
301
|
const pkgVersion = packages.get(p);
|
|
303
302
|
|
|
304
303
|
if (pkgVersion === undefined || !satisfies(pkgVersion, v)) {
|
|
305
|
-
|
|
304
|
+
missedRequirements.push(`package not present ${p} ${v}`);
|
|
306
305
|
break;
|
|
307
306
|
}
|
|
308
307
|
}
|
|
309
308
|
}
|
|
310
309
|
}
|
|
311
310
|
|
|
312
|
-
if (
|
|
311
|
+
if (missedRequirements.length === 0) {
|
|
313
312
|
arch = new Set([...arch, ...fragment.arch]);
|
|
314
313
|
properties = { ...fragment.properties, ...properties };
|
|
315
314
|
depends = mergeDependencies(depends, fragment.depends);
|
|
@@ -318,7 +317,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
318
317
|
content.push([fragment.content, fragment.dir]);
|
|
319
318
|
}
|
|
320
319
|
} else {
|
|
321
|
-
console.log("requirements not met", fragment.name);
|
|
320
|
+
console.log("requirements not met", fragment.name, missedRequirements);
|
|
322
321
|
}
|
|
323
322
|
}
|
|
324
323
|
|