@wix/create-new 0.0.73 → 0.0.74

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 CHANGED
@@ -92051,16 +92051,13 @@ function parseProviderString(cloudProvider) {
92051
92051
  });
92052
92052
  }
92053
92053
  }
92054
- function parseCloudProviders(cloudProvider) {
92054
+ function parseCloudProviders() {
92055
92055
  const envProviders = process.env.WIX_CLOUD_PROVIDERS;
92056
92056
  if (envProviders) {
92057
- const providers = envProviders.split(",").map((p) => p.trim()).filter(Boolean);
92057
+ const providers = envProviders.split(",").map((provider) => provider.trim()).filter(Boolean);
92058
92058
  return providers.map(parseProviderString);
92059
92059
  }
92060
- if (!cloudProvider) {
92061
- return [CloudProvider.CLOUD_FLARE];
92062
- }
92063
- return [parseProviderString(cloudProvider)];
92060
+ return [CloudProvider.CLOUD_FLARE];
92064
92061
  }
92065
92062
  async function parseTemplateOptions2(options) {
92066
92063
  if (options.siteTemplate) {
@@ -92132,7 +92129,7 @@ async function parseCommandOptions2(targetParentFolder2, options) {
92132
92129
  targetParentFolder2,
92133
92130
  options
92134
92131
  );
92135
- const cloudProviders = parseCloudProviders(options.cloudProvider);
92132
+ const cloudProviders = parseCloudProviders();
92136
92133
  const publish = processPublish({
92137
92134
  template,
92138
92135
  projectName,
@@ -92184,19 +92181,6 @@ function validateTemplateParams2(value2) {
92184
92181
  }
92185
92182
  }
92186
92183
 
92187
- // ../create-new-packages/headless-command/src/validations/validate-cloud-provider.ts
92188
- init_esm_shims();
92189
- var validateCloudProvider = (value2) => {
92190
- const allowedValues = ["cloudflare", "kubernetes"];
92191
- const normalizedValue = value2.toLowerCase();
92192
- if (!allowedValues.includes(normalizedValue)) {
92193
- throw new Error(
92194
- `Invalid cloud provider: ${value2}. Allowed values are: ${allowedValues.join(", ")}`
92195
- );
92196
- }
92197
- return normalizedValue;
92198
- };
92199
-
92200
92184
  // ../create-new-packages/headless-command/src/components/ProcessCommand.tsx
92201
92185
  init_esm_shims();
92202
92186
  var import_react155 = __toESM(require_react(), 1);
@@ -94136,11 +94120,6 @@ var getHeadlessCommand = ({
94136
94120
  "--project-name <project-name>",
94137
94121
  "The name of your Custom Frontend project"
94138
94122
  ).argParser(validateProjectName)
94139
- ).addOption(
94140
- new Option(
94141
- "--cloud-provider <cloud-provider>",
94142
- "Cloud provider for deployment"
94143
- ).argParser(validateCloudProvider).hideHelp()
94144
94123
  ).addOption(
94145
94124
  new Option(
94146
94125
  "--no-publish",
@@ -94196,7 +94175,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
94196
94175
  var package_default = {
94197
94176
  name: "@wix/create-new",
94198
94177
  description: "General entry point for creating Wix projects",
94199
- version: "0.0.73",
94178
+ version: "0.0.74",
94200
94179
  bin: "bin/index.cjs",
94201
94180
  devDependencies: {
94202
94181
  "@commander-js/extra-typings": "^13.0.0",