@apps-in-toss/web-framework 0.0.35 → 0.0.37

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/dist/cli/index.js CHANGED
@@ -51608,6 +51608,30 @@ var require_lib7 = __commonJS({
51608
51608
  }
51609
51609
  });
51610
51610
 
51611
+ // ../../.yarn/__virtual__/typia-virtual-93fdc6e779/0/cache/typia-npm-8.0.4-b2444b63f3-1028a8a121.zip/node_modules/typia/lib/internal/_validateReport.js
51612
+ var require_validateReport = __commonJS({
51613
+ "../../.yarn/__virtual__/typia-virtual-93fdc6e779/0/cache/typia-npm-8.0.4-b2444b63f3-1028a8a121.zip/node_modules/typia/lib/internal/_validateReport.js"(exports) {
51614
+ "use strict";
51615
+ init_esm_shims();
51616
+ Object.defineProperty(exports, "__esModule", { value: true });
51617
+ exports._validateReport = void 0;
51618
+ var _validateReport2 = (array) => {
51619
+ const reportable = (path9) => {
51620
+ if (array.length === 0)
51621
+ return true;
51622
+ const last = array[array.length - 1].path;
51623
+ return path9.length > last.length || last.substring(0, path9.length) !== path9;
51624
+ };
51625
+ return (exceptable, error) => {
51626
+ if (exceptable && reportable(error.path))
51627
+ array.push(error);
51628
+ return false;
51629
+ };
51630
+ };
51631
+ exports._validateReport = _validateReport2;
51632
+ }
51633
+ });
51634
+
51611
51635
  // ../../.yarn/cache/isexe-npm-2.0.0-ac27b2c17a-228cfa503f.zip/node_modules/isexe/windows.js
