@wix/create-new 0.0.70 → 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-FFNTR7KK.js → chunk-4MNGTB2N.js} +42 -36
- package/build/{chunk-FFNTR7KK.js.map → chunk-4MNGTB2N.js.map} +1 -1
- package/build/{generator-VACPB2NL.js → generator-23FBIF5G.js} +2 -2
- package/build/index.js +34 -30
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-VACPB2NL.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,
|
|
@@ -65746,6 +65746,9 @@ ${errorMessage2}`
|
|
|
65746
65746
|
}
|
|
65747
65747
|
);
|
|
65748
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
|
+
},
|
|
65749
65752
|
FailedToCreateMonitoringVitePlugin: ({ configPath }) => {
|
|
65750
65753
|
return () => /* @__PURE__ */ import_react83.default.createElement(
|
|
65751
65754
|
ErrorMessage,
|
|
@@ -81798,7 +81801,7 @@ function getTasks({
|
|
|
81798
81801
|
cause: e2
|
|
81799
81802
|
});
|
|
81800
81803
|
}
|
|
81801
|
-
const { generateApp } = await import("./generator-
|
|
81804
|
+
const { generateApp } = await import("./generator-23FBIF5G.js");
|
|
81802
81805
|
await generateApp({
|
|
81803
81806
|
packageName,
|
|
81804
81807
|
packageFolder,
|
|
@@ -92060,32 +92063,33 @@ function parseCloudProviders(cloudProvider) {
|
|
|
92060
92063
|
return [parseProviderString(cloudProvider)];
|
|
92061
92064
|
}
|
|
92062
92065
|
async function parseTemplateOptions2(options) {
|
|
92063
|
-
|
|
92064
|
-
|
|
92065
|
-
|
|
92066
|
-
|
|
92067
|
-
|
|
92068
|
-
|
|
92069
|
-
|
|
92070
|
-
|
|
92071
|
-
|
|
92072
|
-
|
|
92073
|
-
|
|
92074
|
-
|
|
92075
|
-
|
|
92076
|
-
|
|
92077
|
-
|
|
92078
|
-
|
|
92079
|
-
|
|
92080
|
-
|
|
92081
|
-
|
|
92082
|
-
|
|
92083
|
-
|
|
92084
|
-
|
|
92085
|
-
|
|
92086
|
-
|
|
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);
|
|
92087
92092
|
}
|
|
92088
|
-
return TemplateSource2.HeadlessApp(appTemplate);
|
|
92089
92093
|
}
|
|
92090
92094
|
async function parseProjectNameOptions(targetParentFolder2, options) {
|
|
92091
92095
|
const projectName = options.projectName;
|
|
@@ -94097,9 +94101,9 @@ var getHeadlessCommand = ({
|
|
|
94097
94101
|
)
|
|
94098
94102
|
).addOption(
|
|
94099
94103
|
new Option(
|
|
94100
|
-
"--site-template
|
|
94104
|
+
"--site-template [site-template]",
|
|
94101
94105
|
"Site template to use for the app creation"
|
|
94102
|
-
).choices(pureHeadlessTemplates.map((template) => template.name)).argParser(validateSiteTemplate).
|
|
94106
|
+
).choices(pureHeadlessTemplates.map((template) => template.name)).argParser(validateSiteTemplate).preset(DEFAULT_HEADLESS_TEMPLATE_NAME)
|
|
94103
94107
|
).addOption(
|
|
94104
94108
|
new Option(
|
|
94105
94109
|
"--template-repo <template-repo>",
|
|
@@ -94190,7 +94194,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
94190
94194
|
var package_default = {
|
|
94191
94195
|
name: "@wix/create-new",
|
|
94192
94196
|
description: "General entry point for creating Wix projects",
|
|
94193
|
-
version: "0.0.
|
|
94197
|
+
version: "0.0.71",
|
|
94194
94198
|
bin: "bin/index.cjs",
|
|
94195
94199
|
devDependencies: {
|
|
94196
94200
|
"@commander-js/extra-typings": "^13.0.0",
|