@vercel/cervel 0.0.7 → 0.0.8

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.mjs CHANGED
@@ -47,6 +47,7 @@ const rolldown = async (args) => {
47
47
  };
48
48
  const extensionInfo = extensionMap[extension] || extensionMap[".js"];
49
49
  let resolvedFormat = extensionInfo.format === "auto" ? void 0 : extensionInfo.format;
50
+ const resolvedExtension = extensionInfo.extension;
50
51
  const packageJsonPath = join(args.workPath, "package.json");
51
52
  const external = [];
52
53
  let pkg = {};
@@ -76,6 +77,7 @@ const rolldown = async (args) => {
76
77
  cleanDir: true,
77
78
  dir: outputDir,
78
79
  format: resolvedFormat,
80
+ entryFileNames: `[name].${resolvedExtension}`,
79
81
  preserveModules: true,
80
82
  sourcemap: false
81
83
  }
@@ -228,7 +230,8 @@ const frameworks = [
228
230
  const entrypointFilenames = [
229
231
  "app",
230
232
  "index",
231
- "server"
233
+ "server",
234
+ "main"
232
235
  ];
233
236
  const entrypointExtensions = [
234
237
  "js",
package/dist/index.mjs CHANGED
@@ -46,6 +46,7 @@ const rolldown = async (args) => {
46
46
  };
47
47
  const extensionInfo = extensionMap[extension] || extensionMap[".js"];
48
48
  let resolvedFormat = extensionInfo.format === "auto" ? void 0 : extensionInfo.format;
49
+ const resolvedExtension = extensionInfo.extension;
49
50
  const packageJsonPath = join(args.workPath, "package.json");
50
51
  const external = [];
51
52
  let pkg = {};
@@ -75,6 +76,7 @@ const rolldown = async (args) => {
75
76
  cleanDir: true,
76
77
  dir: outputDir,
77
78
  format: resolvedFormat,
79
+ entryFileNames: `[name].${resolvedExtension}`,
78
80
  preserveModules: true,
79
81
  sourcemap: false
80
82
  }
@@ -227,7 +229,8 @@ const frameworks = [
227
229
  const entrypointFilenames = [
228
230
  "app",
229
231
  "index",
230
- "server"
232
+ "server",
233
+ "main"
231
234
  ];
232
235
  const entrypointExtensions = [
233
236
  "js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/cervel",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://vercel.com/docs",
6
6
  "publishConfig": {