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 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)}>**&#x20;
@@ -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)**&#x20;
562
+
563
+ * `options.staging` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**&#x20;
564
+ * `options.destination` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**&#x20;
559
565
  * `publishingDetail` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?**&#x20;
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)}>**&#x20;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "19.1.0",
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": "^24.10.2",
77
+ "@types/node": "^25.0.1",
78
78
  "ava": "^6.4.1",
79
79
  "c8": "^10.1.3",
80
80
  "documentation": "^14.0.3",
@@ -129,7 +129,7 @@ program
129
129
  }
130
130
  }
131
131
 
132
- console.log("skip", entry.filename);
132
+ //console.log("skip", entry.filename);
133
133
  }
134
134
  },
135
135
  createExpressionTransformer(
@@ -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
- ["--noprogressbar", "-c", "-f", "-e"],
280
+ makePackageOptions,
276
281
  {
277
282
  cwd: staging,
278
283
  env: { PKGDEST: destination, PACKAGER }
@@ -0,0 +1,7 @@
1
+ export class CollectionEntryWithPermissions extends CollectionEntry {
2
+ constructor(name: any, properties: any);
3
+ set mode(value: any);
4
+ get mode(): any;
5
+ #private;
6
+ }
7
+ import { CollectionEntry } from "content-entry";
@@ -0,0 +1,7 @@
1
+ export class FileSystemEntryWithPermissions extends FileSystemEntry {
2
+ constructor(name: any, baseDir: any, properties: any);
3
+ set mode(value: any);
4
+ get mode(): any;
5
+ #private;
6
+ }
7
+ import { FileSystemEntry } from "content-entry-filesystem";
@@ -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";