51612
51636
  var require_windows = __commonJS({
51613
51637
  "../../.yarn/cache/isexe-npm-2.0.0-ac27b2c17a-228cfa503f.zip/node_modules/isexe/windows.js"(exports, module) {
@@ -58154,16 +58178,10 @@ function babelJsonReplacementPlugin(_2, opts) {
58154
58178
 
58155
58179
  // src/plugins/appsInTossWeb.ts
58156
58180
  init_esm_shims();
58181
+ var __typia_transform__validateReport = __toESM(require_validateReport(), 1);
58157
58182
  import fs from "fs";
58158
58183
  import path6 from "path";
58159
- import {
58160
- appsInTossAppJson,
58161
- createArtifact,
58162
- appsInTossEsbuildConfig,
58163
- appsInTossMetroConfig,
58164
- setupRuntimeSetupScript,
58165
- collectDependencyVersions
58166
- } from "@apps-in-toss/plugins";
58184
+ import { appsInTossAppJson, createArtifact, appsInTossEsbuildConfig, appsInTossMetroConfig, setupRuntimeSetupScript, collectDependencyVersions } from "@apps-in-toss/plugins";
58167
58185
  import { getPackageRoot as getPackageRoot2 } from "@react-native-bedrock/utils";
58168
58186
 
58169
58187
  // ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/index.js
@@ -65166,6 +65184,323 @@ function getPackageManager({ isExecutor = false } = {}) {
65166
65184
  }
65167
65185
 
65168
65186
  // src/plugins/appsInTossWeb.ts
65187
+ var validateAppInTossWebPluginOptions = /* @__PURE__ */ (() => {
65188
+ const _io0 = (input) => "object" === typeof input.commands && null !== input.commands && _io1(input.commands) && ("object" === typeof input.brand && null !== input.brand && _io2(input.brand)) && (void 0 === input.webViewProps || "object" === typeof input.webViewProps && null !== input.webViewProps && false === Array.isArray(input.webViewProps) && _io3(input.webViewProps)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem)));
65189
+ const _io1 = (input) => "string" === typeof input.build;
65190
+ const _io2 = (input) => "string" === typeof input.displayName && "string" === typeof input.primaryColor && "string" === typeof input.icon && ("basic" === input.bridgeColorMode || "inverted" === input.bridgeColorMode);
65191
+ const _io3 = (input) => (void 0 === input.type || "partner" === input.type || "external" === input.type || "game" === input.type) && (void 0 === input.header || "object" === typeof input.header && null !== input.header && false === Array.isArray(input.header) && _io4(input.header)) && (void 0 === input.allowsInlineMediaPlayback || "boolean" === typeof input.allowsInlineMediaPlayback) && (void 0 === input.bounces || "boolean" === typeof input.bounces) && (void 0 === input.pullToRefreshEnabled || "boolean" === typeof input.pullToRefreshEnabled) && (void 0 === input.overScrollMode || "always" === input.overScrollMode || "content" === input.overScrollMode || "never" === input.overScrollMode) && (void 0 === input.mediaPlaybackRequiresUserAction || "boolean" === typeof input.mediaPlaybackRequiresUserAction) && (void 0 === input.allowsBackForwardNavigationGestures || "boolean" === typeof input.allowsBackForwardNavigationGestures);
65192
+ const _io4 = (input) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton) && (void 0 === input.initialAccessoryButtons || Array.isArray(input.initialAccessoryButtons) && input.initialAccessoryButtons.every((elem) => "object" === typeof elem && null !== elem && _io5(elem)));
65193
+ const _io5 = (input) => "string" === typeof input.id && "string" === typeof input.title && ("object" === typeof input.icon && null !== input.icon && _iu1(input.icon));
65194
+ const _io6 = (input) => "object" === typeof input.source && null !== input.source && _io7(input.source) && (null !== input.name && void 0 === input.name);
65195
+ const _io7 = (input) => "string" === typeof input.uri;
65196
+ const _io8 = (input) => "string" === typeof input.name && (null !== input.source && void 0 === input.source);
65197
+ const _io9 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
65198
+ const _io10 = (input) => "geolocation" === input.name && "access" === input.access;
65199
+ const _io11 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
65200
+ const _io12 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
65201
+ const _io13 = (input) => "camera" === input.name && "access" === input.access;
65202
+ const _iu0 = (input) => (() => {
65203
+ if ("camera" === input.name)
65204
+ return _io13(input);
65205
+ else if ("photos" === input.name)
65206
+ return _io12(input);
65207
+ else if ("contacts" === input.name)
65208
+ return _io11(input);
65209
+ else if ("geolocation" === input.name)
65210
+ return _io10(input);
65211
+ else if ("clipboard" === input.name)
65212
+ return _io9(input);
65213
+ else
65214
+ return false;
65215
+ })();
65216
+ const _iu1 = (input) => (() => {
65217
+ if ("string" === typeof input.name)
65218
+ return _io8(input);
65219
+ else if ("object" === typeof input.source && null !== input.source && _io7(input.source))
65220
+ return _io6(input);
65221
+ else
65222
+ return false;
65223
+ })();
65224
+ const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.commands && null !== input.commands || _report(_exceptionable, {
65225
+ path: _path + ".commands",
65226
+ expected: "__type",
65227
+ value: input.commands
65228
+ })) && _vo1(input.commands, _path + ".commands", _exceptionable) || _report(_exceptionable, {
65229
+ path: _path + ".commands",
65230
+ expected: "__type",
65231
+ value: input.commands
65232
+ }), ("object" === typeof input.brand && null !== input.brand || _report(_exceptionable, {
65233
+ path: _path + ".brand",
65234
+ expected: "__type.o1",
65235
+ value: input.brand
65236
+ })) && _vo2(input.brand, _path + ".brand", _exceptionable) || _report(_exceptionable, {
65237
+ path: _path + ".brand",
65238
+ expected: "__type.o1",
65239
+ value: input.brand
65240
+ }), void 0 === input.webViewProps || ("object" === typeof input.webViewProps && null !== input.webViewProps && false === Array.isArray(input.webViewProps) || _report(_exceptionable, {
65241
+ path: _path + ".webViewProps",
65242
+ expected: "(__type.o2 | undefined)",
65243
+ value: input.webViewProps
65244
+ })) && _vo3(input.webViewProps, _path + ".webViewProps", _exceptionable) || _report(_exceptionable, {
65245
+ path: _path + ".webViewProps",
65246
+ expected: "(__type.o2 | undefined)",
65247
+ value: input.webViewProps
65248
+ }), (Array.isArray(input.permissions) || _report(_exceptionable, {
65249
+ path: _path + ".permissions",
65250
+ expected: "Array<Permission>",
65251
+ value: input.permissions
65252
+ })) && input.permissions.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
65253
+ path: _path + ".permissions[" + _index3 + "]",
65254
+ expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
65255
+ value: elem
65256
+ })) && _vu0(elem, _path + ".permissions[" + _index3 + "]", _exceptionable) || _report(_exceptionable, {
65257
+ path: _path + ".permissions[" + _index3 + "]",
65258
+ expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
65259
+ value: elem
65260
+ })).every((flag) => flag) || _report(_exceptionable, {
65261
+ path: _path + ".permissions",
65262
+ expected: "Array<Permission>",
65263
+ value: input.permissions
65264
+ })].every((flag) => flag);
65265
+ const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.build || _report(_exceptionable, {
65266
+ path: _path + ".build",
65267
+ expected: "string",
65268
+ value: input.build
65269
+ })].every((flag) => flag);
65270
+ const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.displayName || _report(_exceptionable, {
65271
+ path: _path + ".displayName",
65272
+ expected: "string",
65273
+ value: input.displayName
65274
+ }), "string" === typeof input.primaryColor || _report(_exceptionable, {
65275
+ path: _path + ".primaryColor",
65276
+ expected: "string",
65277
+ value: input.primaryColor
65278
+ }), "string" === typeof input.icon || _report(_exceptionable, {
65279
+ path: _path + ".icon",
65280
+ expected: "string",
65281
+ value: input.icon
65282
+ }), "basic" === input.bridgeColorMode || "inverted" === input.bridgeColorMode || _report(_exceptionable, {
65283
+ path: _path + ".bridgeColorMode",
65284
+ expected: '("basic" | "inverted")',
65285
+ value: input.bridgeColorMode
65286
+ })].every((flag) => flag);
65287
+ const _vo3 = (input, _path, _exceptionable = true) => [void 0 === input.type || "partner" === input.type || "external" === input.type || "game" === input.type || _report(_exceptionable, {
65288
+ path: _path + ".type",
65289
+ expected: '("external" | "game" | "partner" | undefined)',
65290
+ value: input.type
65291
+ }), void 0 === input.header || ("object" === typeof input.header && null !== input.header && false === Array.isArray(input.header) || _report(_exceptionable, {
65292
+ path: _path + ".header",
65293
+ expected: "(__type.o3 | undefined)",
65294
+ value: input.header
65295
+ })) && _vo4(input.header, _path + ".header", _exceptionable) || _report(_exceptionable, {
65296
+ path: _path + ".header",
65297
+ expected: "(__type.o3 | undefined)",
65298
+ value: input.header
65299
+ }), void 0 === input.allowsInlineMediaPlayback || "boolean" === typeof input.allowsInlineMediaPlayback || _report(_exceptionable, {
65300
+ path: _path + ".allowsInlineMediaPlayback",
65301
+ expected: "(boolean | undefined)",
65302
+ value: input.allowsInlineMediaPlayback
65303
+ }), void 0 === input.bounces || "boolean" === typeof input.bounces || _report(_exceptionable, {
65304
+ path: _path + ".bounces",
65305
+ expected: "(boolean | undefined)",
65306
+ value: input.bounces
65307
+ }), void 0 === input.pullToRefreshEnabled || "boolean" === typeof input.pullToRefreshEnabled || _report(_exceptionable, {
65308
+ path: _path + ".pullToRefreshEnabled",
65309
+ expected: "(boolean | undefined)",
65310
+ value: input.pullToRefreshEnabled
65311
+ }), void 0 === input.overScrollMode || "always" === input.overScrollMode || "content" === input.overScrollMode || "never" === input.overScrollMode || _report(_exceptionable, {
65312
+ path: _path + ".overScrollMode",
65313
+ expected: '("always" | "content" | "never" | undefined)',
65314
+ value: input.overScrollMode
65315
+ }), void 0 === input.mediaPlaybackRequiresUserAction || "boolean" === typeof input.mediaPlaybackRequiresUserAction || _report(_exceptionable, {
65316
+ path: _path + ".mediaPlaybackRequiresUserAction",
65317
+ expected: "(boolean | undefined)",
65318
+ value: input.mediaPlaybackRequiresUserAction
65319
+ }), void 0 === input.allowsBackForwardNavigationGestures || "boolean" === typeof input.allowsBackForwardNavigationGestures || _report(_exceptionable, {
65320
+ path: _path + ".allowsBackForwardNavigationGestures",
65321
+ expected: "(boolean | undefined)",
65322
+ value: input.allowsBackForwardNavigationGestures
65323
+ })].every((flag) => flag);
65324
+ const _vo4 = (input, _path, _exceptionable = true) => [void 0 === input.withBackButton || "boolean" === typeof input.withBackButton || _report(_exceptionable, {
65325
+ path: _path + ".withBackButton",
65326
+ expected: "(boolean | undefined)",
65327
+ value: input.withBackButton
65328
+ }), void 0 === input.initialAccessoryButtons || (Array.isArray(input.initialAccessoryButtons) || _report(_exceptionable, {
65329
+ path: _path + ".initialAccessoryButtons",
65330
+ expected: "(Array<InitialAccessoryButton> | undefined)",
65331
+ value: input.initialAccessoryButtons
65332
+ })) && input.initialAccessoryButtons.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
65333
+ path: _path + ".initialAccessoryButtons[" + _index4 + "]",
65334
+ expected: "InitialAccessoryButton",
65335
+ value: elem
65336
+ })) && _vo5(elem, _path + ".initialAccessoryButtons[" + _index4 + "]", _exceptionable) || _report(_exceptionable, {
65337
+ path: _path + ".initialAccessoryButtons[" + _index4 + "]",
65338
+ expected: "InitialAccessoryButton",
65339
+ value: elem
65340
+ })).every((flag) => flag) || _report(_exceptionable, {
65341
+ path: _path + ".initialAccessoryButtons",
65342
+ expected: "(Array<InitialAccessoryButton> | undefined)",
65343
+ value: input.initialAccessoryButtons
65344
+ })].every((flag) => flag);
65345
+ const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
65346
+ path: _path + ".id",
65347
+ expected: "string",
65348
+ value: input.id
65349
+ }), "string" === typeof input.title || _report(_exceptionable, {
65350
+ path: _path + ".title",
65351
+ expected: "string",
65352
+ value: input.title
65353
+ }), ("object" === typeof input.icon && null !== input.icon || _report(_exceptionable, {
65354
+ path: _path + ".icon",
65355
+ expected: "(__type.o4 | __type.o6)",
65356
+ value: input.icon
65357
+ })) && _vu1(input.icon, _path + ".icon", _exceptionable) || _report(_exceptionable, {
65358
+ path: _path + ".icon",
65359
+ expected: "(__type.o4 | __type.o6)",
65360
+ value: input.icon
65361
+ })].every((flag) => flag);
65362
+ const _vo6 = (input, _path, _exceptionable = true) => [("object" === typeof input.source && null !== input.source || _report(_exceptionable, {
65363
+ path: _path + ".source",
65364
+ expected: "__type.o5",
65365
+ value: input.source
65366
+ })) && _vo7(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
65367
+ path: _path + ".source",
65368
+ expected: "__type.o5",
65369
+ value: input.source
65370
+ }), (null !== input.name || _report(_exceptionable, {
65371
+ path: _path + ".name",
65372
+ expected: "undefined",
65373
+ value: input.name
65374
+ })) && (void 0 === input.name || _report(_exceptionable, {
65375
+ path: _path + ".name",
65376
+ expected: "undefined",
65377
+ value: input.name
65378
+ }))].every((flag) => flag);
65379
+ const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
65380
+ path: _path + ".uri",
65381
+ expected: "string",
65382
+ value: input.uri
65383
+ })].every((flag) => flag);
65384
+ const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
65385
+ path: _path + ".name",
65386
+ expected: "string",
65387
+ value: input.name
65388
+ }), (null !== input.source || _report(_exceptionable, {
65389
+ path: _path + ".source",
65390
+ expected: "undefined",
65391
+ value: input.source
65392
+ })) && (void 0 === input.source || _report(_exceptionable, {
65393
+ path: _path + ".source",
65394
+ expected: "undefined",
65395
+ value: input.source
65396
+ }))].every((flag) => flag);
65397
+ const _vo9 = (input, _path, _exceptionable = true) => ["clipboard" === input.name || _report(_exceptionable, {
65398
+ path: _path + ".name",
65399
+ expected: '"clipboard"',
65400
+ value: input.name
65401
+ }), "read" === input.access || "write" === input.access || _report(_exceptionable, {
65402
+ path: _path + ".access",
65403
+ expected: '("read" | "write")',
65404
+ value: input.access
65405
+ })].every((flag) => flag);
65406
+ const _vo10 = (input, _path, _exceptionable = true) => ["geolocation" === input.name || _report(_exceptionable, {
65407
+ path: _path + ".name",
65408
+ expected: '"geolocation"',
65409
+ value: input.name
65410
+ }), "access" === input.access || _report(_exceptionable, {
65411
+ path: _path + ".access",
65412
+ expected: '"access"',
65413
+ value: input.access
65414
+ })].every((flag) => flag);
65415
+ const _vo11 = (input, _path, _exceptionable = true) => ["contacts" === input.name || _report(_exceptionable, {
65416
+ path: _path + ".name",
65417
+ expected: '"contacts"',
65418
+ value: input.name
65419
+ }), "read" === input.access || "write" === input.access || _report(_exceptionable, {
65420
+ path: _path + ".access",
65421
+ expected: '("read" | "write")',
65422
+ value: input.access
65423
+ })].every((flag) => flag);
65424
+ const _vo12 = (input, _path, _exceptionable = true) => ["photos" === input.name || _report(_exceptionable, {
65425
+ path: _path + ".name",
65426
+ expected: '"photos"',
65427
+ value: input.name
65428
+ }), "read" === input.access || "write" === input.access || _report(_exceptionable, {
65429
+ path: _path + ".access",
65430
+ expected: '("read" | "write")',
65431
+ value: input.access
65432
+ })].every((flag) => flag);
65433
+ const _vo13 = (input, _path, _exceptionable = true) => ["camera" === input.name || _report(_exceptionable, {
65434
+ path: _path + ".name",
65435
+ expected: '"camera"',
65436
+ value: input.name
65437
+ }), "access" === input.access || _report(_exceptionable, {
65438
+ path: _path + ".access",
65439
+ expected: '"access"',
65440
+ value: input.access
65441
+ })].every((flag) => flag);
65442
+ const _vu0 = (input, _path, _exceptionable = true) => (() => {
65443
+ if ("camera" === input.name)
65444
+ return _vo13(input, _path, _exceptionable);
65445
+ else if ("photos" === input.name)
65446
+ return _vo12(input, _path, _exceptionable);
65447
+ else if ("contacts" === input.name)
65448
+ return _vo11(input, _path, _exceptionable);
65449
+ else if ("geolocation" === input.name)
65450
+ return _vo10(input, _path, _exceptionable);
65451
+ else if ("clipboard" === input.name)
65452
+ return _vo9(input, _path, _exceptionable);
65453
+ else
65454
+ return _report(_exceptionable, {
65455
+ path: _path,
65456
+ expected: "(CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
65457
+ value: input
65458
+ });
65459
+ })();
65460
+ const _vu1 = (input, _path, _exceptionable = true) => (() => {
65461
+ if ("string" === typeof input.name)
65462
+ return _vo8(input, _path, _exceptionable);
65463
+ else if ("object" === typeof input.source && null !== input.source && _vo7(input.source, _path + ".source", false))
65464
+ return _vo6(input, _path, _exceptionable);
65465
+ else
65466
+ return _report(_exceptionable, {
65467
+ path: _path,
65468
+ expected: "(__type.o6 | __type.o4)",
65469
+ value: input
65470
+ });
65471
+ })();
65472
+ const __is = (input) => "object" === typeof input && null !== input && _io0(input);
65473
+ let errors;
65474
+ let _report;
65475
+ return (input) => {
65476
+ if (false === __is(input)) {
65477
+ errors = [];
65478
+ _report = __typia_transform__validateReport._validateReport(errors);
65479
+ ((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _report(true, {
65480
+ path: _path + "",
65481
+ expected: "AppsInTossWebPluginOptions",
65482
+ value: input2
65483
+ })) && _vo0(input2, _path + "", true) || _report(true, {
65484
+ path: _path + "",
65485
+ expected: "AppsInTossWebPluginOptions",
65486
+ value: input2
65487
+ }))(input, "$input", true);
65488
+ const success = 0 === errors.length;
65489
+ return success ? {
65490
+ success,
65491
+ data: input
65492
+ } : {
65493
+ success,
65494
+ errors,
65495
+ data: input
65496
+ };
65497
+ }
65498
+ return {
65499
+ success: true,
65500
+ data: input
65501
+ };
65502
+ };
65503
+ })();
65169
65504
  function appsInTossWebBuild(options) {
65170
65505
  const packageRoot = getPackageRoot2();
65171
65506
  return {
@@ -65193,14 +65528,10 @@ function appsInTossWebBuild(options) {
65193
65528
  }
65194
65529
  const webDistFiles = await fs.promises.readdir(webDistDir);
65195
65530
  if (webDistFiles.length === 0) {
65196
- throw new Error(
65197
- `\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC774 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. bedrock.config.ts\uC5D0\uC11C \uC124\uC815\uD55C outdir \uACBD\uB85C\uC640 \uBE4C\uB4DC \uBA85\uB839\uC5B4(web.commands.build)\uC758 \uACB0\uACFC\uBB3C \uACBD\uB85C\uAC00 \uAC19\uC740\uC9C0 \uD655\uC778\uD558\uC138\uC694.`
65198
- );
65531
+ throw new Error(`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC774 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. bedrock.config.ts\uC5D0\uC11C \uC124\uC815\uD55C outdir \uACBD\uB85C\uC640 \uBE4C\uB4DC \uBA85\uB839\uC5B4(web.commands.build)\uC758 \uACB0\uACFC\uBB3C \uACBD\uB85C\uAC00 \uAC19\uC740\uC9C0 \uD655\uC778\uD558\uC138\uC694.`);
65199
65532
  }
65200
65533
  if (!webDistFiles.includes("index.html")) {
65201
- throw new Error(
65202
- `\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC5D0 ${outdir}/web/index.html \uD30C\uC77C\uC774 \uD544\uC694\uD574\uC694. \uD604\uC7AC\uB294 CSR / SSG \uD658\uACBD\uB9CC \uC9C0\uC6D0\uD558\uACE0 \uC788\uC5B4\uC694.`
65203
- );
65534
+ throw new Error(`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC5D0 ${outdir}/web/index.html \uD30C\uC77C\uC774 \uD544\uC694\uD574\uC694. \uD604\uC7AC\uB294 CSR / SSG \uD658\uACBD\uB9CC \uC9C0\uC6D0\uD558\uACE0 \uC788\uC5B4\uC694.`);
65204
65535
  }
65205
65536
  }
65206
65537
  }
