@wix/create-new 0.0.91 → 0.0.93

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.
@@ -18236,12 +18236,45 @@ init_esm_shims();
18236
18236
  // ../cli-error/src/cli-error.ts
18237
18237
  init_esm_shims();
18238
18238
  var import_verror = __toESM(require_verror(), 1);
18239
+
18240
+ // ../cli-error/src/stringify-error.ts
18241
+ init_esm_shims();
18242
+ import { inspect } from "node:util";
18243
+ var UNPRINTABLE_ERROR = "<unprintable error>";
18244
+ function stringifyError(error) {
18245
+ try {
18246
+ if (error instanceof Error && typeof error.stack === "string") {
18247
+ return error.stack;
18248
+ }
18249
+ } catch {
18250
+ }
18251
+ if (typeof error === "string") {
18252
+ return error;
18253
+ }
18254
+ try {
18255
+ return inspect(error, {
18256
+ customInspect: false,
18257
+ getters: false,
18258
+ depth: 5
18259
+ });
18260
+ } catch {
18261
+ return UNPRINTABLE_ERROR;
18262
+ }
18263
+ }
18264
+
18265
+ // ../cli-error/src/cli-error.ts
18239
18266
  var { WError } = import_verror.default;
18240
18267
  function getNormalizedCause(cause) {
18241
18268
  if (cause == null) {
18242
18269
  return;
18243
18270
  }
18244
- return cause instanceof Error ? cause : new Error(JSON.stringify(cause));
18271
+ try {
18272
+ if (cause instanceof Error) {
18273
+ return cause;
18274
+ }
18275
+ } catch {
18276
+ }
18277
+ return new Error(stringifyError(cause));
18245
18278
  }
18246
18279
  var CliError = class extends WError {
18247
18280
  cliCode;
@@ -18396,7 +18429,8 @@ var CliSystemErrorCode = (0, import_variant.variant)({
18396
18429
  FailedToInitGitHubRepository: (0, import_variant.fields)(),
18397
18430
  FailedToGenerateExtensionConfig: (0, import_variant.fields)(),
18398
18431
  FailedToCreateCompanionApp: {},
18399
- PluginHandlerFailed: (0, import_variant.fields)()
18432
+ PluginHandlerFailed: (0, import_variant.fields)(),
18433
+ InvalidExtensionsBuildMetadata: {}
18400
18434
  });
18401
18435
  var CliUserErrorCode = (0, import_variant.variant)({
18402
18436
  LatestVersionOfCreateAppRequired: (0, import_variant.fields)(),
@@ -18446,6 +18480,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
18446
18480
  FailedToSaveDevelopmentSite: (0, import_variant.fields)(),
18447
18481
  FailedToBuildApp: {},
18448
18482
  FailedToBuildAstroApp: {},
18483
+ FailedToBuildExtensionsApp: {},
18449
18484
  FailedToInitializeGitRepo: {},
18450
18485
  FailedToInstallDependencies: {},
18451
18486
  FailedToCommitChanges: {},
@@ -21380,6 +21415,7 @@ var wixAstroAppConfigSchema = zod_default.object({
21380
21415
  $schema: zod_default.string().optional(),
21381
21416
  projectType: zod_default.literal("App"),
21382
21417
  appId: zod_default.string(),
21418
+ experimentalStandaloneExtensions: zod_default.boolean().optional(),
21383
21419
  projectId: zod_default.string().optional(),
21384
21420
  codeIdentifier: zod_default.string().optional(),
21385
21421
  namespace: zod_default.string().optional()
@@ -21457,6 +21493,9 @@ var buildMetadataSchema = zod_default.object({
21457
21493
  generateAppDeploymentGroupId: zod_default.boolean().optional(),
21458
21494
  extensionsTopology: extensionsTopologySchema.optional()
21459
21495
  });
21496
+ var extensionsBuildResultSchema = zod_default.object({
21497
+ metadata: buildMetadataSchema
21498
+ });
21460
21499
  var staticSiteBuildMetadaSchema = buildMetadataSchema.extend({
21461
21500
  metaDataSource: zod_default.literal("WIX_CONFIG").default("WIX_CONFIG"),
21462
21501
  appManifestPath: zod_default.string().optional()
@@ -21750,4 +21789,4 @@ is-git-url/index.js:
21750
21789
  * Released under the MIT License.
21751
21790
  *)
21752
21791
  */
21753
- //# sourceMappingURL=chunk-VA46CXPF.js.map
21792
+ //# sourceMappingURL=chunk-4MTB5HLH.js.map