@wix/create-new 0.0.69 → 0.0.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/{chunk-UYE4R7XA.js → chunk-4MNGTB2N.js} +43 -36
- package/build/{chunk-UYE4R7XA.js.map → chunk-4MNGTB2N.js.map} +1 -1
- package/build/{generator-NFUFXD34.js → generator-23FBIF5G.js} +2 -2
- package/build/index.js +37 -30
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-NFUFXD34.js.map → generator-23FBIF5G.js.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
require_lib,
|
|
14
14
|
temporaryDirectory,
|
|
15
15
|
updateEnvFile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4MNGTB2N.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM,
|
|
19
19
|
init_esm_shims
|
|
@@ -115,4 +115,4 @@ async function generateApp({
|
|
|
115
115
|
export {
|
|
116
116
|
generateApp
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=generator-
|
|
118
|
+
//# sourceMappingURL=generator-23FBIF5G.js.map
|
package/build/index.js
CHANGED
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
writeJson,
|
|
119
119
|
writePackageJson,
|
|
120
120
|
zod_default
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-4MNGTB2N.js";
|
|
122
122
|
import {
|
|
123
123
|
__commonJS,
|
|
124
124
|
__dirname,
|
|
@@ -65064,6 +65064,9 @@ function getErrorComponent(code, cause) {
|
|
|
65064
65064
|
AuthenticationRequired: () => {
|
|
65065
65065
|
return () => /* @__PURE__ */ import_react83.default.createElement(ErrorMessage, { message: "You have to already be logged in to run this command." });
|
|
65066
65066
|
},
|
|
65067
|
+
LoginRequired: () => {
|
|
65068
|
+
return () => /* @__PURE__ */ import_react83.default.createElement(ErrorMessage, { message: "You are not authenticated, log in by running `wix login`." });
|
|
65069
|
+
},
|
|
65067
65070
|
InvalidApiKey: () => {
|
|
65068
65071
|
return () => /* @__PURE__ */ import_react83.default.createElement(ErrorMessage, { message: "You used invalid API key to log in." });
|
|
65069
65072
|
},
|
|
@@ -65743,6 +65746,9 @@ ${errorMessage2}`
|
|
|
65743
65746
|
}
|
|
65744
65747
|
);
|
|
65745
65748
|
},
|
|
65749
|
+
SiteOutputDirectoryOutsideProject: () => {
|
|
65750
|
+
return () => /* @__PURE__ */ import_react83.default.createElement(ErrorMessage, { message: "Your site output directory must be located inside the main project folder. Please update your configuration." });
|
|
65751
|
+
},
|
|
65746
65752
|
FailedToCreateMonitoringVitePlugin: ({ configPath }) => {
|
|
65747
65753
|
return () => /* @__PURE__ */ import_react83.default.createElement(
|
|
65748
65754
|
ErrorMessage,
|
|
@@ -81795,7 +81801,7 @@ function getTasks({
|
|
|
81795
81801
|
cause: e2
|
|
81796
81802
|
});
|
|
81797
81803
|
}
|
|
81798
|
-
const { generateApp } = await import("./generator-
|
|
81804
|
+
const { generateApp } = await import("./generator-23FBIF5G.js");
|
|
81799
81805
|
await generateApp({
|
|
81800
81806
|
packageName,
|
|
81801
81807
|
packageFolder,
|
|
@@ -92057,32 +92063,33 @@ function parseCloudProviders(cloudProvider) {
|
|
|
92057
92063
|
return [parseProviderString(cloudProvider)];
|
|
92058
92064
|
}
|
|
92059
92065
|
async function parseTemplateOptions2(options) {
|
|
92060
|
-
|
|
92061
|
-
|
|
92062
|
-
|
|
92063
|
-
|
|
92064
|
-
|
|
92065
|
-
|
|
92066
|
-
|
|
92067
|
-
|
|
92068
|
-
|
|
92069
|
-
|
|
92070
|
-
|
|
92071
|
-
|
|
92072
|
-
|
|
92073
|
-
|
|
92074
|
-
|
|
92075
|
-
|
|
92076
|
-
|
|
92077
|
-
|
|
92078
|
-
|
|
92079
|
-
|
|
92080
|
-
|
|
92081
|
-
|
|
92082
|
-
|
|
92083
|
-
|
|
92066
|
+
if (options.siteTemplate) {
|
|
92067
|
+
const appTemplate = headlessTemplates.find(
|
|
92068
|
+
(item) => item.name === options.siteTemplate
|
|
92069
|
+
);
|
|
92070
|
+
if (!appTemplate) {
|
|
92071
|
+
throw new CliError({
|
|
92072
|
+
code: CliErrorCode.CliAppTemplateNotFound({
|
|
92073
|
+
id: options.siteTemplate
|
|
92074
|
+
}),
|
|
92075
|
+
cause: null
|
|
92076
|
+
});
|
|
92077
|
+
}
|
|
92078
|
+
if (options.templateRepo && options.templateRepoPath) {
|
|
92079
|
+
return TemplateSource2.GitRepo({
|
|
92080
|
+
siteTemplateId: appTemplate.siteTemplateId,
|
|
92081
|
+
url: options.templateRepo,
|
|
92082
|
+
path: options.templateRepoPath
|
|
92083
|
+
});
|
|
92084
|
+
}
|
|
92085
|
+
if (options.templatePath) {
|
|
92086
|
+
return TemplateSource2.Local({
|
|
92087
|
+
siteTemplateId: appTemplate.siteTemplateId,
|
|
92088
|
+
path: options.templatePath
|
|
92089
|
+
});
|
|
92090
|
+
}
|
|
92091
|
+
return TemplateSource2.HeadlessApp(appTemplate);
|
|
92084
92092
|
}
|
|
92085
|
-
return TemplateSource2.HeadlessApp(appTemplate);
|
|
92086
92093
|
}
|
|
92087
92094
|
async function parseProjectNameOptions(targetParentFolder2, options) {
|
|
92088
92095
|
const projectName = options.projectName;
|
|
@@ -94094,9 +94101,9 @@ var getHeadlessCommand = ({
|
|
|
94094
94101
|
)
|
|
94095
94102
|
).addOption(
|
|
94096
94103
|
new Option(
|
|
94097
|
-
"--site-template
|
|
94104
|
+
"--site-template [site-template]",
|
|
94098
94105
|
"Site template to use for the app creation"
|
|
94099
|
-
).choices(pureHeadlessTemplates.map((template) => template.name)).argParser(validateSiteTemplate).
|
|
94106
|
+
).choices(pureHeadlessTemplates.map((template) => template.name)).argParser(validateSiteTemplate).preset(DEFAULT_HEADLESS_TEMPLATE_NAME)
|
|
94100
94107
|
).addOption(
|
|
94101
94108
|
new Option(
|
|
94102
94109
|
"--template-repo <template-repo>",
|
|
@@ -94187,7 +94194,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
94187
94194
|
var package_default = {
|
|
94188
94195
|
name: "@wix/create-new",
|
|
94189
94196
|
description: "General entry point for creating Wix projects",
|
|
94190
|
-
version: "0.0.
|
|
94197
|
+
version: "0.0.71",
|
|
94191
94198
|
bin: "bin/index.cjs",
|
|
94192
94199
|
devDependencies: {
|
|
94193
94200
|
"@commander-js/extra-typings": "^13.0.0",
|