npm-pkgbuild 19.0.2 → 19.0.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/README.md +65 -65
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -99,47 +99,47 @@ See [mf-hosting](https://www.npmjs.com/package/mf-hosting) or [mf-hosting-fronte
|
|
|
99
99
|
* [Properties](#properties)
|
|
100
100
|
* [extractFromPackage](#extractfrompackage)
|
|
101
101
|
* [Parameters](#parameters-1)
|
|
102
|
-
* [
|
|
102
|
+
* [BUILDAH](#buildah)
|
|
103
|
+
* [ContentProvider](#contentprovider)
|
|
103
104
|
* [Parameters](#parameters-2)
|
|
104
105
|
* [Properties](#properties-1)
|
|
106
|
+
* [asyncIterator](#asynciterator)
|
|
107
|
+
* [FileContentProvider](#filecontentprovider)
|
|
108
|
+
* [Parameters](#parameters-3)
|
|
109
|
+
* [asyncIterator](#asynciterator-1)
|
|
105
110
|
* [name](#name)
|
|
106
111
|
* [NodeModulesContentProvider](#nodemodulescontentprovider)
|
|
107
|
-
* [Parameters](#parameters-
|
|
112
|
+
* [Parameters](#parameters-4)
|
|
108
113
|
* [Properties](#properties-2)
|
|
109
|
-
* [asyncIterator](#asynciterator)
|
|
114
|
+
* [asyncIterator](#asynciterator-2)
|
|
110
115
|
* [name](#name-1)
|
|
111
|
-
* [
|
|
112
|
-
* [Parameters](#parameters-
|
|
113
|
-
* [
|
|
116
|
+
* [NPMPackContentProvider](#npmpackcontentprovider)
|
|
117
|
+
* [Parameters](#parameters-5)
|
|
118
|
+
* [Properties](#properties-3)
|
|
114
119
|
* [name](#name-2)
|
|
115
120
|
* [NFTContentProvider](#nftcontentprovider)
|
|
116
|
-
* [Parameters](#parameters-5)
|
|
117
|
-
* [asyncIterator](#asynciterator-2)
|
|
118
|
-
* [name](#name-3)
|
|
119
|
-
* [ContentProvider](#contentprovider)
|
|
120
121
|
* [Parameters](#parameters-6)
|
|
121
|
-
* [Properties](#properties-3)
|
|
122
122
|
* [asyncIterator](#asynciterator-3)
|
|
123
|
+
* [name](#name-3)
|
|
123
124
|
* [DEBIAN](#debian)
|
|
124
125
|
* [hookMapping](#hookmapping)
|
|
125
126
|
* [attributes](#attributes)
|
|
126
127
|
* [prepare](#prepare)
|
|
127
128
|
* [Parameters](#parameters-7)
|
|
128
|
-
* [pkgKeyValuePairOptions](#pkgkeyvaluepairoptions)
|
|
129
|
-
* [attributes](#attributes-1)
|
|
130
129
|
* [quoteFile](#quotefile)
|
|
131
130
|
* [Parameters](#parameters-8)
|
|
132
131
|
* [RPM](#rpm)
|
|
133
132
|
* [hookMapping](#hookmapping-1)
|
|
134
|
-
* [attributes](#attributes-
|
|
133
|
+
* [attributes](#attributes-1)
|
|
135
134
|
* [prepare](#prepare-1)
|
|
136
135
|
* [Parameters](#parameters-9)
|
|
136
|
+
* [pkgKeyValuePairOptions](#pkgkeyvaluepairoptions)
|
|
137
|
+
* [attributes](#attributes-2)
|
|
137
138
|
* [OCI](#oci)
|
|
138
139
|
* [DOCKER](#docker)
|
|
139
140
|
* [attributes](#attributes-3)
|
|
140
141
|
* [prepare](#prepare-2)
|
|
141
142
|
* [Parameters](#parameters-10)
|
|
142
|
-
* [BUILDAH](#buildah)
|
|
143
143
|
* [Packager](#packager)
|
|
144
144
|
* [Parameters](#parameters-11)
|
|
145
145
|
* [packageName](#packagename)
|
|
@@ -249,21 +249,51 @@ Extract package definition from package.json.
|
|
|
249
249
|
|
|
250
250
|
Returns **AsyncIterable<[PackageDefinition](#packagedefinition)>** 
|
|
251
251
|
|
|
252
|
-
##
|
|
252
|
+
## BUILDAH
|
|
253
253
|
|
|
254
|
-
**Extends
|
|
254
|
+
**Extends DOCKER**
|
|
255
255
|
|
|
256
|
-
|
|
256
|
+
Use buildah @see <https://buildah.io>
|
|
257
|
+
|
|
258
|
+
## ContentProvider
|
|
259
|
+
|
|
260
|
+
Source of package content.
|
|
257
261
|
|
|
258
262
|
### Parameters
|
|
259
263
|
|
|
260
|
-
* `definitions`
|
|
261
|
-
* `entryProperties`
|
|
264
|
+
* `definitions`  
|
|
265
|
+
* `entryProperties`  
|
|
262
266
|
* `directoryProperties`  
|
|
263
267
|
|
|
264
268
|
### Properties
|
|
265
269
|
|
|
266
270
|
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
271
|
+
* `transformer` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<Transformer>** 
|
|
272
|
+
|
|
273
|
+
### asyncIterator
|
|
274
|
+
|
|
275
|
+
List all entries.
|
|
276
|
+
|
|
277
|
+
Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
278
|
+
|
|
279
|
+
## FileContentProvider
|
|
280
|
+
|
|
281
|
+
**Extends ContentProvider**
|
|
282
|
+
|
|
283
|
+
Content provided form the file system.
|
|
284
|
+
|
|
285
|
+
### Parameters
|
|
286
|
+
|
|
287
|
+
* `definitions` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** 
|
|
288
|
+
|
|
289
|
+
* `definitions.pattern` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>)** 
|
|
290
|
+
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
291
|
+
* `entryProperties`  
|
|
292
|
+
* `directoryProperties`  
|
|
293
|
+
|
|
294
|
+
### asyncIterator
|
|
295
|
+
|
|
296
|
+
Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
267
297
|
|
|
268
298
|
### name
|
|
269
299
|
|
|
@@ -296,24 +326,21 @@ Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
|
296
326
|
|
|
297
327
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
298
328
|
|
|
299
|
-
##
|
|
329
|
+
## NPMPackContentProvider
|
|
300
330
|
|
|
301
331
|
**Extends ContentProvider**
|
|
302
332
|
|
|
303
|
-
Content
|
|
333
|
+
Content from npm pack.
|
|
304
334
|
|
|
305
335
|
### Parameters
|
|
306
336
|
|
|
307
|
-
* `definitions` **
|
|
308
|
-
|
|
309
|
-
* `definitions.pattern` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>)** 
|
|
310
|
-
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
311
|
-
* `entryProperties`  
|
|
337
|
+
* `definitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
338
|
+
* `entryProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** to be set for each entry
|
|
312
339
|
* `directoryProperties`  
|
|
313
340
|
|
|
314
|
-
###
|
|
341
|
+
### Properties
|
|
315
342
|
|
|
316
|
-
|
|
343
|
+
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
317
344
|
|
|
318
345
|
### name
|
|
319
346
|
|
|
@@ -342,27 +369,6 @@ Returns **AsyncIterable\<ContentEntry>** all entries
|
|
|
342
369
|
|
|
343
370
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
344
371
|
|
|
345
|
-
## ContentProvider
|
|
346
|
-
|
|
347
|
-
Source of package content.
|
|
348
|
-
|
|
349
|
-
### Parameters
|
|
350
|
-
|
|
351
|
-
* `definitions`  
|
|
352
|
-
* `entryProperties`  
|
|
353
|
-
* `directoryProperties`  
|
|
354
|
-
|
|
355
|
-
### Properties
|
|
356
|
-
|
|
357
|
-
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
358
|
-
* `transformer` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<Transformer>** 
|
|
359
|
-
|
|
360
|
-
### asyncIterator
|
|
361
|
-
|
|
362
|
-
List all entries.
|
|
363
|
-
|
|
364
|
-
Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
365
|
-
|
|
366
372
|
## DEBIAN
|
|
367
373
|
|
|
368
374
|
**Extends Packager**
|
|
@@ -389,15 +395,6 @@ Map install hook named from default (arch) to deb.
|
|
|
389
395
|
|
|
390
396
|
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)>** 
|
|
391
397
|
|
|
392
|
-
## pkgKeyValuePairOptions
|
|
393
|
-
|
|
394
|
-
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
395
|
-
|
|
396
|
-
## attributes
|
|
397
|
-
|
|
398
|
-
well known package properties
|
|
399
|
-
<https://www.archlinux.org/pacman/PKGBUILD.5.html>
|
|
400
|
-
|
|
401
398
|
## quoteFile
|
|
402
399
|
|
|
403
400
|
### Parameters
|
|
@@ -431,6 +428,15 @@ Check for rpmbuild presence.
|
|
|
431
428
|
|
|
432
429
|
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)>** true when rpmbuild executable is present
|
|
433
430
|
|
|
431
|
+
## pkgKeyValuePairOptions
|
|
432
|
+
|
|
433
|
+
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
434
|
+
|
|
435
|
+
## attributes
|
|
436
|
+
|
|
437
|
+
well known package properties
|
|
438
|
+
<https://www.archlinux.org/pacman/PKGBUILD.5.html>
|
|
439
|
+
|
|
434
440
|
## OCI
|
|
435
441
|
|
|
436
442
|
**Extends Packager**
|
|
@@ -460,12 +466,6 @@ Check for docker presence.
|
|
|
460
466
|
|
|
461
467
|
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)>** true when docker executable is present
|
|
462
468
|
|
|
463
|
-
## BUILDAH
|
|
464
|
-
|
|
465
|
-
**Extends DOCKER**
|
|
466
|
-
|
|
467
|
-
Use buildah @see <https://buildah.io>
|
|
468
|
-
|
|
469
469
|
## Packager
|
|
470
470
|
|
|
471
471
|
### Parameters
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
7
7
|
},
|
|
8
|
-
"packageManager": "npm@11.6.
|
|
8
|
+
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
|
|
9
9
|
"types": "./types/module.d.mts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"tsc:types": "tsc -d --allowJs --declarationDir dist --emitDeclarationOnly ./src/extract-from-package.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@npmcli/arborist": "^9.1.
|
|
56
|
-
"@vercel/nft": "^
|
|
55
|
+
"@npmcli/arborist": "^9.1.8",
|
|
56
|
+
"@vercel/nft": "^1.1.0",
|
|
57
57
|
"aggregate-async-iterator": "^1.2.2",
|
|
58
58
|
"commander": "^14.0.2",
|
|
59
59
|
"compare-versions": "^6.1.1",
|
|
60
|
-
"content-entry": "^14.2.
|
|
61
|
-
"content-entry-filesystem": "^9.0.
|
|
62
|
-
"content-entry-transform": "^1.5.
|
|
60
|
+
"content-entry": "^14.2.6",
|
|
61
|
+
"content-entry-filesystem": "^9.0.13",
|
|
62
|
+
"content-entry-transform": "^1.5.15",
|
|
63
63
|
"execa": "^9.6.0",
|
|
64
64
|
"expression-expander": "^7.2.7",
|
|
65
65
|
"ini": "^6.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"key-value-transformer": "^3.3.0",
|
|
68
68
|
"npm-package-walker": "^8.0.10",
|
|
69
69
|
"npm-packlist": "^10.0.3",
|
|
70
|
-
"pacc": "^4.41.
|
|
70
|
+
"pacc": "^4.41.2",
|
|
71
71
|
"package-directory": "^8.1.0",
|
|
72
72
|
"pacote": "^21.0.4",
|
|
73
73
|
"tar-stream": "^3.1.7",
|