@shopify/create-app 3.82.1 → 3.83.1
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/{chunk-75QMAARJ.js → chunk-EU5PDVVS.js} +799 -1168
- package/dist/{chunk-ZIXYVUD6.js → chunk-GDQXK7SS.js} +5 -5
- package/dist/{chunk-2YVW3FGK.js → chunk-H3GWNOGA.js} +7817 -11862
- package/dist/chunk-LABBARNJ.js +76 -0
- package/dist/{chunk-ILI5X6PP.js → chunk-O4KAJGU5.js} +2 -2
- package/dist/{chunk-H2RMSP56.js → chunk-ROHZIBAY.js} +13 -11
- package/dist/{chunk-4ZPIFK7H.js → chunk-S3IDOXGB.js} +5 -3
- package/dist/{chunk-6OWK7KKO.js → chunk-ULXZG5FG.js} +6 -6
- package/dist/{chunk-TNRWP2XN.js → chunk-XM645PFF.js} +5 -5
- package/dist/{custom-oclif-loader-2KUDQ6HQ.js → custom-oclif-loader-7EOQDX6M.js} +4 -6
- package/dist/{chunk-VMUIREUQ.js → del-4XMQNWFE.js} +364 -72
- package/dist/{error-handler-SWZ4Y54O.js → error-handler-C6Y3FZJC.js} +8 -10
- package/dist/hooks/postrun.js +6 -8
- package/dist/hooks/prerun.js +6 -8
- package/dist/{http-proxy-LHSVRGJ5.js → http-proxy-node16-T623PGD4.js} +37 -29
- package/dist/index.js +36083 -36891
- package/dist/lib-CLQ247I5.js +9 -0
- package/dist/{local-KOMGI74N.js → local-OQFLNNSH.js} +4 -6
- package/dist/{node-package-manager-HDKMIXR2.js → node-package-manager-QPXWQ6QR.js} +5 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-2DQEYOWO.js → ui-CS3NGQRA.js} +4 -6
- package/oclif.manifest.json +1 -1
- package/package.json +4 -5
- package/dist/del-MOZRBB7Y.js +0 -374
- package/dist/lib-UJ7YNLH4.js +0 -11
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_glob
|
|
3
|
+
} from "./chunk-O4KAJGU5.js";
|
|
4
|
+
import "./chunk-SHWOPMLQ.js";
|
|
5
|
+
import {
|
|
6
|
+
require_graceful_fs
|
|
7
|
+
} from "./chunk-75LV6AQS.js";
|
|
8
|
+
import {
|
|
9
|
+
require_indent_string
|
|
10
|
+
} from "./chunk-LABBARNJ.js";
|
|
1
11
|
import {
|
|
2
12
|
require_merge2,
|
|
3
13
|
require_out
|
|
4
14
|
} from "./chunk-CTFDRWUN.js";
|
|
15
|
+
import {
|
|
16
|
+
require_is_glob
|
|
17
|
+
} from "./chunk-7IK72W75.js";
|
|
5
18
|
import {
|
|
6
19
|
__commonJS,
|
|
7
20
|
__require,
|
|
8
21
|
init_cjs_shims
|
|
9
22
|
} from "./chunk-PKR7KJ6P.js";
|
|
10
23
|
|
|
11
|
-
// ../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js
|
|
12
|
-
var require_slash = __commonJS({
|
|
13
|
-
"../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(exports, module) {
|
|
14
|
-
"use strict";
|
|
15
|
-
init_cjs_shims();
|
|
16
|
-
module.exports = (path) => {
|
|
17
|
-
let isExtendedLengthPath = /^\\\\\?\\/.test(path), hasNonAscii = /[^\u0000-\u0080]+/.test(path);
|
|
18
|
-
return isExtendedLengthPath || hasNonAscii ? path : path.replace(/\\/g, "/");
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
24
|
// ../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js
|
|
24
25
|
var require_array_union = __commonJS({
|
|
25
26
|
"../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module) {
|
|
@@ -407,6 +408,18 @@ var require_ignore = __commonJS({
|
|
|
407
408
|
}
|
|
408
409
|
});
|
|
409
410
|
|
|
411
|
+
// ../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js
|
|
412
|
+
var require_slash = __commonJS({
|
|
413
|
+
"../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(exports, module) {
|
|
414
|
+
"use strict";
|
|
415
|
+
init_cjs_shims();
|
|
416
|
+
module.exports = (path) => {
|
|
417
|
+
let isExtendedLengthPath = /^\\\\\?\\/.test(path), hasNonAscii = /[^\u0000-\u0080]+/.test(path);
|
|
418
|
+
return isExtendedLengthPath || hasNonAscii ? path : path.replace(/\\/g, "/");
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
|
|
410
423
|
// ../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/gitignore.js
|
|
411
424
|
var require_gitignore = __commonJS({
|
|
412
425
|
"../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/gitignore.js"(exports, module) {
|
|
@@ -594,76 +607,355 @@ var require_globby = __commonJS({
|
|
|
594
607
|
}
|
|
595
608
|
});
|
|
596
609
|
|
|
597
|
-
// ../../node_modules/.pnpm/
|
|
598
|
-
var
|
|
599
|
-
"../../node_modules/.pnpm/
|
|
610
|
+
// ../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js
|
|
611
|
+
var require_is_path_cwd = __commonJS({
|
|
612
|
+
"../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module) {
|
|
600
613
|
"use strict";
|
|
601
614
|
init_cjs_shims();
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
...options
|
|
607
|
-
}, typeof string != "string")
|
|
608
|
-
throw new TypeError(
|
|
609
|
-
`Expected \`input\` to be a \`string\`, got \`${typeof string}\``
|
|
610
|
-
);
|
|
611
|
-
if (typeof count != "number")
|
|
612
|
-
throw new TypeError(
|
|
613
|
-
`Expected \`count\` to be a \`number\`, got \`${typeof count}\``
|
|
614
|
-
);
|
|
615
|
-
if (typeof options.indent != "string")
|
|
616
|
-
throw new TypeError(
|
|
617
|
-
`Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``
|
|
618
|
-
);
|
|
619
|
-
if (count === 0)
|
|
620
|
-
return string;
|
|
621
|
-
let regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
622
|
-
return string.replace(regex, options.indent.repeat(count));
|
|
615
|
+
var path = __require("path");
|
|
616
|
+
module.exports = (path_) => {
|
|
617
|
+
let cwd = process.cwd();
|
|
618
|
+
return path_ = path.resolve(path_), process.platform === "win32" && (cwd = cwd.toLowerCase(), path_ = path_.toLowerCase()), path_ === cwd;
|
|
623
619
|
};
|
|
624
620
|
}
|
|
625
621
|
});
|
|
626
622
|
|
|
627
|
-
// ../../node_modules/.pnpm/
|
|
628
|
-
var
|
|
629
|
-
"../../node_modules/.pnpm/
|
|
623
|
+
// ../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js
|
|
624
|
+
var require_is_path_inside = __commonJS({
|
|
625
|
+
"../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module) {
|
|
630
626
|
"use strict";
|
|
631
627
|
init_cjs_shims();
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
628
|
+
var path = __require("path");
|
|
629
|
+
module.exports = (childPath, parentPath) => {
|
|
630
|
+
let relation = path.relative(parentPath, childPath);
|
|
631
|
+
return !!(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
// ../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js
|
|
637
|
+
var require_rimraf = __commonJS({
|
|
638
|
+
"../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module) {
|
|
639
|
+
init_cjs_shims();
|
|
640
|
+
var assert = __require("assert"), path = __require("path"), fs = __require("fs"), glob;
|
|
641
|
+
try {
|
|
642
|
+
glob = require_glob();
|
|
643
|
+
} catch {
|
|
647
644
|
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
645
|
+
var defaultGlobOpts = {
|
|
646
|
+
nosort: !0,
|
|
647
|
+
silent: !0
|
|
648
|
+
}, timeout = 0, isWindows = process.platform === "win32", defaults = (options) => {
|
|
649
|
+
if ([
|
|
650
|
+
"unlink",
|
|
651
|
+
"chmod",
|
|
652
|
+
"stat",
|
|
653
|
+
"lstat",
|
|
654
|
+
"rmdir",
|
|
655
|
+
"readdir"
|
|
656
|
+
].forEach((m) => {
|
|
657
|
+
options[m] = options[m] || fs[m], m = m + "Sync", options[m] = options[m] || fs[m];
|
|
658
|
+
}), options.maxBusyTries = options.maxBusyTries || 3, options.emfileWait = options.emfileWait || 1e3, options.glob === !1 && (options.disableGlob = !0), options.disableGlob !== !0 && glob === void 0)
|
|
659
|
+
throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
|
|
660
|
+
options.disableGlob = options.disableGlob || !1, options.glob = options.glob || defaultGlobOpts;
|
|
661
|
+
}, rimraf = (p, options, cb) => {
|
|
662
|
+
typeof options == "function" && (cb = options, options = {}), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert.equal(typeof cb, "function", "rimraf: callback function required"), assert(options, "rimraf: invalid options argument provided"), assert.equal(typeof options, "object", "rimraf: options should be object"), defaults(options);
|
|
663
|
+
let busyTries = 0, errState = null, n = 0, next = (er) => {
|
|
664
|
+
errState = errState || er, --n === 0 && cb(errState);
|
|
665
|
+
}, afterGlob = (er, results) => {
|
|
666
|
+
if (er)
|
|
667
|
+
return cb(er);
|
|
668
|
+
if (n = results.length, n === 0)
|
|
669
|
+
return cb();
|
|
670
|
+
results.forEach((p2) => {
|
|
671
|
+
let CB = (er2) => {
|
|
672
|
+
if (er2) {
|
|
673
|
+
if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries)
|
|
674
|
+
return busyTries++, setTimeout(() => rimraf_(p2, options, CB), busyTries * 100);
|
|
675
|
+
if (er2.code === "EMFILE" && timeout < options.emfileWait)
|
|
676
|
+
return setTimeout(() => rimraf_(p2, options, CB), timeout++);
|
|
677
|
+
er2.code === "ENOENT" && (er2 = null);
|
|
678
|
+
}
|
|
679
|
+
timeout = 0, next(er2);
|
|
680
|
+
};
|
|
681
|
+
rimraf_(p2, options, CB);
|
|
682
|
+
});
|
|
683
|
+
};
|
|
684
|
+
if (options.disableGlob || !glob.hasMagic(p))
|
|
685
|
+
return afterGlob(null, [p]);
|
|
686
|
+
options.lstat(p, (er, stat) => {
|
|
687
|
+
if (!er)
|
|
688
|
+
return afterGlob(null, [p]);
|
|
689
|
+
glob(p, options.glob, afterGlob);
|
|
690
|
+
});
|
|
691
|
+
}, rimraf_ = (p, options, cb) => {
|
|
692
|
+
assert(p), assert(options), assert(typeof cb == "function"), options.lstat(p, (er, st) => {
|
|
693
|
+
if (er && er.code === "ENOENT")
|
|
694
|
+
return cb(null);
|
|
695
|
+
if (er && er.code === "EPERM" && isWindows && fixWinEPERM(p, options, er, cb), st && st.isDirectory())
|
|
696
|
+
return rmdir(p, options, er, cb);
|
|
697
|
+
options.unlink(p, (er2) => {
|
|
698
|
+
if (er2) {
|
|
699
|
+
if (er2.code === "ENOENT")
|
|
700
|
+
return cb(null);
|
|
701
|
+
if (er2.code === "EPERM")
|
|
702
|
+
return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
|
|
703
|
+
if (er2.code === "EISDIR")
|
|
704
|
+
return rmdir(p, options, er2, cb);
|
|
705
|
+
}
|
|
706
|
+
return cb(er2);
|
|
707
|
+
});
|
|
708
|
+
});
|
|
709
|
+
}, fixWinEPERM = (p, options, er, cb) => {
|
|
710
|
+
assert(p), assert(options), assert(typeof cb == "function"), options.chmod(p, 438, (er2) => {
|
|
711
|
+
er2 ? cb(er2.code === "ENOENT" ? null : er) : options.stat(p, (er3, stats) => {
|
|
712
|
+
er3 ? cb(er3.code === "ENOENT" ? null : er) : stats.isDirectory() ? rmdir(p, options, er, cb) : options.unlink(p, cb);
|
|
713
|
+
});
|
|
714
|
+
});
|
|
715
|
+
}, fixWinEPERMSync = (p, options, er) => {
|
|
716
|
+
assert(p), assert(options);
|
|
717
|
+
try {
|
|
718
|
+
options.chmodSync(p, 438);
|
|
719
|
+
} catch (er2) {
|
|
720
|
+
if (er2.code === "ENOENT")
|
|
721
|
+
return;
|
|
722
|
+
throw er;
|
|
657
723
|
}
|
|
658
|
-
|
|
659
|
-
|
|
724
|
+
let stats;
|
|
725
|
+
try {
|
|
726
|
+
stats = options.statSync(p);
|
|
727
|
+
} catch (er3) {
|
|
728
|
+
if (er3.code === "ENOENT")
|
|
729
|
+
return;
|
|
730
|
+
throw er;
|
|
731
|
+
}
|
|
732
|
+
stats.isDirectory() ? rmdirSync(p, options, er) : options.unlinkSync(p);
|
|
733
|
+
}, rmdir = (p, options, originalEr, cb) => {
|
|
734
|
+
assert(p), assert(options), assert(typeof cb == "function"), options.rmdir(p, (er) => {
|
|
735
|
+
er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") ? rmkids(p, options, cb) : er && er.code === "ENOTDIR" ? cb(originalEr) : cb(er);
|
|
736
|
+
});
|
|
737
|
+
}, rmkids = (p, options, cb) => {
|
|
738
|
+
assert(p), assert(options), assert(typeof cb == "function"), options.readdir(p, (er, files) => {
|
|
739
|
+
if (er)
|
|
740
|
+
return cb(er);
|
|
741
|
+
let n = files.length;
|
|
742
|
+
if (n === 0)
|
|
743
|
+
return options.rmdir(p, cb);
|
|
744
|
+
let errState;
|
|
745
|
+
files.forEach((f) => {
|
|
746
|
+
rimraf(path.join(p, f), options, (er2) => {
|
|
747
|
+
if (!errState) {
|
|
748
|
+
if (er2)
|
|
749
|
+
return cb(errState = er2);
|
|
750
|
+
--n === 0 && options.rmdir(p, cb);
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
});
|
|
754
|
+
});
|
|
755
|
+
}, rimrafSync = (p, options) => {
|
|
756
|
+
options = options || {}, defaults(options), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert(options, "rimraf: missing options"), assert.equal(typeof options, "object", "rimraf: options should be object");
|
|
757
|
+
let results;
|
|
758
|
+
if (options.disableGlob || !glob.hasMagic(p))
|
|
759
|
+
results = [p];
|
|
760
|
+
else
|
|
761
|
+
try {
|
|
762
|
+
options.lstatSync(p), results = [p];
|
|
763
|
+
} catch {
|
|
764
|
+
results = glob.sync(p, options.glob);
|
|
765
|
+
}
|
|
766
|
+
if (results.length)
|
|
767
|
+
for (let i = 0; i < results.length; i++) {
|
|
768
|
+
let p2 = results[i], st;
|
|
769
|
+
try {
|
|
770
|
+
st = options.lstatSync(p2);
|
|
771
|
+
} catch (er) {
|
|
772
|
+
if (er.code === "ENOENT")
|
|
773
|
+
return;
|
|
774
|
+
er.code === "EPERM" && isWindows && fixWinEPERMSync(p2, options, er);
|
|
775
|
+
}
|
|
776
|
+
try {
|
|
777
|
+
st && st.isDirectory() ? rmdirSync(p2, options, null) : options.unlinkSync(p2);
|
|
778
|
+
} catch (er) {
|
|
779
|
+
if (er.code === "ENOENT")
|
|
780
|
+
return;
|
|
781
|
+
if (er.code === "EPERM")
|
|
782
|
+
return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
|
|
783
|
+
if (er.code !== "EISDIR")
|
|
784
|
+
throw er;
|
|
785
|
+
rmdirSync(p2, options, er);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}, rmdirSync = (p, options, originalEr) => {
|
|
789
|
+
assert(p), assert(options);
|
|
790
|
+
try {
|
|
791
|
+
options.rmdirSync(p);
|
|
792
|
+
} catch (er) {
|
|
793
|
+
if (er.code === "ENOENT")
|
|
794
|
+
return;
|
|
795
|
+
if (er.code === "ENOTDIR")
|
|
796
|
+
throw originalEr;
|
|
797
|
+
(er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") && rmkidsSync(p, options);
|
|
798
|
+
}
|
|
799
|
+
}, rmkidsSync = (p, options) => {
|
|
800
|
+
assert(p), assert(options), options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
|
|
801
|
+
let retries = isWindows ? 100 : 1, i = 0;
|
|
802
|
+
do {
|
|
803
|
+
let threw = !0;
|
|
804
|
+
try {
|
|
805
|
+
let ret = options.rmdirSync(p, options);
|
|
806
|
+
return threw = !1, ret;
|
|
807
|
+
} finally {
|
|
808
|
+
if (++i < retries && threw)
|
|
809
|
+
continue;
|
|
810
|
+
}
|
|
811
|
+
} while (!0);
|
|
812
|
+
};
|
|
813
|
+
module.exports = rimraf;
|
|
814
|
+
rimraf.sync = rimrafSync;
|
|
660
815
|
}
|
|
661
816
|
});
|
|
662
817
|
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
818
|
+
// ../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js
|
|
819
|
+
var require_clean_stack = __commonJS({
|
|
820
|
+
"../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module) {
|
|
821
|
+
"use strict";
|
|
822
|
+
init_cjs_shims();
|
|
823
|
+
var os = __require("os"), extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/, pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/, homeDir = typeof os.homedir > "u" ? "" : os.homedir();
|
|
824
|
+
module.exports = (stack, options) => (options = Object.assign({ pretty: !1 }, options), stack.replace(/\\/g, "/").split(`
|
|
825
|
+
`).filter((line) => {
|
|
826
|
+
let pathMatches = line.match(extractPathRegex);
|
|
827
|
+
if (pathMatches === null || !pathMatches[1])
|
|
828
|
+
return !0;
|
|
829
|
+
let match = pathMatches[1];
|
|
830
|
+
return match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar") ? !1 : !pathRegex.test(match);
|
|
831
|
+
}).filter((line) => line.trim() !== "").map((line) => options.pretty ? line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~"))) : line).join(`
|
|
832
|
+
`));
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
|
|
836
|
+
// ../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js
|
|
837
|
+
var require_aggregate_error = __commonJS({
|
|
838
|
+
"../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module) {
|
|
839
|
+
"use strict";
|
|
840
|
+
init_cjs_shims();
|
|
841
|
+
var indentString = require_indent_string(), cleanStack = require_clean_stack(), cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ""), AggregateError = class extends Error {
|
|
842
|
+
constructor(errors) {
|
|
843
|
+
if (!Array.isArray(errors))
|
|
844
|
+
throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
|
|
845
|
+
errors = [...errors].map((error) => error instanceof Error ? error : error !== null && typeof error == "object" ? Object.assign(new Error(error.message), error) : new Error(error));
|
|
846
|
+
let message = errors.map((error) => typeof error.stack == "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error)).join(`
|
|
847
|
+
`);
|
|
848
|
+
message = `
|
|
849
|
+
` + indentString(message, 4), super(message), this.name = "AggregateError", Object.defineProperty(this, "_errors", { value: errors });
|
|
850
|
+
}
|
|
851
|
+
*[Symbol.iterator]() {
|
|
852
|
+
for (let error of this._errors)
|
|
853
|
+
yield error;
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
module.exports = AggregateError;
|
|
857
|
+
}
|
|
858
|
+
});
|
|
859
|
+
|
|
860
|
+
// ../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js
|
|
861
|
+
var require_p_map = __commonJS({
|
|
862
|
+
"../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module) {
|
|
863
|
+
"use strict";
|
|
864
|
+
init_cjs_shims();
|
|
865
|
+
var AggregateError = require_aggregate_error();
|
|
866
|
+
module.exports = async (iterable, mapper, {
|
|
867
|
+
concurrency = 1 / 0,
|
|
868
|
+
stopOnError = !0
|
|
869
|
+
} = {}) => new Promise((resolve, reject) => {
|
|
870
|
+
if (typeof mapper != "function")
|
|
871
|
+
throw new TypeError("Mapper function is required");
|
|
872
|
+
if (!((Number.isSafeInteger(concurrency) || concurrency === 1 / 0) && concurrency >= 1))
|
|
873
|
+
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
|
|
874
|
+
let result = [], errors = [], iterator = iterable[Symbol.iterator](), isRejected = !1, isIterableDone = !1, resolvingCount = 0, currentIndex = 0, next = () => {
|
|
875
|
+
if (isRejected)
|
|
876
|
+
return;
|
|
877
|
+
let nextItem = iterator.next(), index = currentIndex;
|
|
878
|
+
if (currentIndex++, nextItem.done) {
|
|
879
|
+
isIterableDone = !0, resolvingCount === 0 && (!stopOnError && errors.length !== 0 ? reject(new AggregateError(errors)) : resolve(result));
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
resolvingCount++, (async () => {
|
|
883
|
+
try {
|
|
884
|
+
let element = await nextItem.value;
|
|
885
|
+
result[index] = await mapper(element, index), resolvingCount--, next();
|
|
886
|
+
} catch (error) {
|
|
887
|
+
stopOnError ? (isRejected = !0, reject(error)) : (errors.push(error), resolvingCount--, next());
|
|
888
|
+
}
|
|
889
|
+
})();
|
|
890
|
+
};
|
|
891
|
+
for (let i = 0; i < concurrency && (next(), !isIterableDone); i++)
|
|
892
|
+
;
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
|
|
897
|
+
// ../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js
|
|
898
|
+
var require_del = __commonJS({
|
|
899
|
+
"../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(exports, module) {
|
|
900
|
+
init_cjs_shims();
|
|
901
|
+
var { promisify } = __require("util"), path = __require("path"), globby = require_globby(), isGlob = require_is_glob(), slash = require_slash(), gracefulFs = require_graceful_fs(), isPathCwd = require_is_path_cwd(), isPathInside = require_is_path_inside(), rimraf = require_rimraf(), pMap = require_p_map(), rimrafP = promisify(rimraf), rimrafOptions = {
|
|
902
|
+
glob: !1,
|
|
903
|
+
unlink: gracefulFs.unlink,
|
|
904
|
+
unlinkSync: gracefulFs.unlinkSync,
|
|
905
|
+
chmod: gracefulFs.chmod,
|
|
906
|
+
chmodSync: gracefulFs.chmodSync,
|
|
907
|
+
stat: gracefulFs.stat,
|
|
908
|
+
statSync: gracefulFs.statSync,
|
|
909
|
+
lstat: gracefulFs.lstat,
|
|
910
|
+
lstatSync: gracefulFs.lstatSync,
|
|
911
|
+
rmdir: gracefulFs.rmdir,
|
|
912
|
+
rmdirSync: gracefulFs.rmdirSync,
|
|
913
|
+
readdir: gracefulFs.readdir,
|
|
914
|
+
readdirSync: gracefulFs.readdirSync
|
|
915
|
+
};
|
|
916
|
+
function safeCheck(file, cwd) {
|
|
917
|
+
if (isPathCwd(file))
|
|
918
|
+
throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");
|
|
919
|
+
if (!isPathInside(file, cwd))
|
|
920
|
+
throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.");
|
|
921
|
+
}
|
|
922
|
+
function normalizePatterns(patterns) {
|
|
923
|
+
return patterns = Array.isArray(patterns) ? patterns : [patterns], patterns = patterns.map((pattern) => process.platform === "win32" && isGlob(pattern) === !1 ? slash(pattern) : pattern), patterns;
|
|
924
|
+
}
|
|
925
|
+
module.exports = async (patterns, { force, dryRun, cwd = process.cwd(), onProgress = () => {
|
|
926
|
+
}, ...options } = {}) => {
|
|
927
|
+
options = {
|
|
928
|
+
expandDirectories: !1,
|
|
929
|
+
onlyFiles: !1,
|
|
930
|
+
followSymbolicLinks: !1,
|
|
931
|
+
cwd,
|
|
932
|
+
...options
|
|
933
|
+
}, patterns = normalizePatterns(patterns);
|
|
934
|
+
let files = (await globby(patterns, options)).sort((a, b) => b.localeCompare(a));
|
|
935
|
+
files.length === 0 && onProgress({
|
|
936
|
+
totalCount: 0,
|
|
937
|
+
deletedCount: 0,
|
|
938
|
+
percent: 1
|
|
939
|
+
});
|
|
940
|
+
let deletedCount = 0, removedFiles = await pMap(files, async (file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || await rimrafP(file, rimrafOptions), deletedCount += 1, onProgress({
|
|
941
|
+
totalCount: files.length,
|
|
942
|
+
deletedCount,
|
|
943
|
+
percent: deletedCount / files.length
|
|
944
|
+
}), file), options);
|
|
945
|
+
return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
|
|
946
|
+
};
|
|
947
|
+
module.exports.sync = (patterns, { force, dryRun, cwd = process.cwd(), ...options } = {}) => {
|
|
948
|
+
options = {
|
|
949
|
+
expandDirectories: !1,
|
|
950
|
+
onlyFiles: !1,
|
|
951
|
+
followSymbolicLinks: !1,
|
|
952
|
+
cwd,
|
|
953
|
+
...options
|
|
954
|
+
}, patterns = normalizePatterns(patterns);
|
|
955
|
+
let removedFiles = globby.sync(patterns, options).sort((a, b) => b.localeCompare(a)).map((file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || rimraf.sync(file, rimrafOptions), file));
|
|
956
|
+
return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
export default require_del();
|
|
961
|
+
//# sourceMappingURL=del-4XMQNWFE.js.map
|
|
@@ -4,20 +4,18 @@ import {
|
|
|
4
4
|
errorHandler,
|
|
5
5
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
6
6
|
sendErrorToBugsnag
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ULXZG5FG.js";
|
|
8
|
+
import "./chunk-GDQXK7SS.js";
|
|
9
|
+
import "./chunk-ROHZIBAY.js";
|
|
10
10
|
import "./chunk-25IMI7TH.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-S3IDOXGB.js";
|
|
12
|
+
import "./chunk-EU5PDVVS.js";
|
|
13
|
+
import "./chunk-H3GWNOGA.js";
|
|
14
14
|
import "./chunk-UMUTXITN.js";
|
|
15
15
|
import "./chunk-Y2JP6WFP.js";
|
|
16
16
|
import "./chunk-SHWOPMLQ.js";
|
|
17
17
|
import "./chunk-75LV6AQS.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-CTFDRWUN.js";
|
|
20
|
-
import "./chunk-7IK72W75.js";
|
|
18
|
+
import "./chunk-LABBARNJ.js";
|
|
21
19
|
import "./chunk-G2ZZKGSV.js";
|
|
22
20
|
import "./chunk-PKR7KJ6P.js";
|
|
23
21
|
export {
|
|
@@ -27,4 +25,4 @@ export {
|
|
|
27
25
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
28
26
|
sendErrorToBugsnag
|
|
29
27
|
};
|
|
30
|
-
//# sourceMappingURL=error-handler-
|
|
28
|
+
//# sourceMappingURL=error-handler-C6Y3FZJC.js.map
|
package/dist/hooks/postrun.js
CHANGED
|
@@ -3,23 +3,21 @@ import {
|
|
|
3
3
|
} from "../chunk-CP3BRHWK.js";
|
|
4
4
|
import {
|
|
5
5
|
reportAnalyticsEvent
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-GDQXK7SS.js";
|
|
7
|
+
import "../chunk-ROHZIBAY.js";
|
|
8
8
|
import "../chunk-25IMI7TH.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-S3IDOXGB.js";
|
|
10
10
|
import {
|
|
11
11
|
addSensitiveMetadata,
|
|
12
12
|
getAllSensitiveMetadata,
|
|
13
13
|
outputDebug,
|
|
14
14
|
renderWarning
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-EU5PDVVS.js";
|
|
16
|
+
import "../chunk-H3GWNOGA.js";
|
|
17
17
|
import "../chunk-UMUTXITN.js";
|
|
18
18
|
import "../chunk-Y2JP6WFP.js";
|
|
19
19
|
import "../chunk-75LV6AQS.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-CTFDRWUN.js";
|
|
22
|
-
import "../chunk-7IK72W75.js";
|
|
20
|
+
import "../chunk-LABBARNJ.js";
|
|
23
21
|
import "../chunk-G2ZZKGSV.js";
|
|
24
22
|
import {
|
|
25
23
|
init_cjs_shims
|
package/dist/hooks/prerun.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchNotificationsInBackground
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-XM645PFF.js";
|
|
4
4
|
import {
|
|
5
5
|
CLI_KIT_VERSION,
|
|
6
6
|
startAnalytics
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-ROHZIBAY.js";
|
|
8
8
|
import "../chunk-25IMI7TH.js";
|
|
9
9
|
import {
|
|
10
10
|
checkForCachedNewVersion,
|
|
11
11
|
checkForNewVersion,
|
|
12
12
|
packageManagerFromUserAgent,
|
|
13
13
|
runAtMinimumInterval
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-S3IDOXGB.js";
|
|
15
15
|
import {
|
|
16
16
|
currentProcessIsGlobal,
|
|
17
17
|
inferPackageManagerForGlobalCLI,
|
|
@@ -20,14 +20,12 @@ import {
|
|
|
20
20
|
outputDebug,
|
|
21
21
|
outputToken,
|
|
22
22
|
outputWarn
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-EU5PDVVS.js";
|
|
24
|
+
import "../chunk-H3GWNOGA.js";
|
|
25
25
|
import "../chunk-UMUTXITN.js";
|
|
26
26
|
import "../chunk-Y2JP6WFP.js";
|
|
27
27
|
import "../chunk-75LV6AQS.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-CTFDRWUN.js";
|
|
30
|
-
import "../chunk-7IK72W75.js";
|
|
28
|
+
import "../chunk-LABBARNJ.js";
|
|
31
29
|
import "../chunk-G2ZZKGSV.js";
|
|
32
30
|
import {
|
|
33
31
|
init_cjs_shims
|