npm-pkgbuild 19.1.0 → 19.1.2
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 +6 -0
- package/package.json +2 -2
- package/src/npm-pkgbuild-cli.mjs +1 -1
- package/src/output/arch.mjs +6 -1
- package/types/content/collection-entry-with-permissions.d.mts +7 -0
- package/types/content/file-system-entry-with-permissions.d.mts +7 -0
- package/types/output/docker.d.mts +1 -4
package/README.md
CHANGED
|
@@ -494,6 +494,9 @@ Prepares artifact generation.
|
|
|
494
494
|
#### Parameters
|
|
495
495
|
|
|
496
496
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
497
|
+
|
|
498
|
+
* `options.staging` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
499
|
+
* `options.destination` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
497
500
|
* `publishingDetail` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** 
|
|
498
501
|
|
|
499
502
|
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{properties: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object), destination: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), tmpdir: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), staging: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** 
|
|
@@ -556,6 +559,9 @@ Prepares artifact generation.
|
|
|
556
559
|
#### Parameters
|
|
557
560
|
|
|
558
561
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
562
|
+
|
|
563
|
+
* `options.staging` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
564
|
+
* `options.destination` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
559
565
|
* `publishingDetail` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** 
|
|
560
566
|
|
|
561
567
|
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{properties: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object), destination: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), tmpdir: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), staging: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** 
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"uti": "^8.10.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@types/node": "^
|
|
77
|
+
"@types/node": "^25.0.1",
|
|
78
78
|
"ava": "^6.4.1",
|
|
79
79
|
"c8": "^10.1.3",
|
|
80
80
|
"documentation": "^14.0.3",
|
package/src/npm-pkgbuild-cli.mjs
CHANGED
package/src/output/arch.mjs
CHANGED
|
@@ -270,9 +270,14 @@ package() {
|
|
|
270
270
|
PACKAGER = person(properties.contributors);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
+
const makePackageOptions = ["--noprogressbar", "-m", "-c", "-f", "-e"];
|
|
274
|
+
if (options.verbose) {
|
|
275
|
+
makePackageOptions.push("--log");
|
|
276
|
+
}
|
|
277
|
+
|
|
273
278
|
const makepkg = await execa(
|
|
274
279
|
"makepkg",
|
|
275
|
-
|
|
280
|
+
makePackageOptions,
|
|
276
281
|
{
|
|
277
282
|
cwd: staging,
|
|
278
283
|
env: { PKGDEST: destination, PACKAGER }
|
|
@@ -118,9 +118,6 @@ export class DOCKER extends Packager {
|
|
|
118
118
|
arch: string;
|
|
119
119
|
}): Promise<boolean>;
|
|
120
120
|
create(sources: any, transformer: any, options: any, publishingDetails: any, expander: any): Promise<string>;
|
|
121
|
-
publish(artifact: any, publishingDetails: any, logger?:
|
|
122
|
-
(...data: any[]): void;
|
|
123
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
124
|
-
}): Promise<void>;
|
|
121
|
+
publish(artifact: any, publishingDetails: any, logger?: (...data: any[]) => void): Promise<void>;
|
|
125
122
|
}
|
|
126
123
|
import { Packager } from "./packager.mjs";
|