@pipelab/plugin-electron 1.0.0-beta.14 → 1.0.0-beta.15
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/dist/index.cjs +209 -155
- package/dist/index.mjs +164 -110
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -8,11 +8,11 @@ let node_os = require("node:os");
|
|
|
8
8
|
let node_url = require("node:url");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
10
10
|
node_fs = require_chunk.__toESM(node_fs);
|
|
11
|
+
let node_fs_promises = require("node:fs/promises");
|
|
12
|
+
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
11
13
|
let node_http = require("node:http");
|
|
12
14
|
node_http = require_chunk.__toESM(node_http);
|
|
13
15
|
let node_crypto = require("node:crypto");
|
|
14
|
-
let node_fs_promises = require("node:fs/promises");
|
|
15
|
-
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
16
16
|
let node_child_process = require("node:child_process");
|
|
17
17
|
let node_string_decoder = require("node:string_decoder");
|
|
18
18
|
let node_util = require("node:util");
|
|
@@ -1604,6 +1604,56 @@ function literal(literal_, message) {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
+
function looseObject(entries, message) {
|
|
1608
|
+
return {
|
|
1609
|
+
kind: "schema",
|
|
1610
|
+
type: "loose_object",
|
|
1611
|
+
reference: looseObject,
|
|
1612
|
+
expects: "Object",
|
|
1613
|
+
async: false,
|
|
1614
|
+
entries,
|
|
1615
|
+
message,
|
|
1616
|
+
_run(dataset, config2) {
|
|
1617
|
+
const input = dataset.value;
|
|
1618
|
+
if (input && typeof input === "object") {
|
|
1619
|
+
dataset.typed = true;
|
|
1620
|
+
dataset.value = {};
|
|
1621
|
+
for (const key in this.entries) {
|
|
1622
|
+
const value2 = input[key];
|
|
1623
|
+
const valueDataset = this.entries[key]._run({
|
|
1624
|
+
typed: false,
|
|
1625
|
+
value: value2
|
|
1626
|
+
}, config2);
|
|
1627
|
+
if (valueDataset.issues) {
|
|
1628
|
+
const pathItem = {
|
|
1629
|
+
type: "object",
|
|
1630
|
+
origin: "value",
|
|
1631
|
+
input,
|
|
1632
|
+
key,
|
|
1633
|
+
value: value2
|
|
1634
|
+
};
|
|
1635
|
+
for (const issue of valueDataset.issues) {
|
|
1636
|
+
if (issue.path) issue.path.unshift(pathItem);
|
|
1637
|
+
else issue.path = [pathItem];
|
|
1638
|
+
dataset.issues?.push(issue);
|
|
1639
|
+
}
|
|
1640
|
+
if (!dataset.issues) dataset.issues = valueDataset.issues;
|
|
1641
|
+
if (config2.abortEarly) {
|
|
1642
|
+
dataset.typed = false;
|
|
1643
|
+
break;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
if (!valueDataset.typed) dataset.typed = false;
|
|
1647
|
+
if (valueDataset.value !== void 0 || key in input) dataset.value[key] = valueDataset.value;
|
|
1648
|
+
}
|
|
1649
|
+
if (!dataset.issues || !config2.abortEarly) {
|
|
1650
|
+
for (const key in input) if (_isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];
|
|
1651
|
+
}
|
|
1652
|
+
} else _addIssue(this, "type", dataset, config2);
|
|
1653
|
+
return dataset;
|
|
1654
|
+
}
|
|
1655
|
+
};
|
|
1656
|
+
}
|
|
1607
1657
|
function number(message) {
|
|
1608
1658
|
return {
|
|
1609
1659
|
kind: "schema",
|
|
@@ -2141,6 +2191,18 @@ settingsMigratorInternal.createMigrations({
|
|
|
2141
2191
|
})
|
|
2142
2192
|
]
|
|
2143
2193
|
});
|
|
2194
|
+
const connectionsMigratorInternal = createMigrator();
|
|
2195
|
+
const defaultConnections = connectionsMigratorInternal.createDefault({
|
|
2196
|
+
version: "1.0.0",
|
|
2197
|
+
connections: []
|
|
2198
|
+
});
|
|
2199
|
+
connectionsMigratorInternal.createMigrations({
|
|
2200
|
+
defaultValue: defaultConnections,
|
|
2201
|
+
migrations: [createMigration({
|
|
2202
|
+
version: "1.0.0",
|
|
2203
|
+
up: finalVersion
|
|
2204
|
+
})]
|
|
2205
|
+
});
|
|
2144
2206
|
const fileRepoMigratorInternal = createMigrator();
|
|
2145
2207
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2146
2208
|
version: "2.0.0",
|
|
@@ -2302,11 +2364,51 @@ const LEGACY_ID_MAP = {
|
|
|
2302
2364
|
};
|
|
2303
2365
|
const getStrictPluginId = (pluginId) => {
|
|
2304
2366
|
if (!pluginId) return pluginId;
|
|
2305
|
-
|
|
2306
|
-
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
2307
|
-
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
2308
|
-
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
2367
|
+
return LEGACY_ID_MAP[pluginId] || pluginId;
|
|
2309
2368
|
};
|
|
2369
|
+
//#endregion
|
|
2370
|
+
//#region ../../packages/shared/src/save-location.ts
|
|
2371
|
+
const SaveLocationInternalValidator = object({
|
|
2372
|
+
id: string(),
|
|
2373
|
+
project: string(),
|
|
2374
|
+
lastModified: string(),
|
|
2375
|
+
type: literal("internal"),
|
|
2376
|
+
configName: string()
|
|
2377
|
+
});
|
|
2378
|
+
const SaveLocationValidator = union([
|
|
2379
|
+
object({
|
|
2380
|
+
id: string(),
|
|
2381
|
+
project: string(),
|
|
2382
|
+
path: string(),
|
|
2383
|
+
lastModified: string(),
|
|
2384
|
+
type: literal("external"),
|
|
2385
|
+
summary: object({
|
|
2386
|
+
plugins: array(string()),
|
|
2387
|
+
name: string(),
|
|
2388
|
+
description: string()
|
|
2389
|
+
})
|
|
2390
|
+
}),
|
|
2391
|
+
SaveLocationInternalValidator,
|
|
2392
|
+
object({
|
|
2393
|
+
id: string(),
|
|
2394
|
+
project: string(),
|
|
2395
|
+
type: literal("pipelab-cloud")
|
|
2396
|
+
})
|
|
2397
|
+
]);
|
|
2398
|
+
object({
|
|
2399
|
+
version: literal("1.0.0"),
|
|
2400
|
+
data: optional(record(string(), SaveLocationValidator), {})
|
|
2401
|
+
});
|
|
2402
|
+
const FileRepoProjectValidatorV2$1 = object({
|
|
2403
|
+
id: string(),
|
|
2404
|
+
name: string(),
|
|
2405
|
+
description: string()
|
|
2406
|
+
});
|
|
2407
|
+
object({
|
|
2408
|
+
version: literal("2.0.0"),
|
|
2409
|
+
projects: array(FileRepoProjectValidatorV2$1),
|
|
2410
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2411
|
+
});
|
|
2310
2412
|
object({
|
|
2311
2413
|
cacheFolder: string(),
|
|
2312
2414
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -2458,6 +2560,17 @@ object({
|
|
|
2458
2560
|
})),
|
|
2459
2561
|
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
2460
2562
|
});
|
|
2563
|
+
const ConnectionValidator = looseObject({
|
|
2564
|
+
id: string(),
|
|
2565
|
+
pluginName: string(),
|
|
2566
|
+
name: string(),
|
|
2567
|
+
createdAt: string(),
|
|
2568
|
+
isDefault: boolean()
|
|
2569
|
+
});
|
|
2570
|
+
object({
|
|
2571
|
+
version: literal("1.0.0"),
|
|
2572
|
+
connections: array(ConnectionValidator)
|
|
2573
|
+
});
|
|
2461
2574
|
//#endregion
|
|
2462
2575
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
2463
2576
|
const prettyLogStyles = {
|
|
@@ -2978,7 +3091,7 @@ const useLogger = () => {
|
|
|
2978
3091
|
const OriginValidator = object({
|
|
2979
3092
|
pluginId: string(),
|
|
2980
3093
|
nodeId: string(),
|
|
2981
|
-
version: pipe(
|
|
3094
|
+
version: optional(pipe(string(), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent.")))
|
|
2982
3095
|
});
|
|
2983
3096
|
const BlockActionValidatorV1 = object({
|
|
2984
3097
|
type: literal("action"),
|
|
@@ -2991,7 +3104,7 @@ const EditorParamValidatorV3 = union([literal("simple"), literal("editor")]);
|
|
|
2991
3104
|
const BlockActionValidatorV3 = object({
|
|
2992
3105
|
type: literal("action"),
|
|
2993
3106
|
uid: string(),
|
|
2994
|
-
name: pipe(
|
|
3107
|
+
name: optional(pipe(string(), description("A custom name provided by the user"))),
|
|
2995
3108
|
disabled: optional(boolean()),
|
|
2996
3109
|
params: record(string(), object({
|
|
2997
3110
|
editor: EditorParamValidatorV3,
|
|
@@ -45321,35 +45434,6 @@ const createBooleanParam = (value, definition) => {
|
|
|
45321
45434
|
};
|
|
45322
45435
|
};
|
|
45323
45436
|
//#endregion
|
|
45324
|
-
//#region ../../packages/shared/src/save-location.ts
|
|
45325
|
-
const SaveLocationInternalValidator = object({
|
|
45326
|
-
id: string(),
|
|
45327
|
-
project: string(),
|
|
45328
|
-
lastModified: string(),
|
|
45329
|
-
type: literal("internal"),
|
|
45330
|
-
configName: string()
|
|
45331
|
-
});
|
|
45332
|
-
const SaveLocationValidator = union([
|
|
45333
|
-
object({
|
|
45334
|
-
id: string(),
|
|
45335
|
-
project: string(),
|
|
45336
|
-
path: string(),
|
|
45337
|
-
lastModified: string(),
|
|
45338
|
-
type: literal("external"),
|
|
45339
|
-
summary: object({
|
|
45340
|
-
plugins: array(string()),
|
|
45341
|
-
name: string(),
|
|
45342
|
-
description: string()
|
|
45343
|
-
})
|
|
45344
|
-
}),
|
|
45345
|
-
SaveLocationInternalValidator,
|
|
45346
|
-
object({
|
|
45347
|
-
id: string(),
|
|
45348
|
-
project: string(),
|
|
45349
|
-
type: literal("pipelab-cloud")
|
|
45350
|
-
})
|
|
45351
|
-
]);
|
|
45352
|
-
//#endregion
|
|
45353
45437
|
//#region ../../packages/shared/src/websocket.types.ts
|
|
45354
45438
|
var WebSocketError = class extends Error {
|
|
45355
45439
|
constructor(message, code, requestId) {
|
|
@@ -45366,20 +45450,6 @@ object({
|
|
|
45366
45450
|
version: literal("1.0.0"),
|
|
45367
45451
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
45368
45452
|
});
|
|
45369
|
-
const FileRepoProjectValidatorV2$1 = object({
|
|
45370
|
-
id: string(),
|
|
45371
|
-
name: string(),
|
|
45372
|
-
description: string()
|
|
45373
|
-
});
|
|
45374
|
-
object({
|
|
45375
|
-
version: literal("2.0.0"),
|
|
45376
|
-
projects: array(FileRepoProjectValidatorV2$1),
|
|
45377
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45378
|
-
});
|
|
45379
|
-
object({
|
|
45380
|
-
version: literal("1.0.0"),
|
|
45381
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45382
|
-
});
|
|
45383
45453
|
const FileRepoProjectValidatorV2 = object({
|
|
45384
45454
|
id: string(),
|
|
45385
45455
|
name: string(),
|
|
@@ -45391,8 +45461,41 @@ object({
|
|
|
45391
45461
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
45392
45462
|
});
|
|
45393
45463
|
//#endregion
|
|
45464
|
+
//#region ../../packages/constants/src/index.ts
|
|
45465
|
+
const outFolderName = (binName, platform, arch) => {
|
|
45466
|
+
let platformName = "";
|
|
45467
|
+
let archName = "";
|
|
45468
|
+
console.log("platform", platform);
|
|
45469
|
+
if (platform === "linux") platformName = "linux";
|
|
45470
|
+
else if (platform === "win32") platformName = "win32";
|
|
45471
|
+
else if (platform === "darwin") platformName = "darwin";
|
|
45472
|
+
else throw new Error("Unsupported platform");
|
|
45473
|
+
if (arch === "x64") archName = "x64";
|
|
45474
|
+
else if (arch === "arm") archName = "arm";
|
|
45475
|
+
else if (arch === "arm64") archName = "arm64";
|
|
45476
|
+
else if (arch === "ia32") archName = "ia32";
|
|
45477
|
+
else throw new Error("Unsupported architecture");
|
|
45478
|
+
return `${binName}-${platformName}-${archName}`;
|
|
45479
|
+
};
|
|
45480
|
+
/**
|
|
45481
|
+
* Get the binary name for a given platform
|
|
45482
|
+
* @param name
|
|
45483
|
+
* @param platform If not provided, it will try to use process.platform (Node.js only)
|
|
45484
|
+
* @returns
|
|
45485
|
+
*/
|
|
45486
|
+
const getBinName = (name, platform) => {
|
|
45487
|
+
const p = platform || (typeof process !== "undefined" ? process.platform : "unknown");
|
|
45488
|
+
if (p === "win32") return `${name}.exe`;
|
|
45489
|
+
if (p === "darwin") return `${name}.app/Contents/MacOS/${name}`;
|
|
45490
|
+
return name;
|
|
45491
|
+
};
|
|
45492
|
+
const websocketPort = 33753;
|
|
45493
|
+
const DEFAULT_NODE_VERSION = "24.14.1";
|
|
45494
|
+
const DEFAULT_PNPM_VERSION = "10.12.0";
|
|
45495
|
+
//#endregion
|
|
45394
45496
|
//#region ../../packages/core-node/src/context.ts
|
|
45395
|
-
const
|
|
45497
|
+
const metaUrl = require("url").pathToFileURL(__filename).href;
|
|
45498
|
+
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? (0, node_path.dirname)((0, node_url.fileURLToPath)(metaUrl)) : process.cwd();
|
|
45396
45499
|
const isDev = process.env.NODE_ENV === "development";
|
|
45397
45500
|
/**
|
|
45398
45501
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
@@ -48964,36 +49067,6 @@ const useAPI = () => {
|
|
|
48964
49067
|
};
|
|
48965
49068
|
};
|
|
48966
49069
|
//#endregion
|
|
48967
|
-
//#region ../../packages/constants/src/index.ts
|
|
48968
|
-
const outFolderName = (binName, platform, arch) => {
|
|
48969
|
-
let platformName = "";
|
|
48970
|
-
let archName = "";
|
|
48971
|
-
console.log("platform", platform);
|
|
48972
|
-
if (platform === "linux") platformName = "linux";
|
|
48973
|
-
else if (platform === "win32") platformName = "win32";
|
|
48974
|
-
else if (platform === "darwin") platformName = "darwin";
|
|
48975
|
-
else throw new Error("Unsupported platform");
|
|
48976
|
-
if (arch === "x64") archName = "x64";
|
|
48977
|
-
else if (arch === "arm") archName = "arm";
|
|
48978
|
-
else if (arch === "arm64") archName = "arm64";
|
|
48979
|
-
else if (arch === "ia32") archName = "ia32";
|
|
48980
|
-
else throw new Error("Unsupported architecture");
|
|
48981
|
-
return `${binName}-${platformName}-${archName}`;
|
|
48982
|
-
};
|
|
48983
|
-
/**
|
|
48984
|
-
* Get the binary name for a given platform
|
|
48985
|
-
* @param name
|
|
48986
|
-
* @param platform If not provided, it will try to use process.platform (Node.js only)
|
|
48987
|
-
* @returns
|
|
48988
|
-
*/
|
|
48989
|
-
const getBinName = (name, platform) => {
|
|
48990
|
-
const p = platform || (typeof process !== "undefined" ? process.platform : "unknown");
|
|
48991
|
-
if (p === "win32") return `${name}.exe`;
|
|
48992
|
-
if (p === "darwin") return `${name}.app/Contents/MacOS/${name}`;
|
|
48993
|
-
return name;
|
|
48994
|
-
};
|
|
48995
|
-
const websocketPort = 33753;
|
|
48996
|
-
//#endregion
|
|
48997
49070
|
//#region ../../packages/core-node/src/websocket-server.ts
|
|
48998
49071
|
var WebSocketServer = class {
|
|
48999
49072
|
wss = null;
|
|
@@ -59600,17 +59673,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59600
59673
|
//#endregion
|
|
59601
59674
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59602
59675
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59603
|
-
const { dirname: dirname$
|
|
59676
|
+
const { dirname: dirname$14 } = require("path");
|
|
59604
59677
|
const findMade = (opts, parent, path$83 = void 0) => {
|
|
59605
59678
|
if (path$83 === parent) return Promise.resolve();
|
|
59606
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$83 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59679
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$83 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
59607
59680
|
};
|
|
59608
59681
|
const findMadeSync = (opts, parent, path$84 = void 0) => {
|
|
59609
59682
|
if (path$84 === parent) return void 0;
|
|
59610
59683
|
try {
|
|
59611
59684
|
return opts.statSync(parent).isDirectory() ? path$84 : void 0;
|
|
59612
59685
|
} catch (er) {
|
|
59613
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59686
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
59614
59687
|
}
|
|
59615
59688
|
};
|
|
59616
59689
|
module.exports = {
|
|
@@ -59621,10 +59694,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59621
59694
|
//#endregion
|
|
59622
59695
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59623
59696
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59624
|
-
const { dirname: dirname$
|
|
59697
|
+
const { dirname: dirname$13 } = require("path");
|
|
59625
59698
|
const mkdirpManual = (path$81, opts, made) => {
|
|
59626
59699
|
opts.recursive = false;
|
|
59627
|
-
const parent = dirname$
|
|
59700
|
+
const parent = dirname$13(path$81);
|
|
59628
59701
|
if (parent === path$81) return opts.mkdirAsync(path$81, opts).catch((er) => {
|
|
59629
59702
|
if (er.code !== "EISDIR") throw er;
|
|
59630
59703
|
});
|
|
@@ -59640,7 +59713,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59640
59713
|
});
|
|
59641
59714
|
};
|
|
59642
59715
|
const mkdirpManualSync = (path$82, opts, made) => {
|
|
59643
|
-
const parent = dirname$
|
|
59716
|
+
const parent = dirname$13(path$82);
|
|
59644
59717
|
opts.recursive = false;
|
|
59645
59718
|
if (parent === path$82) try {
|
|
59646
59719
|
return opts.mkdirSync(path$82, opts);
|
|
@@ -59669,12 +59742,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59669
59742
|
//#endregion
|
|
59670
59743
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59671
59744
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59672
|
-
const { dirname: dirname$
|
|
59745
|
+
const { dirname: dirname$12 } = require("path");
|
|
59673
59746
|
const { findMade, findMadeSync } = require_find_made();
|
|
59674
59747
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59675
59748
|
const mkdirpNative = (path$79, opts) => {
|
|
59676
59749
|
opts.recursive = true;
|
|
59677
|
-
if (dirname$
|
|
59750
|
+
if (dirname$12(path$79) === path$79) return opts.mkdirAsync(path$79, opts);
|
|
59678
59751
|
return findMade(opts, path$79).then((made) => opts.mkdirAsync(path$79, opts).then(() => made).catch((er) => {
|
|
59679
59752
|
if (er.code === "ENOENT") return mkdirpManual(path$79, opts);
|
|
59680
59753
|
else throw er;
|
|
@@ -59682,7 +59755,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59682
59755
|
};
|
|
59683
59756
|
const mkdirpNativeSync = (path$80, opts) => {
|
|
59684
59757
|
opts.recursive = true;
|
|
59685
|
-
if (dirname$
|
|
59758
|
+
if (dirname$12(path$80) === path$80) return opts.mkdirSync(path$80, opts);
|
|
59686
59759
|
const made = findMadeSync(opts, path$80);
|
|
59687
59760
|
try {
|
|
59688
59761
|
opts.mkdirSync(path$80, opts);
|
|
@@ -89401,14 +89474,6 @@ var import_tar = /* @__PURE__ */ require_chunk.__toESM(require_tar$1(), 1);
|
|
|
89401
89474
|
var import_yauzl = /* @__PURE__ */ require_chunk.__toESM(require_yauzl(), 1);
|
|
89402
89475
|
require_archiver();
|
|
89403
89476
|
/**
|
|
89404
|
-
* Generates a unique temporary folder.
|
|
89405
|
-
*/
|
|
89406
|
-
const generateTempFolder$1 = async (base) => {
|
|
89407
|
-
const targetBase = base || (0, node_os.tmpdir)();
|
|
89408
|
-
await (0, node_fs_promises.mkdir)(targetBase, { recursive: true });
|
|
89409
|
-
return await (0, node_fs_promises.mkdtemp)((0, node_path.join)(await (0, node_fs_promises.realpath)(targetBase), "pipelab-"));
|
|
89410
|
-
};
|
|
89411
|
-
/**
|
|
89412
89477
|
* Extracts a .tar.gz archive.
|
|
89413
89478
|
*/
|
|
89414
89479
|
async function extractTarGz(archivePath, destinationDir) {
|
|
@@ -98913,11 +98978,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98913
98978
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98914
98979
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98915
98980
|
const is = require_is();
|
|
98916
|
-
const { dirname: dirname$
|
|
98981
|
+
const { dirname: dirname$10 } = require("path");
|
|
98917
98982
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98918
98983
|
while (true) {
|
|
98919
98984
|
if (await is({ cwd })) return cwd;
|
|
98920
|
-
const next = dirname$
|
|
98985
|
+
const next = dirname$10(cwd);
|
|
98921
98986
|
if (cwd === root || cwd === next) return null;
|
|
98922
98987
|
cwd = next;
|
|
98923
98988
|
}
|
|
@@ -99441,7 +99506,7 @@ var require_sort$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99441
99506
|
//#endregion
|
|
99442
99507
|
//#region ../../node_modules/@npmcli/package-json/lib/index.js
|
|
99443
99508
|
var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
99444
|
-
const { readFile: readFile$9, writeFile: writeFile$
|
|
99509
|
+
const { readFile: readFile$9, writeFile: writeFile$4 } = require("node:fs/promises");
|
|
99445
99510
|
const { resolve: resolve$11 } = require("node:path");
|
|
99446
99511
|
const parseJSON = require_lib$30();
|
|
99447
99512
|
const updateDeps = require_update_dependencies();
|
|
@@ -99614,7 +99679,7 @@ var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99614
99679
|
const content = sort ? packageSort(rest) : rest;
|
|
99615
99680
|
const fileContent = `${JSON.stringify(content, null, format)}\n`.replace(/\n/g, eol);
|
|
99616
99681
|
if (fileContent.trim() !== this.#readFileContent.trim()) {
|
|
99617
|
-
const written = await writeFile$
|
|
99682
|
+
const written = await writeFile$4(this.filename, fileContent);
|
|
99618
99683
|
this.#readFileContent = fileContent;
|
|
99619
99684
|
return written;
|
|
99620
99685
|
}
|
|
@@ -100712,8 +100777,8 @@ var require_errors$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100712
100777
|
var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100713
100778
|
const { ERR_FS_CP_DIR_TO_NON_DIR, ERR_FS_CP_EEXIST, ERR_FS_CP_EINVAL, ERR_FS_CP_FIFO_PIPE, ERR_FS_CP_NON_DIR_TO_DIR, ERR_FS_CP_SOCKET, ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY, ERR_FS_CP_UNKNOWN, ERR_FS_EISDIR, ERR_INVALID_ARG_TYPE } = require_errors$3();
|
|
100714
100779
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100715
|
-
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$
|
|
100716
|
-
const { dirname: dirname$
|
|
100780
|
+
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100781
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$13, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100717
100782
|
const { fileURLToPath } = require("url");
|
|
100718
100783
|
const defaultOptions = {
|
|
100719
100784
|
dereference: false,
|
|
@@ -100787,9 +100852,9 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100787
100852
|
})]);
|
|
100788
100853
|
}
|
|
100789
100854
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100790
|
-
const destParent = dirname$
|
|
100855
|
+
const destParent = dirname$9(dest);
|
|
100791
100856
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100792
|
-
await mkdir$
|
|
100857
|
+
await mkdir$7(destParent, { recursive: true });
|
|
100793
100858
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
100794
100859
|
}
|
|
100795
100860
|
function pathExists(dest) {
|
|
@@ -100800,8 +100865,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100800
100865
|
);
|
|
100801
100866
|
}
|
|
100802
100867
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100803
|
-
const srcParent = resolve$10(dirname$
|
|
100804
|
-
const destParent = resolve$10(dirname$
|
|
100868
|
+
const srcParent = resolve$10(dirname$9(src));
|
|
100869
|
+
const destParent = resolve$10(dirname$9(dest));
|
|
100805
100870
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100806
100871
|
let destStat;
|
|
100807
100872
|
try {
|
|
@@ -100914,7 +100979,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100914
100979
|
return copyDir(src, dest, opts);
|
|
100915
100980
|
}
|
|
100916
100981
|
async function mkDirAndCopy(srcMode, src, dest, opts) {
|
|
100917
|
-
await mkdir$
|
|
100982
|
+
await mkdir$7(dest);
|
|
100918
100983
|
await copyDir(src, dest, opts);
|
|
100919
100984
|
return setDestMode(dest, srcMode);
|
|
100920
100985
|
}
|
|
@@ -100930,7 +100995,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100930
100995
|
}
|
|
100931
100996
|
async function onLink(destStat, src, dest) {
|
|
100932
100997
|
let resolvedSrc = await readlink(src);
|
|
100933
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100998
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$9(src), resolvedSrc);
|
|
100934
100999
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100935
101000
|
let resolvedDest;
|
|
100936
101001
|
try {
|
|
@@ -100941,7 +101006,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100941
101006
|
// istanbul ignore next: should not be possible
|
|
100942
101007
|
throw err;
|
|
100943
101008
|
}
|
|
100944
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
101009
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$9(dest), resolvedDest);
|
|
100945
101010
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100946
101011
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100947
101012
|
path: dest,
|
|
@@ -100989,11 +101054,11 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100989
101054
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100990
101055
|
const { join: join$12, sep: sep$1 } = require("path");
|
|
100991
101056
|
const getOptions = require_get_options();
|
|
100992
|
-
const { mkdir: mkdir$
|
|
101057
|
+
const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
100993
101058
|
const withTempDir = async (root, fn, opts) => {
|
|
100994
101059
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100995
|
-
await mkdir$
|
|
100996
|
-
const target = await mkdtemp
|
|
101060
|
+
await mkdir$6(root, { recursive: true });
|
|
101061
|
+
const target = await mkdtemp(join$12(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100997
101062
|
let err;
|
|
100998
101063
|
let result;
|
|
100999
101064
|
try {
|
|
@@ -101028,7 +101093,7 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
101028
101093
|
//#endregion
|
|
101029
101094
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101030
101095
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101031
|
-
const { dirname: dirname$
|
|
101096
|
+
const { dirname: dirname$8, join: join$10, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
101032
101097
|
const fs$12 = require("fs/promises");
|
|
101033
101098
|
const pathExists = async (path$54) => {
|
|
101034
101099
|
try {
|
|
@@ -101045,7 +101110,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101045
101110
|
...options
|
|
101046
101111
|
};
|
|
101047
101112
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
101048
|
-
await fs$12.mkdir(dirname$
|
|
101113
|
+
await fs$12.mkdir(dirname$8(destination), { recursive: true });
|
|
101049
101114
|
try {
|
|
101050
101115
|
await fs$12.rename(source, destination);
|
|
101051
101116
|
} catch (error) {
|
|
@@ -101067,7 +101132,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101067
101132
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
101068
101133
|
let targetStat = "file";
|
|
101069
101134
|
try {
|
|
101070
|
-
targetStat = await fs$12.stat(resolve$9(dirname$
|
|
101135
|
+
targetStat = await fs$12.stat(resolve$9(dirname$8(symSource), target));
|
|
101071
101136
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101072
101137
|
} catch {}
|
|
101073
101138
|
await fs$12.symlink(target, symDestination, targetStat);
|
|
@@ -101229,7 +101294,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101229
101294
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
101230
101295
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101231
101296
|
const crypto$1 = require("crypto");
|
|
101232
|
-
const { appendFile, mkdir: mkdir$
|
|
101297
|
+
const { appendFile, mkdir: mkdir$5, readFile: readFile$8, readdir: readdir$4, rm: rm$7, writeFile: writeFile$3 } = require("fs/promises");
|
|
101233
101298
|
const { Minipass } = require_commonjs$10();
|
|
101234
101299
|
const path$14 = require("path");
|
|
101235
101300
|
const ssri = require_lib$17();
|
|
@@ -101263,7 +101328,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101263
101328
|
}).join("\n");
|
|
101264
101329
|
const setup = async () => {
|
|
101265
101330
|
const target = tmpName(cache, opts.tmpPrefix);
|
|
101266
|
-
await mkdir$
|
|
101331
|
+
await mkdir$5(path$14.dirname(target), { recursive: true });
|
|
101267
101332
|
return {
|
|
101268
101333
|
target,
|
|
101269
101334
|
moved: false
|
|
@@ -101276,8 +101341,8 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101276
101341
|
});
|
|
101277
101342
|
};
|
|
101278
101343
|
const write = async (tmp) => {
|
|
101279
|
-
await writeFile$
|
|
101280
|
-
await mkdir$
|
|
101344
|
+
await writeFile$3(tmp.target, newIndex, { flag: "wx" });
|
|
101345
|
+
await mkdir$5(path$14.dirname(bucket), { recursive: true });
|
|
101281
101346
|
await moveFile(tmp.target, bucket);
|
|
101282
101347
|
tmp.moved = true;
|
|
101283
101348
|
};
|
|
@@ -101301,7 +101366,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101301
101366
|
metadata
|
|
101302
101367
|
};
|
|
101303
101368
|
try {
|
|
101304
|
-
await mkdir$
|
|
101369
|
+
await mkdir$5(path$14.dirname(bucket), { recursive: true });
|
|
101305
101370
|
const stringified = JSON.stringify(entry);
|
|
101306
101371
|
await appendFile(bucket, `\n${hashEntry(stringified)}\t${stringified}`);
|
|
101307
101372
|
} catch (err) {
|
|
@@ -106144,7 +106209,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
106144
106209
|
//#endregion
|
|
106145
106210
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
106146
106211
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106147
|
-
const { mkdir: mkdir$
|
|
106212
|
+
const { mkdir: mkdir$4, readFile: readFile$7, rm: rm$5, stat: stat$4, truncate, writeFile: writeFile$2 } = require("fs/promises");
|
|
106148
106213
|
const contentPath = require_path();
|
|
106149
106214
|
const fsm = require_lib$15();
|
|
106150
106215
|
const glob = require_glob();
|
|
@@ -106194,7 +106259,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106194
106259
|
}
|
|
106195
106260
|
async function fixPerms(cache, opts) {
|
|
106196
106261
|
opts.log.silly("verify", "fixing cache permissions");
|
|
106197
|
-
await mkdir$
|
|
106262
|
+
await mkdir$4(cache, { recursive: true });
|
|
106198
106263
|
return null;
|
|
106199
106264
|
}
|
|
106200
106265
|
async function garbageCollect(cache, opts) {
|
|
@@ -106333,7 +106398,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106333
106398
|
async function writeVerifile(cache, opts) {
|
|
106334
106399
|
const verifile = path$10.join(cache, "_lastverified");
|
|
106335
106400
|
opts.log.silly("verify", "writing verifile to " + verifile);
|
|
106336
|
-
return writeFile$
|
|
106401
|
+
return writeFile$2(verifile, `${Date.now()}`);
|
|
106337
106402
|
}
|
|
106338
106403
|
module.exports.lastRun = lastRun;
|
|
106339
106404
|
async function lastRun(cache) {
|
|
@@ -106884,7 +106949,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106884
106949
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106885
106950
|
const bundled = require_lib$12();
|
|
106886
106951
|
const { readFile: readFile$6, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106887
|
-
const { resolve: resolve$8, basename: basename$4, dirname: dirname$
|
|
106952
|
+
const { resolve: resolve$8, basename: basename$4, dirname: dirname$7 } = require("path");
|
|
106888
106953
|
const normalizePackageBin = require_lib$21();
|
|
106889
106954
|
const readPackage = ({ path: path$49, packageJsonCache }) => packageJsonCache.has(path$49) ? Promise.resolve(packageJsonCache.get(path$49)) : readFile$6(path$49).then((json) => {
|
|
106890
106955
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106923,9 +106988,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106923
106988
|
}));
|
|
106924
106989
|
if (pkg) {
|
|
106925
106990
|
if (pkg.bin) {
|
|
106926
|
-
const dir = dirname$
|
|
106991
|
+
const dir = dirname$7(path$51);
|
|
106927
106992
|
const scope = basename$4(dir);
|
|
106928
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106993
|
+
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
106929
106994
|
const binFiles = [];
|
|
106930
106995
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106931
106996
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -110592,9 +110657,9 @@ var require_protected = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
110592
110657
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
110593
110658
|
var require_cache_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
110594
110659
|
const { resolve: resolve$7 } = require("node:path");
|
|
110595
|
-
const { tmpdir
|
|
110660
|
+
const { tmpdir, homedir } = require("node:os");
|
|
110596
110661
|
module.exports = (fakePlatform = false) => {
|
|
110597
|
-
const temp = tmpdir
|
|
110662
|
+
const temp = tmpdir();
|
|
110598
110663
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
110599
110664
|
const home = homedir() || resolve$7(temp, "npm-" + uidOrPid);
|
|
110600
110665
|
const platform = fakePlatform || process.platform;
|
|
@@ -112416,7 +112481,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112416
112481
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112417
112482
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112418
112483
|
const { lstatSync: lstat$1, readFileSync: readFile$5 } = require("fs");
|
|
112419
|
-
const { basename: basename$3, dirname: dirname$
|
|
112484
|
+
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$9, relative, resolve: resolve$6, sep } = require("path");
|
|
112420
112485
|
const { log } = require_lib$29();
|
|
112421
112486
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112422
112487
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112488,7 +112553,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112488
112553
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112489
112554
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112490
112555
|
if (path$47 !== prefix && workspaces.includes(path$47)) {
|
|
112491
|
-
const relpath = relative(options.prefix, dirname$
|
|
112556
|
+
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
112492
112557
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112493
112558
|
} else if (path$47 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112494
112559
|
}
|
|
@@ -112667,7 +112732,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112667
112732
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112668
112733
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112669
112734
|
const { log } = require_lib$29();
|
|
112670
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112735
|
+
const { resolve: resolve$5, dirname: dirname$5, delimiter: delimiter$2 } = require("path");
|
|
112671
112736
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112672
112737
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112673
112738
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$2)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$2);
|
|
@@ -112685,7 +112750,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112685
112750
|
do {
|
|
112686
112751
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112687
112752
|
pp = p;
|
|
112688
|
-
p = dirname$
|
|
112753
|
+
p = dirname$5(p);
|
|
112689
112754
|
} while (p !== pp);
|
|
112690
112755
|
pathArr.push(nodeGypPath, PATH);
|
|
112691
112756
|
const pathVal = pathArr.join(delimiter$2);
|
|
@@ -142036,8 +142101,8 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142036
142101
|
//#endregion
|
|
142037
142102
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142038
142103
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142039
|
-
const { basename: basename$2, dirname: dirname$
|
|
142040
|
-
const { rm: rm$4, mkdir: mkdir$
|
|
142104
|
+
const { basename: basename$2, dirname: dirname$4 } = require("node:path");
|
|
142105
|
+
const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
142041
142106
|
const PackageJson = require_lib$18();
|
|
142042
142107
|
const cacache = require_lib$14();
|
|
142043
142108
|
const fsm = require_lib$13();
|
|
@@ -142085,7 +142150,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142085
142150
|
this.npmBin = opts.npmBin || "npm";
|
|
142086
142151
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
142087
142152
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
142088
|
-
`--cache=${dirname$
|
|
142153
|
+
`--cache=${dirname$4(this.cache)}`,
|
|
142089
142154
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
142090
142155
|
`--prefer-online=${!!this.preferOnline}`,
|
|
142091
142156
|
`--offline=${!!this.offline}`,
|
|
@@ -142221,7 +142286,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142221
142286
|
}
|
|
142222
142287
|
async #mkdir(dest) {
|
|
142223
142288
|
await this.#empty(dest);
|
|
142224
|
-
return await mkdir$
|
|
142289
|
+
return await mkdir$3(dest, { recursive: true });
|
|
142225
142290
|
}
|
|
142226
142291
|
async extract(dest) {
|
|
142227
142292
|
await this.#mkdir(dest);
|
|
@@ -142241,7 +142306,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142241
142306
|
}));
|
|
142242
142307
|
}
|
|
142243
142308
|
async tarballFile(dest) {
|
|
142244
|
-
await mkdir$
|
|
142309
|
+
await mkdir$3(dirname$4(dest), { recursive: true });
|
|
142245
142310
|
return this.#toFile(dest);
|
|
142246
142311
|
}
|
|
142247
142312
|
#extract(dest, tarball) {
|
|
@@ -150666,7 +150731,7 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150666
150731
|
const { promisify } = require("util");
|
|
150667
150732
|
const path$3 = require("path");
|
|
150668
150733
|
const { createHash } = require("crypto");
|
|
150669
|
-
const { realpath
|
|
150734
|
+
const { realpath, lstat, createReadStream, readdir: readdir$2 } = require("fs");
|
|
150670
150735
|
const url = require("url");
|
|
150671
150736
|
const slasher = require_glob_slash();
|
|
150672
150737
|
const minimatch = require_minimatch();
|
|
@@ -150989,7 +151054,7 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150989
151054
|
};
|
|
150990
151055
|
const getHandlers = (methods) => Object.assign({
|
|
150991
151056
|
lstat: promisify(lstat),
|
|
150992
|
-
realpath: promisify(realpath
|
|
151057
|
+
realpath: promisify(realpath),
|
|
150993
151058
|
createReadStream,
|
|
150994
151059
|
readdir: promisify(readdir$2),
|
|
150995
151060
|
sendError
|
|
@@ -151128,8 +151193,6 @@ const sendStartupProgress = (message) => {
|
|
|
151128
151193
|
};
|
|
151129
151194
|
//#endregion
|
|
151130
151195
|
//#region ../../packages/core-node/src/utils/remote.ts
|
|
151131
|
-
const DEFAULT_NODE_VERSION = "24.14.1";
|
|
151132
|
-
const DEFAULT_PNPM_VERSION = "10.12.0";
|
|
151133
151196
|
function isPackageComplete(packageDir) {
|
|
151134
151197
|
return (0, node_fs.existsSync)((0, node_path.join)(packageDir, "package.json"));
|
|
151135
151198
|
}
|
|
@@ -151321,7 +151384,7 @@ async function ensureNodeJS(context, version = DEFAULT_NODE_VERSION) {
|
|
|
151321
151384
|
const extension = isWindows ? "zip" : "tar.gz";
|
|
151322
151385
|
const fileName = `node-v${version}-${platform === "osx" ? "darwin" : platform}-${arch}.${extension}`;
|
|
151323
151386
|
const downloadUrl = `https://nodejs.org/dist/v${version}/${fileName}`;
|
|
151324
|
-
const tempDir = await
|
|
151387
|
+
const tempDir = await context.createTempFolder("node-download-");
|
|
151325
151388
|
const archivePath = (0, node_path.join)(tempDir, fileName);
|
|
151326
151389
|
sendStartupProgress(`Downloading Node.js v${version}...`);
|
|
151327
151390
|
console.log(`Downloading Node.js from ${downloadUrl}...`);
|
|
@@ -151556,15 +151619,6 @@ if (isDev && projectRoot) {
|
|
|
151556
151619
|
//#region ../plugin-core/src/pipelab.ts
|
|
151557
151620
|
const createActionRunner = (runner) => runner;
|
|
151558
151621
|
//#endregion
|
|
151559
|
-
//#region ../plugin-core/src/fs-utils.ts
|
|
151560
|
-
const generateTempFolder = async (base) => {
|
|
151561
|
-
const targetBase = base || (0, node_os.tmpdir)();
|
|
151562
|
-
await (0, node_fs_promises.mkdir)(targetBase, { recursive: true });
|
|
151563
|
-
const realPath = await (0, node_fs_promises.realpath)(targetBase);
|
|
151564
|
-
console.log("join", (0, node_path.join)(realPath, "pipelab-"));
|
|
151565
|
-
return await (0, node_fs_promises.mkdtemp)((0, node_path.join)(realPath, "pipelab-"));
|
|
151566
|
-
};
|
|
151567
|
-
//#endregion
|
|
151568
151622
|
//#region ../plugin-core/src/node-utils.ts
|
|
151569
151623
|
const fileExists = async (path) => {
|
|
151570
151624
|
try {
|
|
@@ -152092,7 +152146,7 @@ const forge = async (action, appFolder, { cwd, log, inputs, setOutput, paths, ab
|
|
|
152092
152146
|
log("Building electron");
|
|
152093
152147
|
if (action !== "preview") await detectRuntime(appFolder);
|
|
152094
152148
|
const { modules, node } = paths;
|
|
152095
|
-
const destinationFolder = await
|
|
152149
|
+
const destinationFolder = await context.createTempFolder("electron-forge-");
|
|
152096
152150
|
log(`Staging build in ${destinationFolder}`);
|
|
152097
152151
|
try {
|
|
152098
152152
|
const forge = (0, node_path.join)(destinationFolder, "node_modules", "@electron-forge", "cli", "dist", "electron-forge.js");
|