npm-pkgbuild 18.2.25 → 18.2.27
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 +3 -3
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)
|
|
@@ -247,21 +247,51 @@ Extract package definition from package.json.
|
|
|
247
247
|
|
|
248
248
|
Returns **AsyncIterable<[PackageDefinition](#packagedefinition)>** 
|
|
249
249
|
|
|
250
|
-
##
|
|
250
|
+
## BUILDAH
|
|
251
251
|
|
|
252
|
-
**Extends
|
|
252
|
+
**Extends DOCKER**
|
|
253
253
|
|
|
254
|
-
|
|
254
|
+
Use buildah @see <https://buildah.io>
|
|
255
|
+
|
|
256
|
+
## ContentProvider
|
|
257
|
+
|
|
258
|
+
Source of package content.
|
|
255
259
|
|
|
256
260
|
### Parameters
|
|
257
261
|
|
|
258
|
-
* `definitions`
|
|
259
|
-
* `entryProperties`
|
|
262
|
+
* `definitions`  
|
|
263
|
+
* `entryProperties`  
|
|
260
264
|
* `directoryProperties`  
|
|
261
265
|
|
|
262
266
|
### Properties
|
|
263
267
|
|
|
264
268
|
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
269
|
+
* `transformer` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<Transformer>** 
|
|
270
|
+
|
|
271
|
+
### asyncIterator
|
|
272
|
+
|
|
273
|
+
List all entries.
|
|
274
|
+
|
|
275
|
+
Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
276
|
+
|
|
277
|
+
## FileContentProvider
|
|
278
|
+
|
|
279
|
+
**Extends ContentProvider**
|
|
280
|
+
|
|
281
|
+
Content provided form the file system.
|
|
282
|
+
|
|
283
|
+
### Parameters
|
|
284
|
+
|
|
285
|
+
* `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))** 
|
|
286
|
+
|
|
287
|
+
* `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)>)** 
|
|
288
|
+
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
289
|
+
* `entryProperties`  
|
|
290
|
+
* `directoryProperties`  
|
|
291
|
+
|
|
292
|
+
### asyncIterator
|
|
293
|
+
|
|
294
|
+
Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
265
295
|
|
|
266
296
|
### name
|
|
267
297
|
|
|
@@ -294,24 +324,21 @@ Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
|
294
324
|
|
|
295
325
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
296
326
|
|
|
297
|
-
##
|
|
327
|
+
## NPMPackContentProvider
|
|
298
328
|
|
|
299
329
|
**Extends ContentProvider**
|
|
300
330
|
|
|
301
|
-
Content
|
|
331
|
+
Content from npm pack.
|
|
302
332
|
|
|
303
333
|
### Parameters
|
|
304
334
|
|
|
305
|
-
* `definitions` **
|
|
306
|
-
|
|
307
|
-
* `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)>)** 
|
|
308
|
-
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
309
|
-
* `entryProperties`  
|
|
335
|
+
* `definitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
336
|
+
* `entryProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** to be set for each entry
|
|
310
337
|
* `directoryProperties`  
|
|
311
338
|
|
|
312
|
-
###
|
|
339
|
+
### Properties
|
|
313
340
|
|
|
314
|
-
|
|
341
|
+
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
315
342
|
|
|
316
343
|
### name
|
|
317
344
|
|
|
@@ -340,27 +367,6 @@ Returns **AsyncIterable\<ContentEntry>** all entries
|
|
|
340
367
|
|
|
341
368
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
342
369
|
|
|
343
|
-
## ContentProvider
|
|
344
|
-
|
|
345
|
-
Source of package content.
|
|
346
|
-
|
|
347
|
-
### Parameters
|
|
348
|
-
|
|
349
|
-
* `definitions`  
|
|
350
|
-
* `entryProperties`  
|
|
351
|
-
* `directoryProperties`  
|
|
352
|
-
|
|
353
|
-
### Properties
|
|
354
|
-
|
|
355
|
-
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
356
|
-
* `transformer` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<Transformer>** 
|
|
357
|
-
|
|
358
|
-
### asyncIterator
|
|
359
|
-
|
|
360
|
-
List all entries.
|
|
361
|
-
|
|
362
|
-
Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
363
|
-
|
|
364
370
|
## DEBIAN
|
|
365
371
|
|
|
366
372
|
**Extends Packager**
|
|
@@ -387,15 +393,6 @@ Map install hook named from default (arch) to deb.
|
|
|
387
393
|
|
|
388
394
|
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)>** 
|
|
389
395
|
|
|
390
|
-
## pkgKeyValuePairOptions
|
|
391
|
-
|
|
392
|
-
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
393
|
-
|
|
394
|
-
## attributes
|
|
395
|
-
|
|
396
|
-
well known package properties
|
|
397
|
-
<https://www.archlinux.org/pacman/PKGBUILD.5.html>
|
|
398
|
-
|
|
399
396
|
## quoteFile
|
|
400
397
|
|
|
401
398
|
### Parameters
|
|
@@ -429,6 +426,15 @@ Check for rpmbuild presence.
|
|
|
429
426
|
|
|
430
427
|
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
|
|
431
428
|
|
|
429
|
+
## pkgKeyValuePairOptions
|
|
430
|
+
|
|
431
|
+
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
432
|
+
|
|
433
|
+
## attributes
|
|
434
|
+
|
|
435
|
+
well known package properties
|
|
436
|
+
<https://www.archlinux.org/pacman/PKGBUILD.5.html>
|
|
437
|
+
|
|
432
438
|
## OCI
|
|
433
439
|
|
|
434
440
|
**Extends Packager**
|
|
@@ -458,12 +464,6 @@ Check for docker presence.
|
|
|
458
464
|
|
|
459
465
|
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
|
|
460
466
|
|
|
461
|
-
## BUILDAH
|
|
462
|
-
|
|
463
|
-
**Extends DOCKER**
|
|
464
|
-
|
|
465
|
-
Use buildah @see <https://buildah.io>
|
|
466
|
-
|
|
467
467
|
## Packager
|
|
468
468
|
|
|
469
469
|
### Parameters
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.27",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"key-value-transformer": "^3.3.0",
|
|
67
67
|
"npm-package-walker": "^8.0.9",
|
|
68
68
|
"npm-packlist": "^10.0.1",
|
|
69
|
-
"pacc": "^4.
|
|
69
|
+
"pacc": "^4.10.0",
|
|
70
70
|
"package-directory": "^8.1.0",
|
|
71
71
|
"pacote": "^21.0.1",
|
|
72
72
|
"tar-stream": "^3.1.7",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"typescript": "^5.9.2"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
|
-
"node": ">=22.
|
|
85
|
+
"node": ">=22.19.0",
|
|
86
86
|
"bun": ">=1.2.19"
|
|
87
87
|
},
|
|
88
88
|
"repository": {
|