npm-pkgbuild 7.25.3 → 7.25.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 +186 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -28,7 +28,192 @@ The resulting pkg will contain the package dist content and all production depen
|
|
|
28
28
|
|
|
29
29
|
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
### Table of Contents
|
|
32
|
+
|
|
33
|
+
* [ContentProvider](#contentprovider)
|
|
34
|
+
* [asyncIterator](#asynciterator)
|
|
35
|
+
* [FileContentProvider](#filecontentprovider)
|
|
36
|
+
* [Parameters](#parameters)
|
|
37
|
+
* [name](#name)
|
|
38
|
+
* [NodeModulesContentProvider](#nodemodulescontentprovider)
|
|
39
|
+
* [Parameters](#parameters-1)
|
|
40
|
+
* [name](#name-1)
|
|
41
|
+
* [NPMPackContentProvider](#npmpackcontentprovider)
|
|
42
|
+
* [Parameters](#parameters-2)
|
|
43
|
+
* [name](#name-2)
|
|
44
|
+
* [pkgKeyValuePairOptions](#pkgkeyvaluepairoptions)
|
|
45
|
+
* [fields](#fields)
|
|
46
|
+
* [fields](#fields-1)
|
|
47
|
+
* [fields](#fields-2)
|
|
48
|
+
* [Field](#field)
|
|
49
|
+
* [Properties](#properties)
|
|
50
|
+
* [Packager](#packager)
|
|
51
|
+
* [Parameters](#parameters-3)
|
|
52
|
+
* [tmpdir](#tmpdir)
|
|
53
|
+
* [execute](#execute)
|
|
54
|
+
* [Parameters](#parameters-4)
|
|
55
|
+
* [hookMapping](#hookmapping)
|
|
56
|
+
* [extractFunctions](#extractfunctions)
|
|
57
|
+
* [Parameters](#parameters-5)
|
|
58
|
+
* [fieldProvider](#fieldprovider)
|
|
59
|
+
* [Parameters](#parameters-6)
|
|
60
|
+
* [Expander](#expander)
|
|
61
|
+
* [Parameters](#parameters-7)
|
|
62
|
+
* [copyEntries](#copyentries)
|
|
63
|
+
* [Parameters](#parameters-8)
|
|
64
|
+
|
|
65
|
+
## ContentProvider
|
|
66
|
+
|
|
67
|
+
Source of package content.
|
|
68
|
+
|
|
69
|
+
### asyncIterator
|
|
70
|
+
|
|
71
|
+
List all entries.
|
|
72
|
+
|
|
73
|
+
Returns **asyncIterator\<ContentEntry>** all entries
|
|
74
|
+
|
|
75
|
+
## FileContentProvider
|
|
76
|
+
|
|
77
|
+
**Extends ContentProvider**
|
|
78
|
+
|
|
79
|
+
Content provided form the file system.
|
|
80
|
+
|
|
81
|
+
### Parameters
|
|
82
|
+
|
|
83
|
+
* `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))**
|
|
84
|
+
|
|
85
|
+
* `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)>)**
|
|
86
|
+
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
87
|
+
* `entryProperties`
|
|
88
|
+
|
|
89
|
+
### name
|
|
90
|
+
|
|
91
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
92
|
+
|
|
93
|
+
## NodeModulesContentProvider
|
|
94
|
+
|
|
95
|
+
**Extends ContentProvider**
|
|
96
|
+
|
|
97
|
+
Content from node_modules
|
|
98
|
+
|
|
99
|
+
### Parameters
|
|
100
|
+
|
|
101
|
+
* `definitions`
|
|
102
|
+
* `entryProperties`
|
|
103
|
+
|
|
104
|
+
### name
|
|
105
|
+
|
|
106
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
107
|
+
|
|
108
|
+
## NPMPackContentProvider
|
|
109
|
+
|
|
110
|
+
**Extends ContentProvider**
|
|
111
|
+
|
|
112
|
+
Content from npm pack.
|
|
113
|
+
|
|
114
|
+
### Parameters
|
|
115
|
+
|
|
116
|
+
* `definitions`
|
|
117
|
+
* `entryProperties`
|
|
118
|
+
|
|
119
|
+
### name
|
|
120
|
+
|
|
121
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
122
|
+
|
|
123
|
+
## pkgKeyValuePairOptions
|
|
124
|
+
|
|
125
|
+
## fields
|
|
126
|
+
|
|
127
|
+
well known package properties
|
|
128
|
+
<https://www.archlinux.org/pacman/PKGBUILD.5.html>
|
|
129
|
+
|
|
130
|
+
## fields
|
|
131
|
+
|
|
132
|
+
* **See**: <https://www.debian.org/doc/debian-policy/ch-controlfields.html>
|
|
133
|
+
* **See**: <https://linux.die.net/man/5/deb-control>
|
|
134
|
+
|
|
135
|
+
## fields
|
|
136
|
+
|
|
137
|
+
* **See**: <https://rpm-packaging-guide.github.io>
|
|
138
|
+
|
|
139
|
+
## Field
|
|
140
|
+
|
|
141
|
+
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
142
|
+
|
|
143
|
+
### Properties
|
|
144
|
+
|
|
145
|
+
* `alias` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** interchangeable field name
|
|
146
|
+
* `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
147
|
+
* `default` **any**
|
|
148
|
+
* `mandatory` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
|
|
149
|
+
|
|
150
|
+
## Packager
|
|
151
|
+
|
|
152
|
+
### Parameters
|
|
153
|
+
|
|
154
|
+
* `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
155
|
+
|
|
156
|
+
### tmpdir
|
|
157
|
+
|
|
158
|
+
Create tmp directory.
|
|
159
|
+
|
|
160
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** directory path
|
|
161
|
+
|
|
162
|
+
### execute
|
|
163
|
+
|
|
164
|
+
Execute package generation
|
|
165
|
+
|
|
166
|
+
#### Parameters
|
|
167
|
+
|
|
168
|
+
* `sources`
|
|
169
|
+
* `transformer`
|
|
170
|
+
* `dependencies`
|
|
171
|
+
* `options`
|
|
172
|
+
* `expander`
|
|
173
|
+
|
|
174
|
+
## hookMapping
|
|
175
|
+
|
|
176
|
+
map install hook named from arch to rpm
|
|
177
|
+
|
|
178
|
+
## extractFunctions
|
|
179
|
+
|
|
180
|
+
Extract shell functions from a given text
|
|
181
|
+
|
|
182
|
+
### Parameters
|
|
183
|
+
|
|
184
|
+
* `source` **AsyncIterator<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
|
|
185
|
+
|
|
186
|
+
Returns **AsyncIterator\<FunctionDecl>**
|
|
187
|
+
|
|
188
|
+
## fieldProvider
|
|
189
|
+
|
|
190
|
+
### Parameters
|
|
191
|
+
|
|
192
|
+
* `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
193
|
+
* `fields` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
194
|
+
|
|
195
|
+
Returns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)**
|
|
196
|
+
|
|
197
|
+
## Expander
|
|
198
|
+
|
|
199
|
+
Type: [Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)
|
|
200
|
+
|
|
201
|
+
### Parameters
|
|
202
|
+
|
|
203
|
+
* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
204
|
+
|
|
205
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
206
|
+
|
|
207
|
+
## copyEntries
|
|
208
|
+
|
|
209
|
+
Copy content from source into destinationDirectory.
|
|
210
|
+
|
|
211
|
+
### Parameters
|
|
212
|
+
|
|
213
|
+
* `source` **AsyncIterator\<ContentEntry>**
|
|
214
|
+
* `destinationDirectory` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
215
|
+
* `expander` **[Expander](#expander)** (optional, default `v=>v`)
|
|
216
|
+
* `attributes` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<ContentEntryAttribute>**
|
|
32
217
|
|
|
33
218
|
# install
|
|
34
219
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "7.25.
|
|
3
|
+
"version": "7.25.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@npmcli/arborist": "^4.3.0",
|
|
42
42
|
"aggregate-async-iterator": "^1.1.9",
|
|
43
43
|
"commander": "^9.0.0",
|
|
44
|
-
"content-entry": "^4.1.
|
|
45
|
-
"content-entry-filesystem": "^4.0.
|
|
46
|
-
"content-entry-transform": "^1.3.
|
|
44
|
+
"content-entry": "^4.1.4",
|
|
45
|
+
"content-entry-filesystem": "^4.0.6",
|
|
46
|
+
"content-entry-transform": "^1.3.9",
|
|
47
47
|
"execa": "^6.0.0",
|
|
48
48
|
"expression-expander": "^7.0.14",
|
|
49
49
|
"globby": "^13.1.0",
|