@@ -65210,19 +65541,15 @@ async function getWebDistFiles(webDistDir) {
65210
65541
  const additionalFilesToZip = [];
65211
65542
  try {
65212
65543
  const allFiles = await fs.promises.readdir(webDistDir, { recursive: true });
65213
- const webFiles = await Promise.all(
65214
- allFiles.map(async (file) => {
65215
- const filePath = path6.join(webDistDir, file);
65216
- const stat = await fs.promises.stat(filePath);
65217
- return stat.isFile() ? file : null;
65218
- })
65219
- ).then((files) => files.filter((file) => file !== null));
65220
- additionalFilesToZip.push(
65221
- ...webFiles.map((file) => ({
65222
- path: path6.join(webDistDir, file),
65223
- name: path6.join("web", file)
65224
- }))
65225
- );
65544
+ const webFiles = await Promise.all(allFiles.map(async (file) => {
65545
+ const filePath = path6.join(webDistDir, file);
65546
+ const stat = await fs.promises.stat(filePath);
65547
+ return stat.isFile() ? file : null;
65548
+ })).then((files) => files.filter((file) => file !== null));
65549
+ additionalFilesToZip.push(...webFiles.map((file) => ({
65550
+ path: path6.join(webDistDir, file),
65551
+ name: path6.join("web", file)
65552
+ })));
65226
65553
  } catch {
65227
65554
  }
65228
65555
  return additionalFilesToZip;
@@ -65267,6 +65594,11 @@ function appsInTossCreateArtifact(deploymentId) {
65267
65594
  };
65268
65595
  }
65269
65596
  function appsInTossWeb(deploymentId, options) {
65597
+ const result = validateAppInTossWebPluginOptions(options);
65598
+ if (!result.success) {
65599
+ console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. bedrock.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
65600
+ process.exit(1);
65601
+ }
65270
65602
  const { contents, path: envScriptPath } = setupRuntimeSetupScript({
65271
65603
  brand: options.brand,
65272
65604
  deploymentId
@@ -67878,6 +68210,16 @@ var DevCommand = class extends Command {
67878
68210
  async execute() {
67879
68211
  const packageRoot = getPackageRoot5();
67880
68212
  const config = await loadConfig();
68213
+ const result = validateAppInTossWebPluginOptions({
68214
+ commands: config.web.commands,
68215
+ permissions: config.permissions,
68216
+ brand: config.brand,
68217
+ webViewProps: config.webViewProps
68218
+ });
68219
+ if (!result.success) {
68220
+ console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. bedrock.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
68221
+ process.exit(1);
68222
+ }
67881
68223
  const { app, wss } = createApp(config);
67882
68224
  const server = serve(
67883
68225
  {