@wix/create-app 0.0.160 → 0.0.162
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/index.js +56 -7
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -57885,6 +57885,7 @@ var testOverridesSchema = zod_default.object({
|
|
|
57885
57885
|
biLoggerBaseUrl: zod_default.string().url().optional(),
|
|
57886
57886
|
devEditorBaseUrl: zod_default.string().url().optional(),
|
|
57887
57887
|
inkDebug: zod_default.boolean().optional(),
|
|
57888
|
+
retries: zod_default.number().optional(),
|
|
57888
57889
|
minRetryTimeout: zod_default.number().optional(),
|
|
57889
57890
|
pollInterval: zod_default.number().optional(),
|
|
57890
57891
|
pollTimeout: zod_default.number().optional(),
|
|
@@ -58098,6 +58099,7 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
58098
58099
|
FailedToWriteJson: (0, import_variant11.fields)(),
|
|
58099
58100
|
FailedToWriteFile: (0, import_variant11.fields)(),
|
|
58100
58101
|
FailedToCreateDir: (0, import_variant11.fields)(),
|
|
58102
|
+
FailedToRemoveDir: (0, import_variant11.fields)(),
|
|
58101
58103
|
InvalidJsonFile: (0, import_variant11.fields)(),
|
|
58102
58104
|
FailedToWriteWixLock: {},
|
|
58103
58105
|
InvalidVeloConfigJson: (0, import_variant11.fields)(),
|
|
@@ -58148,6 +58150,11 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
58148
58150
|
AccountWasDeleted: {},
|
|
58149
58151
|
CliAppVersionMismatch: (0, import_variant11.fields)(),
|
|
58150
58152
|
NetworkError: {},
|
|
58153
|
+
FailedToQueryLocales: {},
|
|
58154
|
+
FailedToQueryPublishedContents: {},
|
|
58155
|
+
NoTranslationPublishedContents: {},
|
|
58156
|
+
TranslationUnsupportedForProjectType: {},
|
|
58157
|
+
MultilingualAppNotInstalled: {},
|
|
58151
58158
|
AppForVersionNotFound: (0, import_variant11.fields)(),
|
|
58152
58159
|
UnknownServicePlugin: (0, import_variant11.fields)(),
|
|
58153
58160
|
InvalidServicePluginFolder: (0, import_variant11.fields)(),
|
|
@@ -59232,7 +59239,12 @@ var validationErrorSchema = external_exports.object({
|
|
|
59232
59239
|
var applicationErrorSchema = external_exports.object({
|
|
59233
59240
|
details: external_exports.object({
|
|
59234
59241
|
applicationError: external_exports.object({
|
|
59235
|
-
code: external_exports.string()
|
|
59242
|
+
code: external_exports.string(),
|
|
59243
|
+
data: external_exports.object({
|
|
59244
|
+
appNotInstalled: external_exports.object({
|
|
59245
|
+
appId: external_exports.string()
|
|
59246
|
+
}).optional()
|
|
59247
|
+
}).optional()
|
|
59236
59248
|
})
|
|
59237
59249
|
})
|
|
59238
59250
|
});
|
|
@@ -59571,7 +59583,7 @@ var client = new AuthClient(createHttpClient({ type: "backoffice" }));
|
|
|
59571
59583
|
|
|
59572
59584
|
// ../cli-auth/src/auth-data.ts
|
|
59573
59585
|
init_esm_shims();
|
|
59574
|
-
import { unlink, rm } from "node:fs/promises";
|
|
59586
|
+
import { unlink, rm as rm2 } from "node:fs/promises";
|
|
59575
59587
|
import { resolve as resolve2 } from "node:path";
|
|
59576
59588
|
|
|
59577
59589
|
// ../cli-data-dir/src/index.ts
|
|
@@ -59591,7 +59603,8 @@ import {
|
|
|
59591
59603
|
access,
|
|
59592
59604
|
readFile as fsReadFile,
|
|
59593
59605
|
writeFile,
|
|
59594
|
-
mkdir
|
|
59606
|
+
mkdir,
|
|
59607
|
+
rm
|
|
59595
59608
|
} from "node:fs/promises";
|
|
59596
59609
|
import { dirname as dirname2, join, relative } from "node:path";
|
|
59597
59610
|
import { EOL } from "node:os";
|
|
@@ -59730,7 +59743,7 @@ async function saveAuthData(authData, siteId) {
|
|
|
59730
59743
|
}
|
|
59731
59744
|
async function deleteAuthData() {
|
|
59732
59745
|
try {
|
|
59733
|
-
await
|
|
59746
|
+
await rm2(getAuthDataFolder(), { recursive: true, force: true });
|
|
59734
59747
|
} catch (error) {
|
|
59735
59748
|
throw new CliError({
|
|
59736
59749
|
code: CliErrorCode.FailedToDeleteAuthData(),
|
|
@@ -67584,6 +67597,33 @@ function getErrorComponent(code, cause) {
|
|
|
67584
67597
|
FailedToRefreshTokenForSite: () => {
|
|
67585
67598
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "An error occurred while logging in: Failed to issue refresh token for site" });
|
|
67586
67599
|
},
|
|
67600
|
+
FailedToRemoveDir: ({ dirPath }) => {
|
|
67601
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67602
|
+
ErrorMessage,
|
|
67603
|
+
{
|
|
67604
|
+
message: `We failed to delete the directory ${dirPath}.`,
|
|
67605
|
+
hint: `Try to delete this directory manually.`
|
|
67606
|
+
}
|
|
67607
|
+
);
|
|
67608
|
+
},
|
|
67609
|
+
FailedToQueryLocales: () => {
|
|
67610
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to pull multilingual data." });
|
|
67611
|
+
},
|
|
67612
|
+
FailedToQueryPublishedContents: () => {
|
|
67613
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to query published contents." });
|
|
67614
|
+
},
|
|
67615
|
+
NoTranslationPublishedContents: () => {
|
|
67616
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67617
|
+
ErrorMessage,
|
|
67618
|
+
{
|
|
67619
|
+
message: "No translation published contents found.",
|
|
67620
|
+
hint: `Please make sure the "Wix Multilingual" app has published content.`
|
|
67621
|
+
}
|
|
67622
|
+
);
|
|
67623
|
+
},
|
|
67624
|
+
TranslationUnsupportedForProjectType: () => {
|
|
67625
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Translation pull command only applicable for headless sites." });
|
|
67626
|
+
},
|
|
67587
67627
|
FailedToRenewAuthToken: () => {
|
|
67588
67628
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to renew access token." });
|
|
67589
67629
|
},
|
|
@@ -68458,6 +68498,15 @@ function getErrorComponent(code, cause) {
|
|
|
68458
68498
|
}
|
|
68459
68499
|
);
|
|
68460
68500
|
},
|
|
68501
|
+
MultilingualAppNotInstalled: () => {
|
|
68502
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
68503
|
+
ErrorMessage,
|
|
68504
|
+
{
|
|
68505
|
+
message: `Multilingual app is not installed.`,
|
|
68506
|
+
hint: `Please install the "Wix Multilingual" app in your site dashboard to use this command.`
|
|
68507
|
+
}
|
|
68508
|
+
);
|
|
68509
|
+
},
|
|
68461
68510
|
InvalidServicePluginFolder: ({ relativePath }) => {
|
|
68462
68511
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
68463
68512
|
ErrorMessage,
|
|
@@ -73681,7 +73730,7 @@ function reportCommandStartEvent({
|
|
|
73681
73730
|
var package_default = {
|
|
73682
73731
|
name: "@wix/create-app",
|
|
73683
73732
|
description: "Create Wix apps",
|
|
73684
|
-
version: "0.0.
|
|
73733
|
+
version: "0.0.162",
|
|
73685
73734
|
author: "Ihor Machuzhak",
|
|
73686
73735
|
bin: "bin/index.cjs",
|
|
73687
73736
|
devDependencies: {
|
|
@@ -86232,7 +86281,7 @@ init_esm_shims();
|
|
|
86232
86281
|
// src/services/generator/template-fetcher.ts
|
|
86233
86282
|
init_esm_shims();
|
|
86234
86283
|
import { join as join13 } from "node:path";
|
|
86235
|
-
import { rm as
|
|
86284
|
+
import { rm as rm3 } from "node:fs/promises";
|
|
86236
86285
|
|
|
86237
86286
|
// ../../node_modules/tempy/index.js
|
|
86238
86287
|
init_esm_shims();
|
|
@@ -86387,7 +86436,7 @@ async function downloadAndExtractRepo(url2) {
|
|
|
86387
86436
|
const repoDir = temporaryDirectory2({ prefix: "wix-create-app" });
|
|
86388
86437
|
try {
|
|
86389
86438
|
await gitClone(url2, repoDir);
|
|
86390
|
-
await
|
|
86439
|
+
await rm3(join13(repoDir, ".git"), { recursive: true, force: true });
|
|
86391
86440
|
return repoDir;
|
|
86392
86441
|
} catch (e2) {
|
|
86393
86442
|
throw new CliError({
|