@apps-in-toss/web-framework 0.0.26 → 0.0.27

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
@@ -58161,7 +58161,8 @@ import {
58161
58161
  createArtifact,
58162
58162
  appsInTossEsbuildConfig,
58163
58163
  appsInTossMetroConfig,
58164
- setupRuntimeSetupScript
58164
+ setupRuntimeSetupScript,
58165
+ collectDependencyVersions
58165
58166
  } from "@apps-in-toss/plugins";
58166
58167
  import { getPackageRoot as getPackageRoot2 } from "@react-native-bedrock/utils";
58167
58168
 
@@ -65233,6 +65234,7 @@ function appsInTossCreateArtifact(deploymentId) {
65233
65234
  build: {
65234
65235
  order: "post",
65235
65236
  handler: async ({ buildResults, appName, cwd, outdir }) => {
65237
+ const { dependencies, devDependencies } = await collectDependencyVersions(cwd);
65236
65238
  const additionalFilesToZip = await getWebDistFiles(path6.join(outdir, "web"));
65237
65239
  const artifactOutfile = await createArtifact({
65238
65240
  reactNativeVersion: REACT_NATIVE_VERSION,
@@ -65249,7 +65251,11 @@ function appsInTossCreateArtifact(deploymentId) {
65249
65251
  ]).flat(),
65250
65252
  outfile: path6.join(cwd, `${appName}.ait`),
65251
65253
  appJsonPath: path6.join(packageRoot, ".bedrock", APP_MANIFEST_NAME),
65252
- additionalFilesToZip
65254
+ additionalFilesToZip,
65255
+ packageJson: {
65256
+ dependencies,
65257
+ devDependencies
65258
+ }
65253
65259
  });
65254
65260
  if (!artifactOutfile) {
65255
65261
  throw new Error("\uC544\uD2F0\uD329\uD2B8 \uC0DD\uC131\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694.");
@@ -65378,8 +65384,11 @@ async function runPrebuildToBuild(cwd, config) {
65378
65384
  webViewProps: config.webViewProps
65379
65385
  })
65380
65386
  ]);
65387
+ const pluginContext = {
65388
+ meta: /* @__PURE__ */ Object.create(null)
65389
+ };
65381
65390
  for (const preHandler of resolvedPlugins.build.preHandlers) {
65382
- await preHandler?.({
65391
+ await preHandler?.call(pluginContext, {
65383
65392
  cwd,
65384
65393
  entryFile: "",
65385
65394
  appName: config.appName,
@@ -65413,7 +65422,7 @@ async function runPrebuildToBuild(cwd, config) {
65413
65422
  throw new Error("Failed to build prod.json");
65414
65423
  }
65415
65424
  for (const postHandler of resolvedPlugins.build.postHandlers) {
65416
- await postHandler?.({
65425
+ await postHandler?.call(pluginContext, {
65417
65426
  cwd,
65418
65427
  entryFile: "",
65419
65428
  appName: config.appName,