npm-pkgbuild 14.0.1 → 14.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "14.0.1",
3
+ "version": "14.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -40,14 +40,14 @@
40
40
  },
41
41
  "scripts": {
42
42
  "prepare": "npm run prepare:typescript",
43
- "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
43
+ "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
44
44
  "test": "npm run test:ava",
45
45
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
46
46
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
47
47
  "docs": "documentation readme --section=API ./src/**/*.mjs",
48
48
  "lint": "npm run lint:docs && npm run lint:typescript",
49
49
  "lint:docs": "documentation lint ./src/**/*.mjs",
50
- "lint:typescript": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
50
+ "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
51
51
  "tsc:types": "tsc -d --allowJs --declarationDir dist --emitDeclarationOnly ./src/extract-from-package.mjs"
52
52
  },
53
53
  "dependencies": {
@@ -56,7 +56,7 @@
56
56
  "aggregate-async-iterator": "^1.2.0",
57
57
  "commander": "^12.0.0",
58
58
  "compare-versions": "^6.1.0",
59
- "content-entry": "^9.0.1",
59
+ "content-entry": "^9.0.2",
60
60
  "content-entry-filesystem": "^6.0.0",
61
61
  "content-entry-transform": "^1.4.29",
62
62
  "execa": "^8.0.1",
@@ -70,7 +70,7 @@
70
70
  "pacote": "^17.0.6",
71
71
  "pkg-dir": "^8.0.0",
72
72
  "tar-stream": "^3.1.7",
73
- "uti": "^8.4.0"
73
+ "uti": "^8.4.1"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/node": "^20.11.25",
@@ -35,6 +35,9 @@ const dependenciesToFrom = {
35
35
  nginx: "nginx"
36
36
  };
37
37
 
38
+ /**
39
+ * docker image build
40
+ */
38
41
  export class DOCKER extends Packager {
39
42
  static get name() {
40
43
  return "docker";
package/src/package.mjs CHANGED
@@ -179,6 +179,12 @@ const skipPattern = [
179
179
 
180
180
  const defaultOptions = { dry: false };
181
181
 
182
+ /**
183
+ *
184
+ * @param {string} source
185
+ * @param {string} dest
186
+ * @param {Object} options
187
+ */
182
188
  export async function* copyNodeModules(source, dest, options = defaultOptions) {
183
189
  for await (const name of globbyStream(["node_modules/**/package.json"], {
184
190
  cwd: source
package/src/publish.mjs CHANGED
@@ -18,6 +18,13 @@ export function analysePublish(publish, properties) {
18
18
  return publish;
19
19
  }
20
20
 
21
+ /**
22
+ *
23
+ * @param {string} fileName
24
+ * @param {*} destination
25
+ * @param {Object} properties
26
+ * @param {function(any):void} logger
27
+ */
21
28
  export async function publish(
22
29
  fileName,
23
30
  destination,
package/src/util.mjs CHANGED
@@ -63,7 +63,7 @@ export function decodePassword(password) {
63
63
  /**
64
64
  * @typedef {Object} FunctionDecl
65
65
  * @property {string} name
66
- * @property {string[]} body
66
+ * @property {string} body
67
67
  */
68
68
 
69
69
  /**
@@ -1,3 +1,6 @@
1
+ /**
2
+ * docker image build
3
+ */
1
4
  export class DOCKER extends Packager {
2
5
  static get description(): string;
3
6
  static get fields(): {
@@ -1,6 +1,10 @@
1
- export function copyNodeModules(source: any, dest: any, options?: {
2
- dry: boolean;
3
- }): AsyncGenerator<never, void, unknown>;
1
+ /**
2
+ *
3
+ * @param {string} source
4
+ * @param {string} dest
5
+ * @param {Object} options
6
+ */
7
+ export function copyNodeModules(source: string, dest: string, options?: any): AsyncGenerator<never, void, unknown>;
4
8
  export function copyNodeModule(source: any, dest: any, options?: {
5
9
  dry: boolean;
6
10
  }): AsyncGenerator<string, void, unknown>;
@@ -1,8 +1,12 @@
1
1
  export function analysePublish(publish: any, properties: any): any;
2
- export function publish(fileName: any, destination: any, properties: any, logger?: {
3
- (...data: any[]): void;
4
- (message?: any, ...optionalParams: any[]): void;
5
- }): Promise<void>;
2
+ /**
3
+ *
4
+ * @param {string} fileName
5
+ * @param {*} destination
6
+ * @param {Object} properties
7
+ * @param {function(any):void} logger
8
+ */
9
+ export function publish(fileName: string, destination: any, properties: any, logger?: (arg0: any) => void): Promise<void>;
6
10
  export function preparePublish(publish?: any[], env?: {}): ({
7
11
  url: any;
8
12
  user: any;
package/types/util.d.mts CHANGED
@@ -9,7 +9,7 @@ export function decodePassword(password: string): string;
9
9
  /**
10
10
  * @typedef {Object} FunctionDecl
11
11
  * @property {string} name
12
- * @property {string[]} body
12
+ * @property {string} body
13
13
  */
14
14
  /**
15
15
  * Extract shell functions from a given text.
@@ -49,7 +49,7 @@ export namespace packageNameMapping {
49
49
  }
50
50
  export type FunctionDecl = {
51
51
  name: string;
52
- body: string[];
52
+ body: string;
53
53
  };
54
54
  export type Expander = Function;
55
55
  import { ContentEntry } from "content-entry";