npm-pkgbuild 15.1.4 → 15.1.6
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 +25 -25
- package/package.json +1 -1
- package/src/npm-pkgbuild-cli.mjs +6 -5
- package/src/output/arch.mjs +0 -3
package/README.md
CHANGED
|
@@ -97,24 +97,24 @@ See [mf-hosting](https://www.npmjs.com/package/mf-hosting) or [mf-hosting-fronte
|
|
|
97
97
|
* [FileContentProvider](#filecontentprovider)
|
|
98
98
|
* [Parameters](#parameters-1)
|
|
99
99
|
* [name](#name)
|
|
100
|
-
* [NFTContentProvider](#nftcontentprovider)
|
|
101
|
-
* [Parameters](#parameters-2)
|
|
102
|
-
* [name](#name-1)
|
|
103
100
|
* [utf8StreamOptions](#utf8streamoptions)
|
|
104
101
|
* [Properties](#properties-1)
|
|
105
102
|
* [packageNameMapping](#packagenamemapping)
|
|
106
103
|
* [decodePassword](#decodepassword)
|
|
107
|
-
* [Parameters](#parameters-
|
|
104
|
+
* [Parameters](#parameters-2)
|
|
108
105
|
* [FunctionDecl](#functiondecl)
|
|
109
106
|
* [Properties](#properties-2)
|
|
110
107
|
* [extractFunctions](#extractfunctions)
|
|
111
|
-
* [Parameters](#parameters-
|
|
108
|
+
* [Parameters](#parameters-3)
|
|
112
109
|
* [fieldProvider](#fieldprovider)
|
|
113
|
-
* [Parameters](#parameters-
|
|
110
|
+
* [Parameters](#parameters-4)
|
|
114
111
|
* [Expander](#expander)
|
|
115
|
-
* [Parameters](#parameters-
|
|
112
|
+
* [Parameters](#parameters-5)
|
|
116
113
|
* [copyEntries](#copyentries)
|
|
114
|
+
* [Parameters](#parameters-6)
|
|
115
|
+
* [NFTContentProvider](#nftcontentprovider)
|
|
117
116
|
* [Parameters](#parameters-7)
|
|
117
|
+
* [name](#name-1)
|
|
118
118
|
* [NodeModulesContentProvider](#nodemodulescontentprovider)
|
|
119
119
|
* [Parameters](#parameters-8)
|
|
120
120
|
* [Properties](#properties-3)
|
|
@@ -210,24 +210,6 @@ Content provided form the file system.
|
|
|
210
210
|
|
|
211
211
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
212
212
|
|
|
213
|
-
## NFTContentProvider
|
|
214
|
-
|
|
215
|
-
**Extends ContentProvider**
|
|
216
|
-
|
|
217
|
-
Content provided form the file system.
|
|
218
|
-
|
|
219
|
-
### Parameters
|
|
220
|
-
|
|
221
|
-
* `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))** 
|
|
222
|
-
|
|
223
|
-
* `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)>)** 
|
|
224
|
-
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
225
|
-
* `entryProperties`  
|
|
226
|
-
|
|
227
|
-
### name
|
|
228
|
-
|
|
229
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
230
|
-
|
|
231
213
|
## utf8StreamOptions
|
|
232
214
|
|
|
233
215
|
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
@@ -299,6 +281,24 @@ Destination paths a generated without leading '/' (as for entry names too).
|
|
|
299
281
|
* `destinationDirectory` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
300
282
|
* `expander` **[Expander](#expander)** (optional, default `v=>v`)
|
|
301
283
|
|
|
284
|
+
## NFTContentProvider
|
|
285
|
+
|
|
286
|
+
**Extends ContentProvider**
|
|
287
|
+
|
|
288
|
+
Content provided form the file system.
|
|
289
|
+
|
|
290
|
+
### Parameters
|
|
291
|
+
|
|
292
|
+
* `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))** 
|
|
293
|
+
|
|
294
|
+
* `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)>)** 
|
|
295
|
+
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
296
|
+
* `entryProperties`  
|
|
297
|
+
|
|
298
|
+
### name
|
|
299
|
+
|
|
300
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
301
|
+
|
|
302
302
|
## NodeModulesContentProvider
|
|
303
303
|
|
|
304
304
|
**Extends ContentProvider**
|
package/package.json
CHANGED
package/src/npm-pkgbuild-cli.mjs
CHANGED
|
@@ -110,6 +110,11 @@ program
|
|
|
110
110
|
)
|
|
111
111
|
];
|
|
112
112
|
|
|
113
|
+
const publishingDetails = createPublishingDetails(options.publish, {
|
|
114
|
+
...properties,
|
|
115
|
+
...process.env
|
|
116
|
+
});
|
|
117
|
+
|
|
113
118
|
if (options.verbose) {
|
|
114
119
|
console.log("variant:");
|
|
115
120
|
console.log(kv(variant, " "));
|
|
@@ -117,13 +122,9 @@ program
|
|
|
117
122
|
console.log(" " + sources.join("\n "));
|
|
118
123
|
console.log("dependencies:");
|
|
119
124
|
console.log(kv(dependencies, " "));
|
|
125
|
+
console.log("publish:", publishingDetails.map(pd=>pd.url));
|
|
120
126
|
}
|
|
121
127
|
|
|
122
|
-
const publishingDetails = createPublishingDetails(options.publish, {
|
|
123
|
-
...properties,
|
|
124
|
-
...process.env
|
|
125
|
-
});
|
|
126
|
-
|
|
127
128
|
const artifact = await o.create(
|
|
128
129
|
sources.map(c => c[Symbol.asyncIterator]()),
|
|
129
130
|
transformer,
|
package/src/output/arch.mjs
CHANGED
|
@@ -82,9 +82,6 @@ export class ARCH extends Packager {
|
|
|
82
82
|
await execa("makepkg", ["-V"]);
|
|
83
83
|
|
|
84
84
|
const cfg = await readFile("/etc/makepkg.conf", utf8StreamOptions);
|
|
85
|
-
if (options.verbose) {
|
|
86
|
-
console.log(cfg);
|
|
87
|
-
}
|
|
88
85
|
|
|
89
86
|
function getValue(key) {
|
|
90
87
|
const v = process.env[key];
|