@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.
@@ -13,7 +13,7 @@ import {
13
13
  require_lib,
14
14
  temporaryDirectory,
15
15
  updateEnvFile
16
- } from "./chunk-FFNTR7KK.js";
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-VACPB2NL.js.map
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-FFNTR7KK.js";
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-VACPB2NL.js");
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
- const siteTemplate = options.siteTemplate ?? DEFAULT_HEADLESS_TEMPLATE_NAME;
92064
- const appTemplate = headlessTemplates.find(
92065
- (item) => item.name === siteTemplate
92066
- );
92067
- if (!appTemplate) {
92068
- throw new CliError({
92069
- code: CliErrorCode.CliAppTemplateNotFound({
92070
- id: siteTemplate
92071
- }),
92072
- cause: null
92073
- });
92074
- }
92075
- if (options.templateRepo && options.templateRepoPath) {
92076
- return TemplateSource2.GitRepo({
92077
- siteTemplateId: appTemplate.siteTemplateId,
92078
- url: options.templateRepo,
92079
- path: options.templateRepoPath
92080
- });
92081
- }
92082
- if (options.templatePath) {
92083
- return TemplateSource2.Local({
92084
- siteTemplateId: appTemplate.siteTemplateId,
92085
- path: options.templatePath
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 <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).default(DEFAULT_HEADLESS_TEMPLATE_NAME)
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.70",
94197
+ version: "0.0.71",
94194
94198
  bin: "bin/index.cjs",
94195
94199
  devDependencies: {
94196
94200
  "@commander-js/extra-typings": "^13.0.0",