npm-pkgbuild 19.0.8 → 19.1.0

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
@@ -8,7 +8,6 @@
8
8
  [![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
9
9
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
10
10
  [![Known Vulnerabilities](https://snyk.io/test/github/arlac77/npm-pkgbuild/badge.svg)](https://snyk.io/test/github/arlac77/npm-pkgbuild)
11
- [![Coverage Status](https://coveralls.io/repos/arlac77/npm-pkgbuild/badge.svg)](https://coveralls.io/github/arlac77/npm-pkgbuild)
12
11
 
13
12
  ## npm-pkgbuild
14
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "19.0.8",
3
+ "version": "19.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": false
@@ -52,7 +52,7 @@
52
52
  "tsc:types": "tsc -d --allowJs --declarationDir dist --emitDeclarationOnly ./src/extract-from-package.mjs"
53
53
  },
54
54
  "dependencies": {
55
- "@npmcli/arborist": "^9.1.8",
55
+ "@npmcli/arborist": "^9.1.9",
56
56
  "@vercel/nft": "^1.1.0",
57
57
  "aggregate-async-iterator": "^1.2.3",
58
58
  "commander": "^14.0.2",
@@ -74,7 +74,7 @@
74
74
  "uti": "^8.10.3"
75
75
  },
76
76
  "devDependencies": {
77
- "@types/node": "^24.10.1",
77
+ "@types/node": "^24.10.2",
78
78
  "ava": "^6.4.1",
79
79
  "c8": "^10.1.3",
80
80
  "documentation": "^14.0.3",
@@ -28,6 +28,7 @@ allInputs.forEach(i => {
28
28
  program
29
29
  .option("--verbose", "be more verbose", false)
30
30
  .option("--dry", "do not execute, only print definitions", false)
31
+ .option("--staging <dir>","directory where to start packaging process")
31
32
  .option("-D --define <a=b>", "define property", (str, former = {}) =>
32
33
  Object.assign(former, Object.fromEntries([str.split(/=/)]))
33
34
  )
@@ -261,10 +261,6 @@ package() {
261
261
 
262
262
  if (options.verbose) {
263
263
  console.log(await readFile(join(staging, PKGBUILD), utf8StreamOptions));
264
- /*console.log("***", staging, "***");
265
- const ls = await execa("ls", ["-lR"], { cwd: staging });
266
- console.log(ls.stdout);
267
- console.log("*** end ***");*/
268
264
  }
269
265
 
270
266
  if (!options.dry) {
@@ -198,6 +198,8 @@ export class Packager {
198
198
  /**
199
199
  * Prepares artifact generation.
200
200
  * @param {Object} options
201
+ * @param {string} [options.staging]
202
+ * @param {string} [options.destination]
201
203
  * @param {Object} [publishingDetail]
202
204
  * @returns {Promise<{properties:Object, destination:string, tmpdir:string, staging:string}>}
203
205
  */
@@ -212,7 +214,7 @@ export class Packager {
212
214
  properties: this.properties,
213
215
  destination: options.destination || tmpdir,
214
216
  tmpdir,
215
- staging: tmpdir
217
+ staging: options.staging || tmpdir
216
218
  };
217
219
 
218
220
  // @ts-ignore
@@ -53,10 +53,15 @@ export class Packager {
53
53
  /**
54
54
  * Prepares artifact generation.
55
55
  * @param {Object} options
56
+ * @param {string} [options.staging]
57
+ * @param {string} [options.destination]
56
58
  * @param {Object} [publishingDetail]
57
59
  * @returns {Promise<{properties:Object, destination:string, tmpdir:string, staging:string}>}
58
60
  */
59
- prepare(options: any, publishingDetail?: any): Promise<{
61
+ prepare(options: {
62
+ staging?: string;
63
+ destination?: string;
64
+ }, publishingDetail?: any): Promise<{
60
65
  properties: any;
61
66
  destination: string;
62
67
  tmpdir: string;
@@ -1,7 +0,0 @@
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";
@@ -1,7 +0,0 @@
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";