npm-pkgbuild 22.2.10 → 22.2.12
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 +70 -70
- package/package.json +1 -1
- package/src/types.mjs +14 -1
package/README.md
CHANGED
|
@@ -97,49 +97,49 @@ See [mf-hosting](https://www.npmjs.com/package/mf-hosting) or [mf-hosting-fronte
|
|
|
97
97
|
* [Properties](#properties)
|
|
98
98
|
* [extractFromPackage](#extractfrompackage)
|
|
99
99
|
* [Parameters](#parameters-1)
|
|
100
|
-
* [
|
|
100
|
+
* [BUILDAH](#buildah)
|
|
101
|
+
* [ContentProvider](#contentprovider)
|
|
101
102
|
* [Parameters](#parameters-2)
|
|
102
103
|
* [Properties](#properties-1)
|
|
103
|
-
* [
|
|
104
|
-
* [
|
|
105
|
-
* [Parameters](#parameters-3)
|
|
106
|
-
* [Properties](#properties-2)
|
|
104
|
+
* [propertiesFor](#propertiesfor)
|
|
105
|
+
* [Parameters](#parameters-3)
|
|
107
106
|
* [asyncIterator](#asynciterator)
|
|
108
|
-
* [name](#name-1)
|
|
109
107
|
* [FileContentProvider](#filecontentprovider)
|
|
110
108
|
* [Parameters](#parameters-4)
|
|
111
109
|
* [asyncIterator](#asynciterator-1)
|
|
112
|
-
* [name](#name
|
|
113
|
-
* [
|
|
110
|
+
* [name](#name)
|
|
111
|
+
* [NodeModulesContentProvider](#nodemodulescontentprovider)
|
|
114
112
|
* [Parameters](#parameters-5)
|
|
113
|
+
* [Properties](#properties-2)
|
|
115
114
|
* [asyncIterator](#asynciterator-2)
|
|
116
|
-
* [name](#name-
|
|
117
|
-
* [
|
|
115
|
+
* [name](#name-1)
|
|
116
|
+
* [NPMPackContentProvider](#npmpackcontentprovider)
|
|
118
117
|
* [Parameters](#parameters-6)
|
|
119
118
|
* [Properties](#properties-3)
|
|
120
|
-
* [
|
|
121
|
-
|
|
119
|
+
* [name](#name-2)
|
|
120
|
+
* [NFTContentProvider](#nftcontentprovider)
|
|
121
|
+
* [Parameters](#parameters-7)
|
|
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-8)
|
|
128
|
-
* [pkgKeyValuePairOptions](#pkgkeyvaluepairoptions)
|
|
129
|
-
* [attributes](#attributes-1)
|
|
130
129
|
* [quoteFile](#quotefile)
|
|
131
130
|
* [Parameters](#parameters-9)
|
|
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-10)
|
|
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-11)
|
|
142
|
-
* [BUILDAH](#buildah)
|
|
143
143
|
* [Packager](#packager)
|
|
144
144
|
* [Parameters](#parameters-12)
|
|
145
145
|
* [packageName](#packagename)
|
|
@@ -257,39 +257,35 @@ Extract package definition from package.json.
|
|
|
257
257
|
|
|
258
258
|
Returns **AsyncIterable<[PackageDefinition](#packagedefinition)>** 
|
|
259
259
|
|
|
260
|
-
##
|
|
260
|
+
## BUILDAH
|
|
261
261
|
|
|
262
|
-
**Extends
|
|
262
|
+
**Extends DOCKER**
|
|
263
263
|
|
|
264
|
-
|
|
264
|
+
Use buildah @see <https://buildah.io>
|
|
265
|
+
|
|
266
|
+
## ContentProvider
|
|
267
|
+
|
|
268
|
+
Source of package content.
|
|
265
269
|
|
|
266
270
|
### Parameters
|
|
267
271
|
|
|
268
272
|
* `definitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
269
|
-
* `entryProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** to be set for each entry
|
|
270
273
|
|
|
271
274
|
### Properties
|
|
272
275
|
|
|
273
276
|
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
277
|
+
* `destination` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
278
|
+
* `defaultProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
279
|
+
* `permissions` **([Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object), [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)> | [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** 
|
|
274
280
|
|
|
275
|
-
###
|
|
276
|
-
|
|
277
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
278
|
-
|
|
279
|
-
## NodeModulesContentProvider
|
|
280
|
-
|
|
281
|
-
**Extends ContentProvider**
|
|
282
|
-
|
|
283
|
-
Content from node\_modules.
|
|
284
|
-
Requires .npmrc or NPM\_TOKEN environment
|
|
285
|
-
|
|
286
|
-
### Parameters
|
|
281
|
+
### propertiesFor
|
|
287
282
|
|
|
288
|
-
|
|
283
|
+
#### Parameters
|
|
289
284
|
|
|
290
|
-
|
|
285
|
+
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
286
|
+
* `isCollection` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
291
287
|
|
|
292
|
-
|
|
288
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
293
289
|
|
|
294
290
|
### asyncIterator
|
|
295
291
|
|
|
@@ -297,10 +293,6 @@ List all entries.
|
|
|
297
293
|
|
|
298
294
|
Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
299
295
|
|
|
300
|
-
### name
|
|
301
|
-
|
|
302
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
303
|
-
|
|
304
296
|
## FileContentProvider
|
|
305
297
|
|
|
306
298
|
**Extends ContentProvider**
|
|
@@ -319,53 +311,67 @@ Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
|
319
311
|
|
|
320
312
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
321
313
|
|
|
322
|
-
##
|
|
314
|
+
## NodeModulesContentProvider
|
|
323
315
|
|
|
324
316
|
**Extends ContentProvider**
|
|
325
317
|
|
|
326
|
-
Content
|
|
318
|
+
Content from node\_modules.
|
|
319
|
+
Requires .npmrc or NPM\_TOKEN environment
|
|
327
320
|
|
|
328
321
|
### Parameters
|
|
329
322
|
|
|
330
|
-
* `definitions`
|
|
323
|
+
* `definitions`  
|
|
324
|
+
|
|
325
|
+
### Properties
|
|
326
|
+
|
|
327
|
+
* `withoutDevelpmentDependencies` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
331
328
|
|
|
332
329
|
### asyncIterator
|
|
333
330
|
|
|
334
|
-
|
|
331
|
+
List all entries.
|
|
332
|
+
|
|
333
|
+
Returns **AsyncIterable<(ContentEntry | CollectionEntry)>** all entries
|
|
335
334
|
|
|
336
335
|
### name
|
|
337
336
|
|
|
338
337
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
339
338
|
|
|
340
|
-
##
|
|
339
|
+
## NPMPackContentProvider
|
|
341
340
|
|
|
342
|
-
|
|
341
|
+
**Extends ContentProvider**
|
|
342
|
+
|
|
343
|
+
Content from npm pack.
|
|
343
344
|
|
|
344
345
|
### Parameters
|
|
345
346
|
|
|
346
347
|
* `definitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
348
|
+
* `entryProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** to be set for each entry
|
|
347
349
|
|
|
348
350
|
### Properties
|
|
349
351
|
|
|
350
352
|
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
351
|
-
* `destination` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
352
|
-
* `defaultProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
353
|
-
* `permissions` **([Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object), [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)> | [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** 
|
|
354
353
|
|
|
355
|
-
###
|
|
354
|
+
### name
|
|
356
355
|
|
|
357
|
-
|
|
356
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
358
357
|
|
|
359
|
-
|
|
360
|
-
* `isCollection` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
358
|
+
## NFTContentProvider
|
|
361
359
|
|
|
362
|
-
|
|
360
|
+
**Extends ContentProvider**
|
|
361
|
+
|
|
362
|
+
Content provided form the file system.
|
|
363
|
+
|
|
364
|
+
### Parameters
|
|
365
|
+
|
|
366
|
+
* `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))** 
|
|
363
367
|
|
|
364
368
|
### asyncIterator
|
|
365
369
|
|
|
366
|
-
|
|
370
|
+
Returns **AsyncIterable\<ContentEntry>** all entries
|
|
367
371
|
|
|
368
|
-
|
|
372
|
+
### name
|
|
373
|
+
|
|
374
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
369
375
|
|
|
370
376
|
## DEBIAN
|
|
371
377
|
|
|
@@ -393,15 +399,6 @@ Map install hook named from default (arch) to deb.
|
|
|
393
399
|
|
|
394
400
|
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)>** 
|
|
395
401
|
|
|
396
|
-
## pkgKeyValuePairOptions
|
|
397
|
-
|
|
398
|
-
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
399
|
-
|
|
400
|
-
## attributes
|
|
401
|
-
|
|
402
|
-
well known package properties
|
|
403
|
-
<https://www.archlinux.org/pacman/PKGBUILD.5.html>
|
|
404
|
-
|
|
405
402
|
## quoteFile
|
|
406
403
|
|
|
407
404
|
### Parameters
|
|
@@ -435,6 +432,15 @@ Check for rpmbuild presence.
|
|
|
435
432
|
|
|
436
433
|
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
|
|
437
434
|
|
|
435
|
+
## pkgKeyValuePairOptions
|
|
436
|
+
|
|
437
|
+
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
438
|
+
|
|
439
|
+
## attributes
|
|
440
|
+
|
|
441
|
+
well known package properties
|
|
442
|
+
<https://www.archlinux.org/pacman/PKGBUILD.5.html>
|
|
443
|
+
|
|
438
444
|
## OCI
|
|
439
445
|
|
|
440
446
|
**Extends Packager**
|
|
@@ -464,12 +470,6 @@ Check for docker presence.
|
|
|
464
470
|
|
|
465
471
|
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
|
|
466
472
|
|
|
467
|
-
## BUILDAH
|
|
468
|
-
|
|
469
|
-
**Extends DOCKER**
|
|
470
|
-
|
|
471
|
-
Use buildah @see <https://buildah.io>
|
|
472
|
-
|
|
473
473
|
## Packager
|
|
474
474
|
|
|
475
475
|
### Parameters
|
package/package.json
CHANGED
package/src/types.mjs
CHANGED
|
@@ -45,7 +45,7 @@ export const architecture_type = {
|
|
|
45
45
|
...string_type,
|
|
46
46
|
name: "architecture",
|
|
47
47
|
|
|
48
|
-
toInternal: (value, attribute) => {
|
|
48
|
+
toInternal: (value, attribute, defaultValue) => {
|
|
49
49
|
return value;
|
|
50
50
|
},
|
|
51
51
|
|
|
@@ -59,6 +59,19 @@ export const arch_attribute_writable = {
|
|
|
59
59
|
name: "arch",
|
|
60
60
|
default: "all",
|
|
61
61
|
mandatory: true,
|
|
62
|
+
values: new Set([
|
|
63
|
+
"aarch64",
|
|
64
|
+
"armv7h",
|
|
65
|
+
"mips",
|
|
66
|
+
"mipsel",
|
|
67
|
+
"ppc",
|
|
68
|
+
"s390",
|
|
69
|
+
"s390x",
|
|
70
|
+
"x32",
|
|
71
|
+
"x86_64",
|
|
72
|
+
"ppc64",
|
|
73
|
+
"any"
|
|
74
|
+
]),
|
|
62
75
|
type: architecture_type
|
|
63
76
|
};
|
|
64
77
|
|