@bamboocss/dev 1.56.7 → 1.57.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/dist/cli-default.cjs +130 -41
- package/dist/cli-default.mjs +117 -28
- package/dist/cli-main.cjs +128 -39
- package/dist/cli-main.mjs +116 -27
- package/dist/errors.cjs +2 -2
- package/dist/errors.mjs +1 -1
- package/dist/{interactive-C2dqO9fu.mjs → interactive-BsLF_8Nh.mjs} +1 -1
- package/dist/{interactive-DkhMVz6R.cjs → interactive-DQdQtZSY.cjs} +1 -1
- package/dist/interactive.cjs +1 -1
- package/dist/interactive.mjs +1 -1
- package/dist/{mcp-init-DzE4FgdX.cjs → mcp-init-C5_g6W-U.cjs} +9 -9
- package/dist/{mcp-init-NdVHT1_H.mjs → mcp-init-CCfzkOPO.mjs} +3 -3
- package/dist/{mcp-init-DAn6FsEJ.cjs → mcp-init-DPvpdzws.cjs} +8 -8
- package/dist/{mcp-init-MPfnXfaE.mjs → mcp-init-DbWbUOwg.mjs} +2 -2
- package/dist/{package-DtugIbci.mjs → package-Cqdhaelc.mjs} +1 -1
- package/dist/{package-bb-vfRkr.cjs → package-DWYvR3kk.cjs} +1 -1
- package/dist/types.d.cts +10 -2
- package/dist/types.d.mts +10 -2
- package/dist/{update-notifier-Bne2G0qU.cjs → update-notifier-BiU20Gpu.cjs} +74 -78
- package/dist/{update-notifier-SlOlBi-b.mjs → update-notifier-Cv5chHXk.mjs} +101 -103
- package/package.json +11 -8
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-C2EiDwsr.cjs");
|
|
2
|
-
let
|
|
3
|
-
|
|
2
|
+
let node_fs = require("node:fs");
|
|
3
|
+
node_fs = require_chunk.__toESM(node_fs, 1);
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
node_path = require_chunk.__toESM(node_path, 1);
|
|
4
6
|
let node_process = require("node:process");
|
|
5
7
|
node_process = require_chunk.__toESM(node_process, 1);
|
|
6
8
|
let node_child_process = require("node:child_process");
|
|
7
9
|
let node_url = require("node:url");
|
|
8
|
-
let node_path = require("node:path");
|
|
9
|
-
node_path = require_chunk.__toESM(node_path, 1);
|
|
10
10
|
let node_util = require("node:util");
|
|
11
11
|
let node_os = require("node:os");
|
|
12
12
|
node_os = require_chunk.__toESM(node_os, 1);
|
|
13
|
-
let os = require("os");
|
|
14
|
-
os = require_chunk.__toESM(os, 1);
|
|
15
|
-
let node_fs = require("node:fs");
|
|
16
|
-
node_fs = require_chunk.__toESM(node_fs, 1);
|
|
17
13
|
let node_tty = require("node:tty");
|
|
18
14
|
node_tty = require_chunk.__toESM(node_tty, 1);
|
|
19
15
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
20
16
|
var require_polyfills$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
21
|
-
var constants$1 = require("constants");
|
|
17
|
+
var constants$1 = require("node:constants");
|
|
22
18
|
var origCwd = process.cwd;
|
|
23
19
|
var cwd = null;
|
|
24
20
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -270,7 +266,7 @@ var require_polyfills$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
270
266
|
//#endregion
|
|
271
267
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
272
268
|
var require_legacy_streams$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
273
|
-
var Stream$2 = require("stream").Stream;
|
|
269
|
+
var Stream$2 = require("node:stream").Stream;
|
|
274
270
|
module.exports = legacy;
|
|
275
271
|
function legacy(fs) {
|
|
276
272
|
return {
|
|
@@ -376,11 +372,11 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
376
372
|
//#endregion
|
|
377
373
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
378
374
|
var require_graceful_fs$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
379
|
-
var fs$9 = require("fs");
|
|
375
|
+
var fs$9 = require("node:fs");
|
|
380
376
|
var polyfills = require_polyfills$1();
|
|
381
377
|
var legacy = require_legacy_streams$1();
|
|
382
378
|
var clone = require_clone$1();
|
|
383
|
-
var util$1 = require("util");
|
|
379
|
+
var util$1 = require("node:util");
|
|
384
380
|
/* istanbul ignore next - node 0.x polyfill */
|
|
385
381
|
var gracefulQueue;
|
|
386
382
|
var previousSymbol;
|
|
@@ -427,7 +423,7 @@ var require_graceful_fs$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
427
423
|
})(fs$9.closeSync);
|
|
428
424
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
429
425
|
debug(fs$9[gracefulQueue]);
|
|
430
|
-
require("assert").equal(fs$9[gracefulQueue].length, 0);
|
|
426
|
+
require("node:assert").equal(fs$9[gracefulQueue].length, 0);
|
|
431
427
|
});
|
|
432
428
|
}
|
|
433
429
|
if (!global[gracefulQueue]) publishQueue(global, fs$9[gracefulQueue]);
|
|
@@ -732,12 +728,12 @@ var require_graceful_fs$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
732
728
|
//#endregion
|
|
733
729
|
//#region ../../node_modules/.pnpm/xdg-basedir@5.1.0/node_modules/xdg-basedir/index.js
|
|
734
730
|
var import_graceful_fs = /* @__PURE__ */ require_chunk.__toESM(require_graceful_fs$1(), 1);
|
|
735
|
-
const homeDirectory =
|
|
731
|
+
const homeDirectory = node_os.default.homedir();
|
|
736
732
|
const { env: env$2 } = process;
|
|
737
|
-
const xdgData = env$2.XDG_DATA_HOME || (homeDirectory ?
|
|
738
|
-
const xdgConfig = env$2.XDG_CONFIG_HOME || (homeDirectory ?
|
|
739
|
-
env$2.XDG_STATE_HOME || homeDirectory &&
|
|
740
|
-
env$2.XDG_CACHE_HOME || homeDirectory &&
|
|
733
|
+
const xdgData = env$2.XDG_DATA_HOME || (homeDirectory ? node_path.default.join(homeDirectory, ".local", "share") : void 0);
|
|
734
|
+
const xdgConfig = env$2.XDG_CONFIG_HOME || (homeDirectory ? node_path.default.join(homeDirectory, ".config") : void 0);
|
|
735
|
+
env$2.XDG_STATE_HOME || homeDirectory && node_path.default.join(homeDirectory, ".local", "state");
|
|
736
|
+
env$2.XDG_CACHE_HOME || homeDirectory && node_path.default.join(homeDirectory, ".cache");
|
|
741
737
|
env$2.XDG_RUNTIME_DIR;
|
|
742
738
|
const xdgDataDirectories = (env$2.XDG_DATA_DIRS || "/usr/local/share/:/usr/share/").split(":");
|
|
743
739
|
if (xdgData) xdgDataDirectories.unshift(xdgData);
|
|
@@ -3018,9 +3014,9 @@ var require_strip_json_comments = /* @__PURE__ */ require_chunk.__commonJSMin(((
|
|
|
3018
3014
|
//#endregion
|
|
3019
3015
|
//#region ../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js
|
|
3020
3016
|
var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
3021
|
-
var fs$6 = require("fs");
|
|
3017
|
+
var fs$6 = require("node:fs");
|
|
3022
3018
|
var ini = require_ini$1();
|
|
3023
|
-
var path$
|
|
3019
|
+
var path$10 = require("node:path");
|
|
3024
3020
|
var stripJsonComments = require_strip_json_comments();
|
|
3025
3021
|
var parse = exports.parse = function(content) {
|
|
3026
3022
|
if (/^\s*{/.test(content)) return JSON.parse(stripJsonComments(content));
|
|
@@ -3031,7 +3027,7 @@ var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
3031
3027
|
return arg != null;
|
|
3032
3028
|
});
|
|
3033
3029
|
for (var i in args) if ("string" !== typeof args[i]) return;
|
|
3034
|
-
var file = path$
|
|
3030
|
+
var file = path$10.join.apply(null, args);
|
|
3035
3031
|
try {
|
|
3036
3032
|
return fs$6.readFileSync(file, "utf-8");
|
|
3037
3033
|
} catch (err) {
|
|
@@ -3061,14 +3057,14 @@ var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
3061
3057
|
return obj;
|
|
3062
3058
|
};
|
|
3063
3059
|
exports.find = function() {
|
|
3064
|
-
var rel = path$
|
|
3060
|
+
var rel = path$10.join.apply(null, [].slice.call(arguments));
|
|
3065
3061
|
function find(start, rel) {
|
|
3066
|
-
var file = path$
|
|
3062
|
+
var file = path$10.join(start, rel);
|
|
3067
3063
|
try {
|
|
3068
3064
|
fs$6.statSync(file);
|
|
3069
3065
|
return file;
|
|
3070
3066
|
} catch (err) {
|
|
3071
|
-
if (path$
|
|
3067
|
+
if (path$10.dirname(start) !== start) return find(path$10.dirname(start), rel);
|
|
3072
3068
|
}
|
|
3073
3069
|
}
|
|
3074
3070
|
return find(process.cwd(), rel);
|
|
@@ -3346,7 +3342,7 @@ var require_minimist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
3346
3342
|
//#region ../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/index.js
|
|
3347
3343
|
var require_rc = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
3348
3344
|
var cc = require_utils();
|
|
3349
|
-
var join = require("path").join;
|
|
3345
|
+
var join = require("node:path").join;
|
|
3350
3346
|
var deepExtend = require_deep_extend();
|
|
3351
3347
|
var etc = "/etc";
|
|
3352
3348
|
var win = process.platform === "win32";
|
|
@@ -3398,7 +3394,7 @@ function registryUrl(scope) {
|
|
|
3398
3394
|
//#endregion
|
|
3399
3395
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js
|
|
3400
3396
|
var require_polyfills = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
3401
|
-
var constants = require("constants");
|
|
3397
|
+
var constants = require("node:constants");
|
|
3402
3398
|
var origCwd = process.cwd;
|
|
3403
3399
|
var cwd = null;
|
|
3404
3400
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -3650,7 +3646,7 @@ var require_polyfills = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
3650
3646
|
//#endregion
|
|
3651
3647
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js
|
|
3652
3648
|
var require_legacy_streams = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
3653
|
-
var Stream$1 = require("stream").Stream;
|
|
3649
|
+
var Stream$1 = require("node:stream").Stream;
|
|
3654
3650
|
module.exports = legacy;
|
|
3655
3651
|
function legacy(fs) {
|
|
3656
3652
|
return {
|
|
@@ -3756,11 +3752,11 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
3756
3752
|
//#endregion
|
|
3757
3753
|
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js
|
|
3758
3754
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
3759
|
-
var fs$5 = require("fs");
|
|
3755
|
+
var fs$5 = require("node:fs");
|
|
3760
3756
|
var polyfills = require_polyfills();
|
|
3761
3757
|
var legacy = require_legacy_streams();
|
|
3762
3758
|
var clone = require_clone();
|
|
3763
|
-
var util = require("util");
|
|
3759
|
+
var util = require("node:util");
|
|
3764
3760
|
/* istanbul ignore next - node 0.x polyfill */
|
|
3765
3761
|
var gracefulQueue;
|
|
3766
3762
|
var previousSymbol;
|
|
@@ -3807,7 +3803,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
3807
3803
|
})(fs$5.closeSync);
|
|
3808
3804
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
3809
3805
|
debug(fs$5[gracefulQueue]);
|
|
3810
|
-
require("assert").equal(fs$5[gracefulQueue].length, 0);
|
|
3806
|
+
require("node:assert").equal(fs$5[gracefulQueue].length, 0);
|
|
3811
3807
|
});
|
|
3812
3808
|
}
|
|
3813
3809
|
if (!global[gracefulQueue]) publishQueue(global, fs$5[gracefulQueue]);
|
|
@@ -4237,7 +4233,7 @@ var require_proto_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
4237
4233
|
//#endregion
|
|
4238
4234
|
//#region ../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js
|
|
4239
4235
|
var require_config_chain = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
4240
|
-
var ProtoList = require_proto_list(), path$
|
|
4236
|
+
var ProtoList = require_proto_list(), path$9 = require("node:path"), fs$4 = require("node:fs"), ini$1 = require_ini$1(), EE = require("node:events").EventEmitter, url$1 = require("node:url"), http = require("node:http");
|
|
4241
4237
|
var exports = module.exports = function() {
|
|
4242
4238
|
var args = [].slice.call(arguments), conf = new ConfigChain();
|
|
4243
4239
|
while (args.length) {
|
|
@@ -4247,14 +4243,14 @@ var require_config_chain = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
4247
4243
|
return conf;
|
|
4248
4244
|
};
|
|
4249
4245
|
exports.find = function() {
|
|
4250
|
-
var rel = path$
|
|
4246
|
+
var rel = path$9.join.apply(null, [].slice.call(arguments));
|
|
4251
4247
|
function find(start, rel) {
|
|
4252
|
-
var file = path$
|
|
4248
|
+
var file = path$9.join(start, rel);
|
|
4253
4249
|
try {
|
|
4254
4250
|
fs$4.statSync(file);
|
|
4255
4251
|
return file;
|
|
4256
4252
|
} catch (err) {
|
|
4257
|
-
if (path$
|
|
4253
|
+
if (path$9.dirname(start) !== start) return find(path$9.dirname(start), rel);
|
|
4258
4254
|
}
|
|
4259
4255
|
}
|
|
4260
4256
|
return find(__dirname, rel);
|
|
@@ -4278,7 +4274,7 @@ var require_config_chain = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
4278
4274
|
var args = [].slice.call(arguments).filter(function(arg) {
|
|
4279
4275
|
return arg != null;
|
|
4280
4276
|
});
|
|
4281
|
-
var file = path$
|
|
4277
|
+
var file = path$9.join.apply(null, args);
|
|
4282
4278
|
var content;
|
|
4283
4279
|
try {
|
|
4284
4280
|
content = fs$4.readFileSync(file, "utf-8");
|
|
@@ -4506,8 +4502,8 @@ var require_dist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4506
4502
|
//#endregion
|
|
4507
4503
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/util.js
|
|
4508
4504
|
var require_util = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
4509
|
-
const fs$3 = require("fs");
|
|
4510
|
-
const path$
|
|
4505
|
+
const fs$3 = require("node:fs");
|
|
4506
|
+
const path$8 = require("node:path");
|
|
4511
4507
|
const { envReplace } = require_dist();
|
|
4512
4508
|
const parseKey = (key) => {
|
|
4513
4509
|
if (typeof key !== "string") return key;
|
|
@@ -4516,7 +4512,7 @@ var require_util = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4516
4512
|
const parseField = (types, field, key) => {
|
|
4517
4513
|
if (typeof field !== "string") return field;
|
|
4518
4514
|
const typeList = [].concat(types[key]);
|
|
4519
|
-
const isPath = typeList.indexOf(path$
|
|
4515
|
+
const isPath = typeList.indexOf(path$8) !== -1;
|
|
4520
4516
|
const isBool = typeList.indexOf(Boolean) !== -1;
|
|
4521
4517
|
const isString = typeList.indexOf(String) !== -1;
|
|
4522
4518
|
const isNumber = typeList.indexOf(Number) !== -1;
|
|
@@ -4535,17 +4531,17 @@ var require_util = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4535
4531
|
}
|
|
4536
4532
|
field = envReplace(field, process.env);
|
|
4537
4533
|
if (isPath) {
|
|
4538
|
-
if ((process.platform === "win32" ? /^~(\/|\\)/ : /^~\//).test(field) && process.env.HOME) field = path$
|
|
4539
|
-
field = path$
|
|
4534
|
+
if ((process.platform === "win32" ? /^~(\/|\\)/ : /^~\//).test(field) && process.env.HOME) field = path$8.resolve(process.env.HOME, field.substr(2));
|
|
4535
|
+
field = path$8.resolve(field);
|
|
4540
4536
|
}
|
|
4541
4537
|
if (isNumber && !isNaN(field)) field = Number(field);
|
|
4542
4538
|
return field;
|
|
4543
4539
|
};
|
|
4544
4540
|
const findPrefix = (name) => {
|
|
4545
|
-
name = path$
|
|
4541
|
+
name = path$8.resolve(name);
|
|
4546
4542
|
let walkedUp = false;
|
|
4547
|
-
while (path$
|
|
4548
|
-
name = path$
|
|
4543
|
+
while (path$8.basename(name) === "node_modules") {
|
|
4544
|
+
name = path$8.dirname(name);
|
|
4549
4545
|
walkedUp = true;
|
|
4550
4546
|
}
|
|
4551
4547
|
if (walkedUp) return name;
|
|
@@ -4554,7 +4550,7 @@ var require_util = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4554
4550
|
try {
|
|
4555
4551
|
const files = fs$3.readdirSync(name);
|
|
4556
4552
|
if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) return name;
|
|
4557
|
-
const dirname = path$
|
|
4553
|
+
const dirname = path$8.dirname(name);
|
|
4558
4554
|
if (dirname === name) return original;
|
|
4559
4555
|
return find(dirname, original);
|
|
4560
4556
|
} catch (error) {
|
|
@@ -4575,9 +4571,9 @@ var require_util = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4575
4571
|
//#endregion
|
|
4576
4572
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/types.js
|
|
4577
4573
|
var require_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
4578
|
-
const path$
|
|
4579
|
-
const Stream = require("stream").Stream;
|
|
4580
|
-
const url = require("url");
|
|
4574
|
+
const path$7 = require("node:path");
|
|
4575
|
+
const Stream = require("node:stream").Stream;
|
|
4576
|
+
const url = require("node:url");
|
|
4581
4577
|
const Umask = () => {};
|
|
4582
4578
|
const getLocalAddresses = () => [];
|
|
4583
4579
|
const semver = () => {};
|
|
@@ -4608,8 +4604,8 @@ var require_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4608
4604
|
String,
|
|
4609
4605
|
Array
|
|
4610
4606
|
],
|
|
4611
|
-
cafile: path$
|
|
4612
|
-
cache: path$
|
|
4607
|
+
cafile: path$7,
|
|
4608
|
+
cache: path$7,
|
|
4613
4609
|
"cache-lock-stale": Number,
|
|
4614
4610
|
"cache-lock-retries": Number,
|
|
4615
4611
|
"cache-lock-wait": Number,
|
|
@@ -4637,7 +4633,7 @@ var require_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4637
4633
|
"git-tag-version": Boolean,
|
|
4638
4634
|
"commit-hooks": Boolean,
|
|
4639
4635
|
global: Boolean,
|
|
4640
|
-
globalconfig: path$
|
|
4636
|
+
globalconfig: path$7,
|
|
4641
4637
|
"global-style": Boolean,
|
|
4642
4638
|
group: [Number, String],
|
|
4643
4639
|
"https-proxy": [null, url],
|
|
@@ -4647,7 +4643,7 @@ var require_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4647
4643
|
"if-present": Boolean,
|
|
4648
4644
|
"ignore-prepublish": Boolean,
|
|
4649
4645
|
"ignore-scripts": Boolean,
|
|
4650
|
-
"init-module": path$
|
|
4646
|
+
"init-module": path$7,
|
|
4651
4647
|
"init-author-name": String,
|
|
4652
4648
|
"init-author-email": String,
|
|
4653
4649
|
"init-author-url": ["", url],
|
|
@@ -4698,7 +4694,7 @@ var require_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4698
4694
|
parseable: Boolean,
|
|
4699
4695
|
"prefer-offline": Boolean,
|
|
4700
4696
|
"prefer-online": Boolean,
|
|
4701
|
-
prefix: path$
|
|
4697
|
+
prefix: path$7,
|
|
4702
4698
|
production: Boolean,
|
|
4703
4699
|
progress: Boolean,
|
|
4704
4700
|
proxy: [
|
|
@@ -4743,12 +4739,12 @@ var require_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4743
4739
|
"strict-ssl": Boolean,
|
|
4744
4740
|
tag: String,
|
|
4745
4741
|
timing: Boolean,
|
|
4746
|
-
tmp: path$
|
|
4742
|
+
tmp: path$7,
|
|
4747
4743
|
unicode: Boolean,
|
|
4748
4744
|
"unsafe-perm": Boolean,
|
|
4749
4745
|
usage: Boolean,
|
|
4750
4746
|
user: [Number, String],
|
|
4751
|
-
userconfig: path$
|
|
4747
|
+
userconfig: path$7,
|
|
4752
4748
|
umask: Umask,
|
|
4753
4749
|
version: Boolean,
|
|
4754
4750
|
"tag-version-prefix": String,
|
|
@@ -4761,8 +4757,8 @@ var require_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
4761
4757
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/conf.js
|
|
4762
4758
|
var require_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
4763
4759
|
const { readCAFileSync } = require_dist$1();
|
|
4764
|
-
const fs$2 = require("fs");
|
|
4765
|
-
const path$
|
|
4760
|
+
const fs$2 = require("node:fs");
|
|
4761
|
+
const path$6 = require("node:path");
|
|
4766
4762
|
const { ConfigChain } = require_config_chain();
|
|
4767
4763
|
const envKeyToSetting = require_envKeyToSetting();
|
|
4768
4764
|
const util = require_util();
|
|
@@ -4830,7 +4826,7 @@ var require_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
4830
4826
|
this.set("prefix", prefix);
|
|
4831
4827
|
},
|
|
4832
4828
|
get: () => {
|
|
4833
|
-
return path$
|
|
4829
|
+
return path$6.resolve(this.get("prefix"));
|
|
4834
4830
|
}
|
|
4835
4831
|
});
|
|
4836
4832
|
let p;
|
|
@@ -4843,7 +4839,7 @@ var require_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
4843
4839
|
return p;
|
|
4844
4840
|
}
|
|
4845
4841
|
});
|
|
4846
|
-
if (Object.prototype.hasOwnProperty.call(cli, "prefix")) p = path$
|
|
4842
|
+
if (Object.prototype.hasOwnProperty.call(cli, "prefix")) p = path$6.resolve(cli.prefix);
|
|
4847
4843
|
else try {
|
|
4848
4844
|
p = util.findPrefix(process.cwd());
|
|
4849
4845
|
} catch (error) {
|
|
@@ -4863,7 +4859,7 @@ var require_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
4863
4859
|
defConf.user = Number(process.env.SUDO_UID);
|
|
4864
4860
|
return;
|
|
4865
4861
|
}
|
|
4866
|
-
const prefix = path$
|
|
4862
|
+
const prefix = path$6.resolve(this.get("prefix"));
|
|
4867
4863
|
try {
|
|
4868
4864
|
defConf.user = fs$2.statSync(prefix).uid;
|
|
4869
4865
|
} catch (error) {
|
|
@@ -4889,9 +4885,9 @@ var require_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
4889
4885
|
//#endregion
|
|
4890
4886
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js
|
|
4891
4887
|
var require_defaults = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
4892
|
-
const os$
|
|
4893
|
-
const path$
|
|
4894
|
-
const temp = os$
|
|
4888
|
+
const os$1 = require("node:os");
|
|
4889
|
+
const path$5 = require("node:path");
|
|
4890
|
+
const temp = os$1.tmpdir();
|
|
4895
4891
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
4896
4892
|
const hasUnicode = () => true;
|
|
4897
4893
|
const isWindows = process.platform === "win32";
|
|
@@ -4900,21 +4896,21 @@ var require_defaults = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
4900
4896
|
shell: () => isWindows ? process.env.COMSPEC || "cmd.exe" : process.env.SHELL || "/bin/bash"
|
|
4901
4897
|
};
|
|
4902
4898
|
const umask = { fromString: () => process.umask() };
|
|
4903
|
-
let home = os$
|
|
4899
|
+
let home = os$1.homedir();
|
|
4904
4900
|
if (home) process.env.HOME = home;
|
|
4905
|
-
else home = path$
|
|
4901
|
+
else home = path$5.resolve(temp, "npm-" + uidOrPid);
|
|
4906
4902
|
const cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
|
|
4907
4903
|
const cacheRoot = process.platform === "win32" && process.env.APPDATA || home;
|
|
4908
|
-
const cache = path$
|
|
4904
|
+
const cache = path$5.resolve(cacheRoot, cacheExtra);
|
|
4909
4905
|
let defaults;
|
|
4910
4906
|
let globalPrefix;
|
|
4911
4907
|
Object.defineProperty(exports, "defaults", { get: function() {
|
|
4912
4908
|
if (defaults) return defaults;
|
|
4913
4909
|
if (process.env.PREFIX) globalPrefix = process.env.PREFIX;
|
|
4914
|
-
else if (process.platform === "win32") globalPrefix = path$
|
|
4910
|
+
else if (process.platform === "win32") globalPrefix = path$5.dirname(process.execPath);
|
|
4915
4911
|
else {
|
|
4916
|
-
globalPrefix = path$
|
|
4917
|
-
if (process.env.DESTDIR) globalPrefix = path$
|
|
4912
|
+
globalPrefix = path$5.dirname(path$5.dirname(process.execPath));
|
|
4913
|
+
if (process.env.DESTDIR) globalPrefix = path$5.join(process.env.DESTDIR, globalPrefix);
|
|
4918
4914
|
}
|
|
4919
4915
|
defaults = {
|
|
4920
4916
|
access: null,
|
|
@@ -4951,7 +4947,7 @@ var require_defaults = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
4951
4947
|
"git-tag-version": true,
|
|
4952
4948
|
"commit-hooks": true,
|
|
4953
4949
|
global: false,
|
|
4954
|
-
globalconfig: path$
|
|
4950
|
+
globalconfig: path$5.resolve(globalPrefix, "etc", "npmrc"),
|
|
4955
4951
|
"global-style": false,
|
|
4956
4952
|
group: process.platform === "win32" ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
|
|
4957
4953
|
"ham-it-up": false,
|
|
@@ -4959,7 +4955,7 @@ var require_defaults = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
4959
4955
|
"if-present": false,
|
|
4960
4956
|
"ignore-prepublish": false,
|
|
4961
4957
|
"ignore-scripts": false,
|
|
4962
|
-
"init-module": path$
|
|
4958
|
+
"init-module": path$5.resolve(home, ".npm-init.js"),
|
|
4963
4959
|
"init-author-name": "",
|
|
4964
4960
|
"init-author-email": "",
|
|
4965
4961
|
"init-author-url": "",
|
|
@@ -5029,7 +5025,7 @@ var require_defaults = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
5029
5025
|
"unsafe-perm": process.platform === "win32" || process.platform === "cygwin" || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
|
|
5030
5026
|
usage: false,
|
|
5031
5027
|
user: process.platform === "win32" ? 0 : "nobody",
|
|
5032
|
-
userconfig: path$
|
|
5028
|
+
userconfig: path$5.resolve(home, ".npmrc"),
|
|
5033
5029
|
umask: process.umask ? process.umask() : umask.fromString("022"),
|
|
5034
5030
|
version: false,
|
|
5035
5031
|
versions: false,
|
|
@@ -5042,7 +5038,7 @@ var require_defaults = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
5042
5038
|
//#endregion
|
|
5043
5039
|
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/index.js
|
|
5044
5040
|
var require_npm_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
5045
|
-
const path$
|
|
5041
|
+
const path$4 = require("node:path");
|
|
5046
5042
|
const Conf = require_conf();
|
|
5047
5043
|
const _defaults = require_defaults();
|
|
5048
5044
|
module.exports = (opts, types, defaults) => {
|
|
@@ -5063,23 +5059,23 @@ var require_npm_conf = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
5063
5059
|
* According to https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/npm.js#L258
|
|
5064
5060
|
* and https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/config/core.js#L92
|
|
5065
5061
|
*/
|
|
5066
|
-
warnings.push(conf.addFile(path$
|
|
5062
|
+
warnings.push(conf.addFile(path$4.resolve(path$4.dirname(npmPath), "..", "npmrc"), "builtin"));
|
|
5067
5063
|
}
|
|
5068
5064
|
conf.addEnv();
|
|
5069
5065
|
conf.loadPrefix();
|
|
5070
|
-
const projectConf = path$
|
|
5066
|
+
const projectConf = path$4.resolve(conf.localPrefix, ".npmrc");
|
|
5071
5067
|
const userConf = conf.get("userconfig");
|
|
5072
5068
|
if (!conf.get("global") && projectConf !== userConf) warnings.push(conf.addFile(projectConf, "project"));
|
|
5073
5069
|
else conf.add({}, "project");
|
|
5074
5070
|
if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
|
|
5075
|
-
const workspaceConf = path$
|
|
5071
|
+
const workspaceConf = path$4.resolve(conf.get("workspace-prefix"), ".npmrc");
|
|
5076
5072
|
warnings.push(conf.addFile(workspaceConf, "workspace"));
|
|
5077
5073
|
}
|
|
5078
5074
|
warnings.push(conf.addFile(conf.get("userconfig"), "user"));
|
|
5079
5075
|
if (conf.get("prefix")) {
|
|
5080
|
-
const etc = path$
|
|
5081
|
-
conf.root.globalconfig = path$
|
|
5082
|
-
conf.root.globalignorefile = path$
|
|
5076
|
+
const etc = path$4.resolve(conf.get("prefix"), "etc");
|
|
5077
|
+
conf.root.globalconfig = path$4.resolve(etc, "npmrc");
|
|
5078
|
+
conf.root.globalignorefile = path$4.resolve(etc, "npmignore");
|
|
5083
5079
|
}
|
|
5084
5080
|
warnings.push(conf.addFile(conf.get("globalconfig"), "global"));
|
|
5085
5081
|
conf.loadUser();
|