@wix/cli 1.1.69 → 1.1.71
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/build/{DevCommand-5YJ7JVFI.js → DevCommand-BUCFQZ4V.js} +16 -15
- package/build/{DevCommand-5YJ7JVFI.js.map → DevCommand-BUCFQZ4V.js.map} +1 -1
- package/build/{DevCommand-33URDS3V.js → DevCommand-UXSOKVIV.js} +22 -19
- package/build/{DevCommand-33URDS3V.js.map → DevCommand-UXSOKVIV.js.map} +1 -1
- package/build/InstallCommand-ZXVGHZMT.js +111 -0
- package/build/InstallCommand-ZXVGHZMT.js.map +1 -0
- package/build/{LoginCommand-VXFJURKY.js → LoginCommand-LQDJPLIG.js} +13 -13
- package/build/{LogoutCommand-6X3V6YFR.js → LogoutCommand-AQ4FFG6S.js} +9 -9
- package/build/{PreviewCommand-SZN5FNW2.js → PreviewCommand-PF63VX7E.js} +19 -17
- package/build/{PreviewCommand-SZN5FNW2.js.map → PreviewCommand-PF63VX7E.js.map} +1 -1
- package/build/{PublishCommand-WLNU4ZTZ.js → PublishCommand-QIUB5P27.js} +19 -17
- package/build/{PublishCommand-WLNU4ZTZ.js.map → PublishCommand-QIUB5P27.js.map} +1 -1
- package/build/{WhoamiCommand-LMVW2K4G.js → WhoamiCommand-C2BQLEZK.js} +5 -5
- package/build/{chunk-SEOIN2A6.js → chunk-2CPXK3HU.js} +2 -2
- package/build/{chunk-ZSEFFYYF.js → chunk-2G7FRAIA.js} +2 -2
- package/build/{chunk-VPOJLQYV.js → chunk-7EAHB7TU.js} +5 -5
- package/build/{chunk-XW5SMEWV.js → chunk-7VND5WMC.js} +23 -12
- package/build/{chunk-XW5SMEWV.js.map → chunk-7VND5WMC.js.map} +1 -1
- package/build/chunk-BALHGZ6G.js +106 -0
- package/build/chunk-BALHGZ6G.js.map +1 -0
- package/build/{chunk-2VWITZHD.js → chunk-CKRI4KAC.js} +6 -6
- package/build/{chunk-V7ZC4LPC.js → chunk-CVJG3VZM.js} +3 -2
- package/build/{chunk-V7ZC4LPC.js.map → chunk-CVJG3VZM.js.map} +1 -1
- package/build/chunk-D4CWTPCC.js +215 -0
- package/build/chunk-D4CWTPCC.js.map +1 -0
- package/build/{chunk-5P7JTOX6.js → chunk-DDC4C6V6.js} +2 -2
- package/build/{chunk-2PPYTGTP.js → chunk-DRTGGSXY.js} +11 -9
- package/build/{chunk-2PPYTGTP.js.map → chunk-DRTGGSXY.js.map} +1 -1
- package/build/{chunk-GV6YQJVG.js → chunk-E2POOOG2.js} +18 -399
- package/build/chunk-E2POOOG2.js.map +1 -0
- package/build/{chunk-DCQOM2Z7.js → chunk-E56WW2OA.js} +99 -15
- package/build/chunk-E56WW2OA.js.map +1 -0
- package/build/{chunk-3GHXATUB.js → chunk-F6DVF5WQ.js} +31 -4
- package/build/chunk-F6DVF5WQ.js.map +1 -0
- package/build/{chunk-PX2L3CCA.js → chunk-GNB7T7J7.js} +2 -1
- package/build/chunk-GNB7T7J7.js.map +1 -0
- package/build/{chunk-2G3JMOVC.js → chunk-GXQQXURF.js} +4 -4
- package/build/{chunk-2G3JMOVC.js.map → chunk-GXQQXURF.js.map} +1 -1
- package/build/chunk-HGBMRF3C.js +68 -0
- package/build/chunk-HGBMRF3C.js.map +1 -0
- package/build/{chunk-Y4ZVXLXY.js → chunk-IBISICD2.js} +2 -2
- package/build/{chunk-OVP6B64S.js → chunk-K4EZRW26.js} +6 -6
- package/build/{chunk-2F3GQZWA.js → chunk-KQMZOXQO.js} +5 -40
- package/build/chunk-KQMZOXQO.js.map +1 -0
- package/build/{chunk-I2MVJLFR.js → chunk-KU7XWHFR.js} +5 -5
- package/build/{chunk-STMV4YQN.js → chunk-KWG4MUE3.js} +4 -4
- package/build/{chunk-UQM2YHYJ.js → chunk-LUSZJ34N.js} +8 -2
- package/build/chunk-LUSZJ34N.js.map +1 -0
- package/build/{chunk-ISDQRGI5.js → chunk-LZJPV4CP.js} +2 -2
- package/build/{chunk-R63OCR7B.js → chunk-O25O35J2.js} +11 -11
- package/build/{chunk-FP6XJXLI.js → chunk-OH3G6JMX.js} +9 -9
- package/build/{chunk-XFBRJSRX.js → chunk-PAPTRQZR.js} +3 -3
- package/build/{chunk-UEWDARJV.js → chunk-Q6F4OGQT.js} +6 -6
- package/build/{chunk-73EOTPNH.js → chunk-QKXNIB4D.js} +2 -2
- package/build/chunk-RNE7RRCK.js +403 -0
- package/build/chunk-RNE7RRCK.js.map +1 -0
- package/build/{chunk-7BZASUF6.js → chunk-SELMNFDT.js} +5 -5
- package/build/{chunk-SNATPUJN.js → chunk-SNWTG76C.js} +2 -2
- package/build/chunk-TZ6REBY4.js +348 -0
- package/build/chunk-TZ6REBY4.js.map +1 -0
- package/build/{chunk-7UNZZYHX.js → chunk-VSMZTFUW.js} +3 -3
- package/build/{chunk-AG5NQGMT.js → chunk-XVW7HYN2.js} +11 -6
- package/build/{chunk-AG5NQGMT.js.map → chunk-XVW7HYN2.js.map} +1 -1
- package/build/{chunk-ZDRNDE67.js → chunk-YNXR6XGC.js} +12 -10
- package/build/{chunk-ZDRNDE67.js.map → chunk-YNXR6XGC.js.map} +1 -1
- package/build/{dev-XHJYXDWW.js → dev-UIDEVHB2.js} +35 -31
- package/build/dev-UIDEVHB2.js.map +1 -0
- package/build/index.js +26 -26
- package/build/install-BBZ5FFHR.js +79 -0
- package/build/install-BBZ5FFHR.js.map +1 -0
- package/build/{preview-J2P3H55N.js → preview-DRHNY7LY.js} +23 -22
- package/build/{preview-J2P3H55N.js.map → preview-DRHNY7LY.js.map} +1 -1
- package/build/{publish-EVX4FLPC.js → publish-YUV5OQNQ.js} +24 -23
- package/build/{publish-EVX4FLPC.js.map → publish-YUV5OQNQ.js.map} +1 -1
- package/build/{render-command-FJHJDHES.js → render-command-3A5DVPI7.js} +12 -12
- package/build/{render-command-BKK2MPBU.js → render-command-NSPTH47K.js} +14 -14
- package/build/render-command-NSPTH47K.js.map +1 -0
- package/build/{render-command-QQZQXMCT.js → render-command-Y754GZT4.js} +13 -13
- package/build/{run-command-3W35JGKO.js → run-command-JLCXAJNF.js} +9 -9
- package/build/{src-FRXUOTRK.js → src-GTDYBSPF.js} +2 -2
- package/build/{src-PPNZSRDE.js → src-H6NM7SBV.js} +8 -8
- package/build/{src-7BPNVTO6.js → src-SEHXPEGQ.js} +30 -13
- package/build/src-SEHXPEGQ.js.map +1 -0
- package/build/{src-A2WEM6GK.js → src-X4WDRIUX.js} +18 -18
- package/build/{src-WLXQYADV.js → src-YKFOEDGA.js} +7 -7
- package/build/{src-ZKWO2KZB.js → src-ZQHFQ5TA.js} +6 -6
- package/build/{sync-types-FZK6FRJH.js → sync-types-HI4GZPY7.js} +14 -14
- package/build/{uninstall-BDYHXWAO.js → uninstall-Z4L27S7G.js} +33 -37
- package/build/uninstall-Z4L27S7G.js.map +1 -0
- package/package.json +2 -2
- package/build/chunk-2F3GQZWA.js.map +0 -1
- package/build/chunk-3GHXATUB.js.map +0 -1
- package/build/chunk-6IE2UX3U.js +0 -338
- package/build/chunk-6IE2UX3U.js.map +0 -1
- package/build/chunk-DCQOM2Z7.js.map +0 -1
- package/build/chunk-GV6YQJVG.js.map +0 -1
- package/build/chunk-PX2L3CCA.js.map +0 -1
- package/build/chunk-UQM2YHYJ.js.map +0 -1
- package/build/dev-XHJYXDWW.js.map +0 -1
- package/build/install-R344LMIP.js +0 -152
- package/build/install-R344LMIP.js.map +0 -1
- package/build/render-command-BKK2MPBU.js.map +0 -1
- package/build/src-7BPNVTO6.js.map +0 -1
- package/build/uninstall-BDYHXWAO.js.map +0 -1
- /package/build/{LoginCommand-VXFJURKY.js.map → LoginCommand-LQDJPLIG.js.map} +0 -0
- /package/build/{LogoutCommand-6X3V6YFR.js.map → LogoutCommand-AQ4FFG6S.js.map} +0 -0
- /package/build/{WhoamiCommand-LMVW2K4G.js.map → WhoamiCommand-C2BQLEZK.js.map} +0 -0
- /package/build/{chunk-SEOIN2A6.js.map → chunk-2CPXK3HU.js.map} +0 -0
- /package/build/{chunk-ZSEFFYYF.js.map → chunk-2G7FRAIA.js.map} +0 -0
- /package/build/{chunk-VPOJLQYV.js.map → chunk-7EAHB7TU.js.map} +0 -0
- /package/build/{chunk-2VWITZHD.js.map → chunk-CKRI4KAC.js.map} +0 -0
- /package/build/{chunk-5P7JTOX6.js.map → chunk-DDC4C6V6.js.map} +0 -0
- /package/build/{chunk-Y4ZVXLXY.js.map → chunk-IBISICD2.js.map} +0 -0
- /package/build/{chunk-OVP6B64S.js.map → chunk-K4EZRW26.js.map} +0 -0
- /package/build/{chunk-I2MVJLFR.js.map → chunk-KU7XWHFR.js.map} +0 -0
- /package/build/{chunk-STMV4YQN.js.map → chunk-KWG4MUE3.js.map} +0 -0
- /package/build/{chunk-ISDQRGI5.js.map → chunk-LZJPV4CP.js.map} +0 -0
- /package/build/{chunk-R63OCR7B.js.map → chunk-O25O35J2.js.map} +0 -0
- /package/build/{chunk-FP6XJXLI.js.map → chunk-OH3G6JMX.js.map} +0 -0
- /package/build/{chunk-XFBRJSRX.js.map → chunk-PAPTRQZR.js.map} +0 -0
- /package/build/{chunk-UEWDARJV.js.map → chunk-Q6F4OGQT.js.map} +0 -0
- /package/build/{chunk-73EOTPNH.js.map → chunk-QKXNIB4D.js.map} +0 -0
- /package/build/{chunk-7BZASUF6.js.map → chunk-SELMNFDT.js.map} +0 -0
- /package/build/{chunk-SNATPUJN.js.map → chunk-SNWTG76C.js.map} +0 -0
- /package/build/{chunk-7UNZZYHX.js.map → chunk-VSMZTFUW.js.map} +0 -0
- /package/build/{render-command-FJHJDHES.js.map → render-command-3A5DVPI7.js.map} +0 -0
- /package/build/{render-command-QQZQXMCT.js.map → render-command-Y754GZT4.js.map} +0 -0
- /package/build/{run-command-3W35JGKO.js.map → run-command-JLCXAJNF.js.map} +0 -0
- /package/build/{src-FRXUOTRK.js.map → src-GTDYBSPF.js.map} +0 -0
- /package/build/{src-PPNZSRDE.js.map → src-H6NM7SBV.js.map} +0 -0
- /package/build/{src-A2WEM6GK.js.map → src-X4WDRIUX.js.map} +0 -0
- /package/build/{src-WLXQYADV.js.map → src-YKFOEDGA.js.map} +0 -0
- /package/build/{src-ZKWO2KZB.js.map → src-ZQHFQ5TA.js.map} +0 -0
- /package/build/{sync-types-FZK6FRJH.js.map → sync-types-HI4GZPY7.js.map} +0 -0
|
@@ -2,18 +2,18 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadProjectModel
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-KU7XWHFR.js";
|
|
6
|
+
import "./chunk-IBISICD2.js";
|
|
7
7
|
import {
|
|
8
8
|
reportCommandStartEvent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KWG4MUE3.js";
|
|
10
10
|
import "./chunk-WN3D6AOY.js";
|
|
11
11
|
import "./chunk-W423UTD3.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-VSMZTFUW.js";
|
|
13
|
+
import "./chunk-2CPXK3HU.js";
|
|
14
|
+
import "./chunk-F6DVF5WQ.js";
|
|
15
|
+
import "./chunk-GNB7T7J7.js";
|
|
16
|
+
import "./chunk-CVJG3VZM.js";
|
|
17
17
|
import {
|
|
18
18
|
init_esm_shims
|
|
19
19
|
} from "./chunk-PYIAC2GK.js";
|
|
@@ -49,4 +49,4 @@ async function runCommand(command, services, cliVersion, commandFn) {
|
|
|
49
49
|
export {
|
|
50
50
|
runCommand
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=run-command-
|
|
52
|
+
//# sourceMappingURL=run-command-JLCXAJNF.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isCliError,
|
|
8
8
|
isCliSystemError,
|
|
9
9
|
normalizeError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CVJG3VZM.js";
|
|
11
11
|
import "./chunk-PYIAC2GK.js";
|
|
12
12
|
export {
|
|
13
13
|
CliError,
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
isCliSystemError,
|
|
18
18
|
normalizeError
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=src-
|
|
20
|
+
//# sourceMappingURL=src-GTDYBSPF.js.map
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
isLoggedInToAccount,
|
|
11
11
|
logout,
|
|
12
12
|
useAuth
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-FP6XJXLI.js";
|
|
16
|
-
import "./chunk-2K5KKUL3.js";
|
|
13
|
+
} from "./chunk-O25O35J2.js";
|
|
14
|
+
import "./chunk-7VND5WMC.js";
|
|
17
15
|
import "./chunk-WN3D6AOY.js";
|
|
16
|
+
import "./chunk-OH3G6JMX.js";
|
|
18
17
|
import "./chunk-W423UTD3.js";
|
|
18
|
+
import "./chunk-2K5KKUL3.js";
|
|
19
19
|
import "./chunk-YU54OBFT.js";
|
|
20
20
|
import "./chunk-XMTHMR2B.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-F6DVF5WQ.js";
|
|
22
|
+
import "./chunk-GNB7T7J7.js";
|
|
23
|
+
import "./chunk-CVJG3VZM.js";
|
|
24
24
|
import "./chunk-PYIAC2GK.js";
|
|
25
25
|
export {
|
|
26
26
|
AccountAuthProvider,
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
logout,
|
|
34
34
|
useAuth
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=src-
|
|
36
|
+
//# sourceMappingURL=src-H6NM7SBV.js.map
|
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
messages_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LUSZJ34N.js";
|
|
6
6
|
import {
|
|
7
7
|
Option,
|
|
8
8
|
createCommand
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
createI18n,
|
|
12
12
|
require_react
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-2K5KKUL3.js";
|
|
13
|
+
} from "./chunk-OH3G6JMX.js";
|
|
15
14
|
import "./chunk-W423UTD3.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2K5KKUL3.js";
|
|
16
|
+
import "./chunk-GNB7T7J7.js";
|
|
17
|
+
import "./chunk-CVJG3VZM.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM,
|
|
20
20
|
init_esm_shims
|
|
@@ -41,8 +41,8 @@ function createI18nT() {
|
|
|
41
41
|
var devCommand = (services, cliVersion) => {
|
|
42
42
|
const t = createI18nT();
|
|
43
43
|
return createCommand("dev").description(t("site_dev_command_def.description")).action(async (options, command) => {
|
|
44
|
-
const { renderCommand } = await import("./render-command-
|
|
45
|
-
const { DevCommand } = await import("./DevCommand-
|
|
44
|
+
const { renderCommand } = await import("./render-command-NSPTH47K.js");
|
|
45
|
+
const { DevCommand } = await import("./DevCommand-UXSOKVIV.js");
|
|
46
46
|
await renderCommand(command, services, cliVersion, /* @__PURE__ */ import_react.default.createElement(DevCommand, null));
|
|
47
47
|
});
|
|
48
48
|
};
|
|
@@ -53,8 +53,8 @@ var import_react2 = __toESM(require_react(), 1);
|
|
|
53
53
|
var previewCommand = (services, cliVersion) => {
|
|
54
54
|
const t = createI18nT();
|
|
55
55
|
return createCommand("preview").description(t("site_preview_command_def.description")).action(async (options, command) => {
|
|
56
|
-
const { renderCommand } = await import("./render-command-
|
|
57
|
-
const { PreviewCommand } = await import("./PreviewCommand-
|
|
56
|
+
const { renderCommand } = await import("./render-command-NSPTH47K.js");
|
|
57
|
+
const { PreviewCommand } = await import("./PreviewCommand-PF63VX7E.js");
|
|
58
58
|
await renderCommand(command, services, cliVersion, /* @__PURE__ */ import_react2.default.createElement(PreviewCommand, null));
|
|
59
59
|
});
|
|
60
60
|
};
|
|
@@ -71,8 +71,8 @@ var publishCommand = (services, cliVersion) => {
|
|
|
71
71
|
).conflicts("force")
|
|
72
72
|
).option("-f, --force", t("site_publish_command_def.option.force")).action(async (options, command) => {
|
|
73
73
|
const { approvePreview = false, force = false } = options;
|
|
74
|
-
const { renderCommand } = await import("./render-command-
|
|
75
|
-
const { PublishCommand } = await import("./PublishCommand-
|
|
74
|
+
const { renderCommand } = await import("./render-command-NSPTH47K.js");
|
|
75
|
+
const { PublishCommand } = await import("./PublishCommand-QIUB5P27.js");
|
|
76
76
|
await renderCommand(
|
|
77
77
|
command,
|
|
78
78
|
services,
|
|
@@ -82,11 +82,28 @@ var publishCommand = (services, cliVersion) => {
|
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
+
// ../cli-site/src/commands/install.tsx
|
|
86
|
+
init_esm_shims();
|
|
87
|
+
var import_react4 = __toESM(require_react(), 1);
|
|
88
|
+
var installCommand = (services, cliVersion) => {
|
|
89
|
+
const t = createI18nT();
|
|
90
|
+
return createCommand("install").description(t("site_install_command_def.description")).argument("[package]", t("site_install_command_def.argument.package")).action(async (packageName, _opts, command) => {
|
|
91
|
+
const { renderCommand } = await import("./render-command-NSPTH47K.js");
|
|
92
|
+
const { InstallCommand } = await import("./InstallCommand-ZXVGHZMT.js");
|
|
93
|
+
await renderCommand(
|
|
94
|
+
command,
|
|
95
|
+
services,
|
|
96
|
+
cliVersion,
|
|
97
|
+
/* @__PURE__ */ import_react4.default.createElement(InstallCommand, { packageName })
|
|
98
|
+
);
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
85
102
|
// ../cli-site/src/commands/root-command.ts
|
|
86
103
|
var getRootCommand = async function getRootCommand2(services, cliVersion) {
|
|
87
|
-
return createCommand("site").addCommand(devCommand(services, cliVersion)).addCommand(previewCommand(services, cliVersion)).addCommand(publishCommand(services, cliVersion));
|
|
104
|
+
return createCommand("site").addCommand(devCommand(services, cliVersion)).addCommand(previewCommand(services, cliVersion)).addCommand(publishCommand(services, cliVersion)).addCommand(installCommand(services, cliVersion));
|
|
88
105
|
};
|
|
89
106
|
export {
|
|
90
107
|
getRootCommand
|
|
91
108
|
};
|
|
92
|
-
//# sourceMappingURL=src-
|
|
109
|
+
//# sourceMappingURL=src-SEHXPEGQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../cli-site/src/index.ts","../../cli-site/src/commands/root-command.ts","../../cli-site/src/commands/dev.tsx","../../cli-site/src/i18n.ts","../../cli-site/src/commands/preview.tsx","../../cli-site/src/commands/publish.tsx","../../cli-site/src/commands/install.tsx"],"sourcesContent":["export { getRootCommand } from './commands/root-command.js';\n","import { createCommand } from '@commander-js/extra-typings';\nimport type { GetRootCommandFn } from '@wix/cli-command-contract';\nimport { devCommand } from './dev.js';\nimport { previewCommand } from './preview.js';\nimport { publishCommand } from './publish.js';\nimport { installCommand } from './install.js';\n\nexport const getRootCommand: GetRootCommandFn = async function getRootCommand(\n services,\n cliVersion\n) {\n return createCommand('site')\n .addCommand(devCommand(services, cliVersion))\n .addCommand(previewCommand(services, cliVersion))\n .addCommand(publishCommand(services, cliVersion))\n .addCommand(installCommand(services, cliVersion));\n};\n","import React from 'react';\nimport { createCommand } from '@commander-js/extra-typings';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport { createI18nT } from '../i18n.js';\n\nexport const devCommand = (services: CommandServices, cliVersion: string) => {\n const t = createI18nT();\n\n return createCommand('dev')\n .description(t('site_dev_command_def.description'))\n .action(async (options, command) => {\n const { renderCommand } = await import('./render-command.js');\n const { DevCommand } = await import(\n '../components/DevCommand/DevCommand.js'\n );\n\n await renderCommand(command, services, cliVersion, <DevCommand />);\n });\n};\n","import { createI18n as externalCreate } from '@wix/cli-i18n';\nimport messages from './messages.json';\n\nexport function createI18nT() {\n const i18n = externalCreate(messages);\n\n return i18n.t.bind(i18n);\n}\n","import React from 'react';\nimport { createCommand } from '@commander-js/extra-typings';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport { createI18nT } from '../i18n.js';\n\nexport const previewCommand = (\n services: CommandServices,\n cliVersion: string\n) => {\n const t = createI18nT();\n\n return createCommand('preview')\n .description(t('site_preview_command_def.description'))\n .action(async (options, command) => {\n const { renderCommand } = await import('./render-command.js');\n const { PreviewCommand } = await import(\n '../components/PreviewCommand/PreviewCommand.js'\n );\n\n await renderCommand(command, services, cliVersion, <PreviewCommand />);\n });\n};\n","import React from 'react';\nimport { createCommand, Option } from '@commander-js/extra-typings';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport { createI18nT } from '../i18n.js';\n\nexport const publishCommand = (\n services: CommandServices,\n cliVersion: string\n) => {\n const t = createI18nT();\n\n return createCommand('publish')\n .description(t('site_publish_command_def.description'))\n .addOption(\n new Option(\n '-y, --approve-preview',\n t('site_publish_command_def.option.approve_preview')\n ).conflicts('force')\n )\n .option('-f, --force', t('site_publish_command_def.option.force'))\n .action(async (options, command) => {\n const { approvePreview = false, force = false } = options;\n\n const { renderCommand } = await import('./render-command.js');\n const { PublishCommand } = await import(\n '../components/PublishCommand/PublishCommand.js'\n );\n\n await renderCommand(\n command,\n services,\n cliVersion,\n <PublishCommand approvePreview={approvePreview} force={force} />\n );\n });\n};\n","import React from 'react';\nimport { createCommand } from '@commander-js/extra-typings';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport { createI18nT } from '../i18n.js';\n\nexport const installCommand = (\n services: CommandServices,\n cliVersion: string\n) => {\n const t = createI18nT();\n\n return createCommand('install')\n .description(t('site_install_command_def.description'))\n .argument('[package]', t('site_install_command_def.argument.package'))\n .action(async (packageName, _opts, command) => {\n const { renderCommand } = await import('./render-command.js');\n const { InstallCommand } = await import(\n '../components/InstallCommand/InstallCommand.js'\n );\n\n await renderCommand(\n command,\n services,\n cliVersion,\n <InstallCommand packageName={packageName} />\n );\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;ACAA;;;ACAA;AAAA,mBAAkB;;;ACAlB;AAGO,SAAS,cAAc;AAC5B,QAAM,OAAO,WAAe,gBAAQ;AAEpC,SAAO,KAAK,EAAE,KAAK,IAAI;AACzB;;;ADFO,IAAM,aAAa,CAAC,UAA2B,eAAuB;AAC3E,QAAM,IAAI,YAAY;AAEtB,SAAO,cAAc,KAAK,EACvB,YAAY,EAAE,kCAAkC,CAAC,EACjD,OAAO,OAAO,SAAS,YAAY;AAClC,UAAM,EAAE,cAAc,IAAI,MAAM,OAAO,8BAAqB;AAC5D,UAAM,EAAE,WAAW,IAAI,MAAM,OAC3B,0BACF;AAEA,UAAM,cAAc,SAAS,UAAU,YAAY,6BAAAA,QAAA,cAAC,gBAAW,CAAE;AAAA,EACnE,CAAC;AACL;;;AElBA;AAAA,IAAAC,gBAAkB;AAKX,IAAM,iBAAiB,CAC5B,UACA,eACG;AACH,QAAM,IAAI,YAAY;AAEtB,SAAO,cAAc,SAAS,EAC3B,YAAY,EAAE,sCAAsC,CAAC,EACrD,OAAO,OAAO,SAAS,YAAY;AAClC,UAAM,EAAE,cAAc,IAAI,MAAM,OAAO,8BAAqB;AAC5D,UAAM,EAAE,eAAe,IAAI,MAAM,OAC/B,8BACF;AAEA,UAAM,cAAc,SAAS,UAAU,YAAY,8BAAAC,QAAA,cAAC,oBAAe,CAAE;AAAA,EACvE,CAAC;AACL;;;ACrBA;AAAA,IAAAC,gBAAkB;AAKX,IAAM,iBAAiB,CAC5B,UACA,eACG;AACH,QAAM,IAAI,YAAY;AAEtB,SAAO,cAAc,SAAS,EAC3B,YAAY,EAAE,sCAAsC,CAAC,EACrD;AAAA,IACC,IAAI;AAAA,MACF;AAAA,MACA,EAAE,iDAAiD;AAAA,IACrD,EAAE,UAAU,OAAO;AAAA,EACrB,EACC,OAAO,eAAe,EAAE,uCAAuC,CAAC,EAChE,OAAO,OAAO,SAAS,YAAY;AAClC,UAAM,EAAE,iBAAiB,OAAO,QAAQ,MAAM,IAAI;AAElD,UAAM,EAAE,cAAc,IAAI,MAAM,OAAO,8BAAqB;AAC5D,UAAM,EAAE,eAAe,IAAI,MAAM,OAC/B,8BACF;AAEA,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA,8BAAAC,QAAA,cAAC,kBAAe,gBAAgC,OAAc;AAAA,IAChE;AAAA,EACF,CAAC;AACL;;;ACnCA;AAAA,IAAAC,gBAAkB;AAKX,IAAM,iBAAiB,CAC5B,UACA,eACG;AACH,QAAM,IAAI,YAAY;AAEtB,SAAO,cAAc,SAAS,EAC3B,YAAY,EAAE,sCAAsC,CAAC,EACrD,SAAS,aAAa,EAAE,2CAA2C,CAAC,EACpE,OAAO,OAAO,aAAa,OAAO,YAAY;AAC7C,UAAM,EAAE,cAAc,IAAI,MAAM,OAAO,8BAAqB;AAC5D,UAAM,EAAE,eAAe,IAAI,MAAM,OAC/B,8BACF;AAEA,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA,8BAAAC,QAAA,cAAC,kBAAe,aAA0B;AAAA,IAC5C;AAAA,EACF,CAAC;AACL;;;ALpBO,IAAM,iBAAmC,eAAeC,gBAC7D,UACA,YACA;AACA,SAAO,cAAc,MAAM,EACxB,WAAW,WAAW,UAAU,UAAU,CAAC,EAC3C,WAAW,eAAe,UAAU,UAAU,CAAC,EAC/C,WAAW,eAAe,UAAU,UAAU,CAAC,EAC/C,WAAW,eAAe,UAAU,UAAU,CAAC;AACpD;","names":["React","import_react","React","import_react","React","import_react","React","getRootCommand"]}
|
|
@@ -2,17 +2,17 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createI18nT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2G7FRAIA.js";
|
|
6
6
|
import {
|
|
7
7
|
Option,
|
|
8
8
|
createCommand,
|
|
9
9
|
require_commander
|
|
10
10
|
} from "./chunk-6RXRVNVZ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-2K5KKUL3.js";
|
|
11
|
+
import "./chunk-OH3G6JMX.js";
|
|
13
12
|
import "./chunk-W423UTD3.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-2K5KKUL3.js";
|
|
14
|
+
import "./chunk-GNB7T7J7.js";
|
|
15
|
+
import "./chunk-CVJG3VZM.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM,
|
|
18
18
|
init_esm_shims
|
|
@@ -51,8 +51,8 @@ var devCommand = (services, cliVersion) => {
|
|
|
51
51
|
return createCommand("dev").option("-s, --https", t("site_dev_command_def.option.https")).addOption(
|
|
52
52
|
new Option2("--tunnel", t("site_dev_command_def.option.tunnel")).conflicts("https").hideHelp(true)
|
|
53
53
|
).description(t("site_dev_command_def.description")).action(async (options, command) => {
|
|
54
|
-
const { runCommand } = await import("./run-command-
|
|
55
|
-
const { dev } = await import("./dev-
|
|
54
|
+
const { runCommand } = await import("./run-command-JLCXAJNF.js");
|
|
55
|
+
const { dev } = await import("./dev-UIDEVHB2.js");
|
|
56
56
|
await runCommand(
|
|
57
57
|
command,
|
|
58
58
|
services,
|
|
@@ -67,8 +67,8 @@ init_esm_shims();
|
|
|
67
67
|
var installCommand = (services, cliVersion) => {
|
|
68
68
|
const t = createI18nT();
|
|
69
69
|
return createCommand("install").description(t("site_install_command_def.description")).argument("[package]", t("site_install_command_def.argument.package")).option("--yarn", t("site_install_command_def.option.yarn")).option("--npm", t("site_install_command_def.option.npm")).action(async (packageName, opts, command) => {
|
|
70
|
-
const { runCommand } = await import("./run-command-
|
|
71
|
-
const { install } = await import("./install-
|
|
70
|
+
const { runCommand } = await import("./run-command-JLCXAJNF.js");
|
|
71
|
+
const { install } = await import("./install-BBZ5FFHR.js");
|
|
72
72
|
await runCommand(
|
|
73
73
|
command,
|
|
74
74
|
services,
|
|
@@ -88,8 +88,8 @@ var previewCommand = (services, cliVersion) => {
|
|
|
88
88
|
t("site_preview_command_def.option.source")
|
|
89
89
|
).choices(["local", "remote"])
|
|
90
90
|
).action(async (options, command) => {
|
|
91
|
-
const { runCommand } = await import("./run-command-
|
|
92
|
-
const { preview } = await import("./preview-
|
|
91
|
+
const { runCommand } = await import("./run-command-JLCXAJNF.js");
|
|
92
|
+
const { preview } = await import("./preview-DRHNY7LY.js");
|
|
93
93
|
await runCommand(
|
|
94
94
|
command,
|
|
95
95
|
services,
|
|
@@ -112,8 +112,8 @@ var publishCommand = (services, cliVersion) => {
|
|
|
112
112
|
"-y, --approve-preview",
|
|
113
113
|
t("site_publish_command_def.option.approve_preview")
|
|
114
114
|
).option("-f, --force", t("site_publish_command_def.option.force")).action(async (options, command) => {
|
|
115
|
-
const { runCommand } = await import("./run-command-
|
|
116
|
-
const { publish } = await import("./publish-
|
|
115
|
+
const { runCommand } = await import("./run-command-JLCXAJNF.js");
|
|
116
|
+
const { publish } = await import("./publish-YUV5OQNQ.js");
|
|
117
117
|
await runCommand(
|
|
118
118
|
command,
|
|
119
119
|
services,
|
|
@@ -126,8 +126,8 @@ var publishCommand = (services, cliVersion) => {
|
|
|
126
126
|
// ../cli-site-old/src/commands/sync-types.ts
|
|
127
127
|
init_esm_shims();
|
|
128
128
|
var syncTypesCommand = (services, cliVersion) => createCommand("sync-types").action(async (_, command) => {
|
|
129
|
-
const { runCommand } = await import("./run-command-
|
|
130
|
-
const { syncTypes } = await import("./sync-types-
|
|
129
|
+
const { runCommand } = await import("./run-command-JLCXAJNF.js");
|
|
130
|
+
const { syncTypes } = await import("./sync-types-HI4GZPY7.js");
|
|
131
131
|
await runCommand(
|
|
132
132
|
command,
|
|
133
133
|
services,
|
|
@@ -141,8 +141,8 @@ init_esm_shims();
|
|
|
141
141
|
var uninstallCommand = (services, cliVersion) => {
|
|
142
142
|
const t = createI18nT();
|
|
143
143
|
return createCommand("uninstall").description(t("site_uninstall_command_def.description")).argument("<package>", t("site_uninstall_command_def.argument.package")).option("--yarn", t("site_uninstall_command_def.option.yarn")).option("--npm", t("site_uninstall_command_def.option.npm")).action(async (packageName, opts, command) => {
|
|
144
|
-
const { runCommand } = await import("./run-command-
|
|
145
|
-
const { uninstall } = await import("./uninstall-
|
|
144
|
+
const { runCommand } = await import("./run-command-JLCXAJNF.js");
|
|
145
|
+
const { uninstall } = await import("./uninstall-Z4L27S7G.js");
|
|
146
146
|
await runCommand(
|
|
147
147
|
command,
|
|
148
148
|
services,
|
|
@@ -159,4 +159,4 @@ var getRootCommand = async function getRootCommand2(services, cliVersion) {
|
|
|
159
159
|
export {
|
|
160
160
|
getRootCommand
|
|
161
161
|
};
|
|
162
|
-
//# sourceMappingURL=src-
|
|
162
|
+
//# sourceMappingURL=src-X4WDRIUX.js.map
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
createI18n,
|
|
11
11
|
require_react
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-2K5KKUL3.js";
|
|
12
|
+
} from "./chunk-OH3G6JMX.js";
|
|
14
13
|
import "./chunk-W423UTD3.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2K5KKUL3.js";
|
|
15
|
+
import "./chunk-GNB7T7J7.js";
|
|
16
|
+
import "./chunk-CVJG3VZM.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM,
|
|
19
19
|
init_esm_shims
|
|
@@ -40,8 +40,8 @@ function createI18nT() {
|
|
|
40
40
|
var devCommand = (services, cliVersion) => {
|
|
41
41
|
const t = createI18nT();
|
|
42
42
|
return createCommand("dev").description(t("site_dev_command_def.description")).action(async (options, command) => {
|
|
43
|
-
const { renderCommand } = await import("./render-command-
|
|
44
|
-
const { DevCommand } = await import("./DevCommand-
|
|
43
|
+
const { renderCommand } = await import("./render-command-Y754GZT4.js");
|
|
44
|
+
const { DevCommand } = await import("./DevCommand-BUCFQZ4V.js");
|
|
45
45
|
await renderCommand(command, services, cliVersion, /* @__PURE__ */ import_react.default.createElement(DevCommand, null));
|
|
46
46
|
});
|
|
47
47
|
};
|
|
@@ -53,4 +53,4 @@ var getRootCommand = async function getRootCommand2(services, cliVersion) {
|
|
|
53
53
|
export {
|
|
54
54
|
getRootCommand
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=src-
|
|
56
|
+
//# sourceMappingURL=src-YKFOEDGA.js.map
|
|
@@ -3,14 +3,14 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readUserConfig,
|
|
5
5
|
updateUserConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-VSMZTFUW.js";
|
|
7
|
+
import "./chunk-2CPXK3HU.js";
|
|
8
|
+
import "./chunk-F6DVF5WQ.js";
|
|
9
|
+
import "./chunk-GNB7T7J7.js";
|
|
10
|
+
import "./chunk-CVJG3VZM.js";
|
|
11
11
|
import "./chunk-PYIAC2GK.js";
|
|
12
12
|
export {
|
|
13
13
|
readUserConfig,
|
|
14
14
|
updateUserConfig
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=src-
|
|
16
|
+
//# sourceMappingURL=src-ZQHFQ5TA.js.map
|
|
@@ -3,28 +3,28 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
syncTypes,
|
|
5
5
|
syncTypesWithAuth
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-SELMNFDT.js";
|
|
7
|
+
import "./chunk-PAPTRQZR.js";
|
|
8
|
+
import "./chunk-7EAHB7TU.js";
|
|
9
9
|
import "./chunk-OJHDGJWP.js";
|
|
10
10
|
import "./chunk-6LI4WGAW.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-FP6XJXLI.js";
|
|
15
|
-
import "./chunk-2K5KKUL3.js";
|
|
11
|
+
import "./chunk-KWG4MUE3.js";
|
|
12
|
+
import "./chunk-O25O35J2.js";
|
|
13
|
+
import "./chunk-7VND5WMC.js";
|
|
16
14
|
import "./chunk-WN3D6AOY.js";
|
|
15
|
+
import "./chunk-OH3G6JMX.js";
|
|
17
16
|
import "./chunk-W423UTD3.js";
|
|
17
|
+
import "./chunk-2K5KKUL3.js";
|
|
18
18
|
import "./chunk-YU54OBFT.js";
|
|
19
19
|
import "./chunk-XMTHMR2B.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-VSMZTFUW.js";
|
|
21
|
+
import "./chunk-2CPXK3HU.js";
|
|
22
|
+
import "./chunk-F6DVF5WQ.js";
|
|
23
|
+
import "./chunk-GNB7T7J7.js";
|
|
24
|
+
import "./chunk-CVJG3VZM.js";
|
|
25
25
|
import "./chunk-PYIAC2GK.js";
|
|
26
26
|
export {
|
|
27
27
|
syncTypes,
|
|
28
28
|
syncTypesWithAuth
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=sync-types-
|
|
30
|
+
//# sourceMappingURL=sync-types-HI4GZPY7.js.map
|
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
getDefaultPackageManager,
|
|
5
4
|
resolveNpmDependencies,
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
resolvePackageManager
|
|
6
|
+
} from "./chunk-D4CWTPCC.js";
|
|
7
|
+
import "./chunk-IBISICD2.js";
|
|
8
|
+
import "./chunk-QKXNIB4D.js";
|
|
9
9
|
import {
|
|
10
10
|
createLogger
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RNE7RRCK.js";
|
|
12
|
+
import {
|
|
13
|
+
createI18nT
|
|
14
|
+
} from "./chunk-2G7FRAIA.js";
|
|
12
15
|
import "./chunk-CNXKF7E3.js";
|
|
13
16
|
import {
|
|
14
17
|
authenticate
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
createI18nT
|
|
18
|
-
} from "./chunk-ZSEFFYYF.js";
|
|
19
|
-
import "./chunk-OJHDGJWP.js";
|
|
18
|
+
} from "./chunk-PAPTRQZR.js";
|
|
20
19
|
import "./chunk-6XRFJZTQ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-TZ6REBY4.js";
|
|
21
|
+
import "./chunk-E2POOOG2.js";
|
|
22
|
+
import "./chunk-OJHDGJWP.js";
|
|
23
|
+
import "./chunk-BALHGZ6G.js";
|
|
24
|
+
import "./chunk-KWG4MUE3.js";
|
|
25
|
+
import "./chunk-O25O35J2.js";
|
|
26
|
+
import "./chunk-7VND5WMC.js";
|
|
26
27
|
import "./chunk-WN3D6AOY.js";
|
|
28
|
+
import "./chunk-OH3G6JMX.js";
|
|
27
29
|
import "./chunk-W423UTD3.js";
|
|
30
|
+
import "./chunk-2K5KKUL3.js";
|
|
28
31
|
import "./chunk-YU54OBFT.js";
|
|
29
32
|
import "./chunk-XMTHMR2B.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-VSMZTFUW.js";
|
|
34
|
+
import "./chunk-2CPXK3HU.js";
|
|
35
|
+
import "./chunk-F6DVF5WQ.js";
|
|
36
|
+
import "./chunk-GNB7T7J7.js";
|
|
34
37
|
import {
|
|
35
38
|
CliError,
|
|
36
39
|
CliErrorCode
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CVJG3VZM.js";
|
|
38
41
|
import {
|
|
39
42
|
init_esm_shims
|
|
40
43
|
} from "./chunk-PYIAC2GK.js";
|
|
@@ -59,28 +62,21 @@ async function uninstall(model, services, options, initialPackageName) {
|
|
|
59
62
|
cause: null
|
|
60
63
|
});
|
|
61
64
|
}
|
|
62
|
-
let packageManager;
|
|
63
|
-
if (options.yarn) {
|
|
64
|
-
packageManager = "yarn";
|
|
65
|
-
} else if (options.npm) {
|
|
66
|
-
packageManager = "npm";
|
|
67
|
-
} else {
|
|
68
|
-
packageManager = await getDefaultPackageManager(model.projectFolder);
|
|
69
|
-
}
|
|
70
65
|
const logDependencyUninstalled = logger.logDependencyUninstalling(packageName);
|
|
71
66
|
try {
|
|
72
|
-
await
|
|
67
|
+
const packageManager = await resolvePackageManager(
|
|
68
|
+
model.projectFolder,
|
|
69
|
+
options
|
|
70
|
+
);
|
|
71
|
+
await packageManager.runUninstallPackage(model.projectFolder, packageName);
|
|
73
72
|
await resolveNpmDependencies(model.projectFolder, { authState });
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
info: { model }
|
|
79
|
-
});
|
|
73
|
+
logDependencyUninstalled.success();
|
|
74
|
+
} catch (error) {
|
|
75
|
+
logDependencyUninstalled.fail();
|
|
76
|
+
throw error;
|
|
80
77
|
}
|
|
81
|
-
logDependencyUninstalled();
|
|
82
78
|
}
|
|
83
79
|
export {
|
|
84
80
|
uninstall
|
|
85
81
|
};
|
|
86
|
-
//# sourceMappingURL=uninstall-
|
|
82
|
+
//# sourceMappingURL=uninstall-Z4L27S7G.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../cli-site-old/src/uninstall/index.ts","../../cli-site-old/src/uninstall/uninstall.ts"],"sourcesContent":["export { uninstall } from './uninstall.js';\n","import { CliError, CliErrorCode } from '@wix/cli-error';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport {\n resolvePackageManager,\n resolveNpmDependencies,\n} from '../velo-npm/index.js';\nimport { createLogger } from '../logger.js';\nimport { createI18nT } from '../i18n.js';\nimport type { ProjectModel } from '../model.js';\nimport { authenticate } from '../authentication.js';\n\nexport async function uninstall(\n model: ProjectModel,\n services: CommandServices,\n options: {\n yarn?: boolean;\n npm?: boolean;\n },\n initialPackageName: string\n) {\n const t = createI18nT();\n const logger = createLogger({ t });\n\n const authState = await authenticate({\n metaSiteId: model.metaSiteId,\n biLogger: services.biLogger,\n errorReporter: services.errorReporter,\n });\n\n const packageName = initialPackageName.trim();\n\n if (!packageName) {\n throw new CliError({\n code: CliErrorCode.WixUninstallMissingPackageName(),\n cause: null,\n });\n }\n\n const logDependencyUninstalled =\n logger.logDependencyUninstalling(packageName);\n\n try {\n const packageManager = await resolvePackageManager(\n model.projectFolder,\n options\n );\n await packageManager.runUninstallPackage(model.projectFolder, packageName);\n await resolveNpmDependencies(model.projectFolder, { authState });\n logDependencyUninstalled.success();\n } catch (error) {\n logDependencyUninstalled.fail();\n throw error;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;ACAA;AAWA,eAAsB,UACpB,OACA,UACA,SAIA,oBACA;AACA,QAAM,IAAI,YAAY;AACtB,QAAM,SAAS,aAAa,EAAE,EAAE,CAAC;AAEjC,QAAM,YAAY,MAAM,aAAa;AAAA,IACnC,YAAY,MAAM;AAAA,IAClB,UAAU,SAAS;AAAA,IACnB,eAAe,SAAS;AAAA,EAC1B,CAAC;AAED,QAAM,cAAc,mBAAmB,KAAK;AAE5C,MAAI,CAAC,aAAa;AAChB,UAAM,IAAI,SAAS;AAAA,MACjB,MAAM,aAAa,+BAA+B;AAAA,MAClD,OAAO;AAAA,IACT,CAAC;AAAA,EACH;AAEA,QAAM,2BACJ,OAAO,0BAA0B,WAAW;AAE9C,MAAI;AACF,UAAM,iBAAiB,MAAM;AAAA,MAC3B,MAAM;AAAA,MACN;AAAA,IACF;AACA,UAAM,eAAe,oBAAoB,MAAM,eAAe,WAAW;AACzE,UAAM,uBAAuB,MAAM,eAAe,EAAE,UAAU,CAAC;AAC/D,6BAAyB,QAAQ;AAAA,EACnC,SAAS,OAAO;AACd,6BAAyB,KAAK;AAC9B,UAAM;AAAA,EACR;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/cli",
|
|
3
3
|
"description": "CLI tool for building Wix sites and applications",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.71",
|
|
5
5
|
"bin": {
|
|
6
6
|
"wix": "bin/wix.cjs"
|
|
7
7
|
},
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
]
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
"falconPackageHash": "
|
|
91
|
+
"falconPackageHash": "0b06d88a64c374d47a38268a6c30528fbc7a73db1138c5923a9f7a12"
|
|
92
92
|
}
|