@modern-js/app-tools 2.49.1-alpha.3 → 2.49.1-alpha.4

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.
@@ -48,7 +48,7 @@ var deploy_default = () => ({
48
48
  const appContext = api.useAppContext();
49
49
  const { appDirectory, distDirectory, serverInternalPlugins, sharedDirectory, apiDirectory, lambdaDirectory, metaName } = appContext;
50
50
  const configContext = api.useResolvedConfigContext();
51
- const outputDirectory = import_path.default.join(appDirectory, ".output");
51
+ let outputDirectory = import_path.default.join(appDirectory, ".output");
52
52
  let funcsDirectory = outputDirectory;
53
53
  let staticDirectory = import_path.default.join(outputDirectory, "static");
54
54
  await import_utils.fs.remove(outputDirectory);
@@ -61,6 +61,7 @@ var deploy_default = () => ({
61
61
  });
62
62
  }
63
63
  if (deployTarget === "vercel") {
64
+ outputDirectory = import_path.default.join(appDirectory, ".vercel/output");
64
65
  funcsDirectory = import_path.default.join(outputDirectory, "functions", "__modern.func");
65
66
  staticDirectory = import_path.default.join(outputDirectory, "static");
66
67
  await import_utils.fs.ensureDir(funcsDirectory);
@@ -55,6 +55,7 @@ function deploy_default() {
55
55
  3,
56
56
  8
57
57
  ];
58
+ outputDirectory = path.join(appDirectory, ".vercel/output");
58
59
  funcsDirectory = path.join(outputDirectory, "functions", "__modern.func");
59
60
  staticDirectory = path.join(outputDirectory, "static");
60
61
  return [
@@ -15,7 +15,7 @@ var deploy_default = () => ({
15
15
  const appContext = api.useAppContext();
16
16
  const { appDirectory, distDirectory, serverInternalPlugins, sharedDirectory, apiDirectory, lambdaDirectory, metaName } = appContext;
17
17
  const configContext = api.useResolvedConfigContext();
18
- const outputDirectory = path.join(appDirectory, ".output");
18
+ let outputDirectory = path.join(appDirectory, ".output");
19
19
  let funcsDirectory = outputDirectory;
20
20
  let staticDirectory = path.join(outputDirectory, "static");
21
21
  await fse.remove(outputDirectory);
@@ -28,6 +28,7 @@ var deploy_default = () => ({
28
28
  });
29
29
  }
30
30
  if (deployTarget === "vercel") {
31
+ outputDirectory = path.join(appDirectory, ".vercel/output");
31
32
  funcsDirectory = path.join(outputDirectory, "functions", "__modern.func");
32
33
  staticDirectory = path.join(outputDirectory, "static");
33
34
  await fse.ensureDir(funcsDirectory);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.49.1-alpha.3",
18
+ "version": "2.49.1-alpha.4",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -79,20 +79,20 @@
79
79
  "esbuild-register": "^3.5.0",
80
80
  "mlly": "^1.6.1",
81
81
  "pkg-types": "^1.1.0",
82
- "@modern-js/node-bundle-require": "2.49.0",
83
- "@modern-js/plugin": "2.49.0",
84
82
  "@modern-js/core": "2.49.0",
85
- "@modern-js/plugin-i18n": "2.49.0",
83
+ "@modern-js/plugin": "2.49.0",
86
84
  "@modern-js/plugin-lint": "2.49.0",
85
+ "@modern-js/plugin-i18n": "2.49.0",
86
+ "@modern-js/node-bundle-require": "2.49.0",
87
87
  "@modern-js/rsbuild-plugin-esbuild": "2.49.1",
88
- "@modern-js/server": "2.49.0",
89
- "@modern-js/server-core": "2.49.0",
90
- "@modern-js/server-utils": "2.49.0",
88
+ "@modern-js/prod-server": "2.49.0",
91
89
  "@modern-js/types": "2.49.0",
90
+ "@modern-js/server-core": "2.49.0",
91
+ "@modern-js/plugin-data-loader": "2.49.0",
92
+ "@modern-js/server": "2.49.0",
92
93
  "@modern-js/utils": "2.49.0",
93
- "@modern-js/prod-server": "2.49.0",
94
94
  "@modern-js/uni-builder": "2.49.0",
95
- "@modern-js/plugin-data-loader": "2.49.0"
95
+ "@modern-js/server-utils": "2.49.0"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@rsbuild/plugin-swc": "0.6.4",