@apps-in-toss/web-framework 0.0.0-dev.1741344445455 → 0.0.0-dev.1741346821380

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/bin.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { initialize } from './dist/cli.js';
2
+ import { initialize } from './dist/cli/index.js';
3
3
 
4
4
  initialize();
@@ -52122,7 +52122,7 @@ var require_cross_spawn2 = __commonJS({
52122
52122
  }
52123
52123
  });
52124
52124
 
52125
- // src/cli.ts
52125
+ // src/cli/index.ts
52126
52126
  init_esm_shims();
52127
52127
 
52128
52128
  // ../../.yarn/__virtual__/clipanion-virtual-8d4993908b/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/index.mjs
@@ -53804,7 +53804,7 @@ function String2(descriptor, ...args) {
53804
53804
  }
53805
53805
  }
53806
53806
 
53807
- // src/commands/BuildCommand.ts
53807
+ // src/cli/commands/BuildCommand.ts
53808
53808
  init_esm_shims();
53809
53809
  import fs11 from "fs";
53810
53810
  import path24 from "path";
@@ -54042,9 +54042,6 @@ var Te = async (t2) => {
54042
54042
  }
54043
54043
  };
54044
54044
 
54045
- // src/commands/BuildCommand.ts
54046
- import { resolvePlugins } from "react-native-bedrock/config";
54047
-
54048
54045
  // src/babel.ts
54049
54046
  init_esm_shims();
54050
54047
  var t = __toESM(require_lib3(), 1);
@@ -93683,7 +93680,39 @@ function appsInTossWeb(options) {
93683
93680
  ];
93684
93681
  }
93685
93682
 
93686
- // src/commands/BuildCommand.ts
93683
+ // src/plugins/resolvePlugins.ts
93684
+ init_esm_shims();
93685
+ var flattenPlugins = async (plugin) => {
93686
+ if (Array.isArray(plugin)) {
93687
+ const flattened = await Promise.all(
93688
+ plugin.map(async (p) => {
93689
+ if (p instanceof Promise) {
93690
+ const resolved2 = await p;
93691
+ if (Array.isArray(resolved2)) {
93692
+ const nested = await Promise.all(resolved2.map(flattenPlugins));
93693
+ return nested.flat();
93694
+ }
93695
+ return flattenPlugins(resolved2);
93696
+ }
93697
+ return flattenPlugins(p);
93698
+ })
93699
+ );
93700
+ return flattened.flat();
93701
+ }
93702
+ const resolved = await plugin;
93703
+ return [resolved];
93704
+ };
93705
+ async function resolvePlugins(plugins) {
93706
+ const pluginsResolved = await flattenPlugins(plugins);
93707
+ return {
93708
+ build: {
93709
+ preHandlers: pluginsResolved.filter((plugin) => plugin.build?.order === "pre").map((plugin) => plugin.build?.handler),
93710
+ postHandlers: pluginsResolved.filter((plugin) => plugin.build?.order === "post").map((plugin) => plugin.build?.handler)
93711
+ }
93712
+ };
93713
+ }
93714
+
93715
+ // src/cli/commands/BuildCommand.ts
93687
93716
  async function build({
93688
93717
  appName,
93689
93718
  outdir,
@@ -93805,7 +93834,7 @@ var BuildCommand = class extends Command {
93805
93834
  }
93806
93835
  };
93807
93836
 
93808
- // src/commands/DevCommand.ts
93837
+ // src/cli/commands/DevCommand.ts
93809
93838
  init_esm_shims();
93810
93839
 
93811
93840
  // ../../.yarn/__virtual__/@hono-node-server-virtual-cf2888014c/0/cache/@hono-node-server-npm-1.13.8-e78cfff928-5880892fdd.zip/node_modules/@hono/node-server/dist/index.mjs
@@ -95937,7 +95966,7 @@ var createApp = ({
95937
95966
  return app;
95938
95967
  };
95939
95968
 
95940
- // src/commands/DevCommand.ts
95969
+ // src/cli/commands/DevCommand.ts
95941
95970
  var DevCommand = class extends Command {
95942
95971
  static paths = [[`dev`]];
95943
95972
  static usage = Command.Usage({
@@ -95973,7 +96002,7 @@ var DevCommand = class extends Command {
95973
96002
  }
95974
96003
  };
95975
96004
 
95976
- // src/cli.ts
96005
+ // src/cli/index.ts
95977
96006
  var cli = new Cli({
95978
96007
  binaryLabel: "bedrock",
95979
96008
  binaryName: "bedrock",
@@ -1,16 +1,4 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import {
3
- init_esm_shims
4
- } from "../chunk-HDRFXOPA.js";
5
-
6
- // src/config/index.ts
7
- init_esm_shims();
8
-
9
- // src/config/defineConfig.ts
10
- init_esm_shims();
11
-
12
1
  // ../../.yarn/cache/zod-npm-3.24.1-d1bd51cab5-0223d21dba.zip/node_modules/zod/lib/index.mjs
13
- init_esm_shims();
14
2
  var util;
15
3
  (function(util2) {
16
4
  util2.assertEqual = (val) => val;