@nwutils/builder 0.1.2 → 0.1.3

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": "@nwutils/builder",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Build NW.js applications for Linux, MacOS and Windows.",
5
5
  "keywords": [
6
6
  "NW.js",
@@ -54,10 +54,16 @@
54
54
  "semver": "^7.8.5",
55
55
  "tar": "^7.5.22"
56
56
  },
57
- "devDependencies": {
58
- "@types/archiver": "^8.0.0",
59
- "base-volta-off-of-nwjs": "^1.0.5",
60
- "nw": "^0.115.0",
61
- "selenium-webdriver": "^4.47.0"
57
+ "devEngines": {
58
+ "runtime": {
59
+ "name": "node",
60
+ "version": "26.7.0",
61
+ "onFail": "warn"
62
+ },
63
+ "packageManager": {
64
+ "name": "npm",
65
+ "version": "12.0.2",
66
+ "onFail": "warn"
67
+ }
62
68
  }
63
69
  }
package/types/main.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ export default build;
2
+ /**
3
+ * Linux configuration options
4
+ */
1
5
  export type LinuxRc = {
2
6
  /**
3
7
  * Name of the application
@@ -88,6 +92,9 @@ export type LinuxRc = {
88
92
  */
89
93
  singleMainWindow: string;
90
94
  };
95
+ /**
96
+ * OSX resource configuration options
97
+ */
91
98
  export type OsxRc = {
92
99
  /**
93
100
  * The name of the application
@@ -138,6 +145,9 @@ export type OsxRc = {
138
145
  */
139
146
  LSFileQuarantineEnabled: boolean;
140
147
  };
148
+ /**
149
+ * Windows configuration options. More info
150
+ */
141
151
  export type WinRc = {
142
152
  /**
143
153
  * The name of the application
@@ -208,55 +218,55 @@ export type BuildOptions = {
208
218
  /**
209
219
  * Runtime version
210
220
  */
211
- version?: string | "latest" | "stable" | "lts";
221
+ version?: string | undefined;
212
222
  /**
213
223
  * Build flavor
214
224
  */
215
- flavor?: "normal" | "sdk";
225
+ flavor?: "normal" | "sdk" | undefined;
216
226
  /**
217
227
  * Target platform
218
228
  */
219
- platform?: "linux" | "osx" | "win";
229
+ platform?: "linux" | "osx" | "win" | undefined;
220
230
  /**
221
231
  * Target arch
222
232
  */
223
- arch?: "ia32" | "x64" | "arm64";
233
+ arch?: "x64" | "ia32" | "arm64" | undefined;
224
234
  /**
225
235
  * Versions manifest URI, https or file path
226
236
  */
227
- manifestUrl?: string;
237
+ manifestUrl?: string | undefined;
228
238
  /**
229
239
  * Source directory
230
240
  */
231
- srcDir?: string;
241
+ srcDir?: string | undefined;
232
242
  /**
233
243
  * Cache directory
234
244
  */
235
- cacheDir?: string;
245
+ cacheDir?: string | undefined;
236
246
  /**
237
247
  * Out directory
238
248
  */
239
- outDir?: string;
249
+ outDir?: string | undefined;
240
250
  /**
241
251
  * Platform specific rc
242
252
  */
243
- app?: LinuxRc | WinRc | OsxRc;
253
+ app?: OsxRc | LinuxRc | WinRc | undefined;
244
254
  /**
245
255
  * File globbing
246
256
  */
247
- glob?: boolean;
257
+ glob?: boolean | undefined;
248
258
  /**
249
259
  * Manage manifest
250
260
  */
251
- managedManifest?: boolean | string | object;
261
+ managedManifest?: string | boolean | object | undefined;
252
262
  /**
253
263
  * Compress built artifacts
254
264
  */
255
- zip?: boolean | "zip" | "tar" | "tgz";
265
+ zip?: boolean | "zip" | "tar" | "tgz" | undefined;
256
266
  /**
257
267
  * Version specific release metadata.
258
268
  */
259
- releaseInfo?: object;
269
+ releaseInfo?: object | undefined;
260
270
  };
261
271
  /**
262
272
  * References:
@@ -350,4 +360,3 @@ export type BuildOptions = {
350
360
  * @returns {Promise<void>}
351
361
  */
352
362
  declare function build({ version, flavor, platform, arch, srcDir, cacheDir, outDir, app, glob, managedManifest, zip, releaseInfo, }: BuildOptions): Promise<void>;
353
- export default build;
package/types/util.d.ts CHANGED
@@ -1,3 +1,19 @@
1
+ declare namespace _default {
2
+ export { PLATFORM_KV };
3
+ export { ARCH_KV };
4
+ export { globFiles };
5
+ }
6
+ export default _default;
7
+ declare namespace PLATFORM_KV {
8
+ let darwin: string;
9
+ let linux: string;
10
+ let win32: string;
11
+ }
12
+ declare namespace ARCH_KV {
13
+ let x64: string;
14
+ let ia32: string;
15
+ let arm64: string;
16
+ }
1
17
  /**
2
18
  * Glob files.
3
19
  * @async
@@ -11,17 +27,3 @@ declare function globFiles({ srcDir, glob }: {
11
27
  srcDir: string | string[];
12
28
  glob: boolean;
13
29
  }): Promise<string[] | string>;
14
- declare const _default: {
15
- PLATFORM_KV: {
16
- darwin: string;
17
- linux: string;
18
- win32: string;
19
- };
20
- ARCH_KV: {
21
- x64: string;
22
- ia32: string;
23
- arm64: string;
24
- };
25
- globFiles: typeof globFiles;
26
- };
27
- export default _default;