message: Always write package.json to artifact
diff: @@ -158,9 +158,8 @@ export const NodeHandler: Definition<Bundle> = (opts) => {
  minify: false,
  incremental: true,
  });
  - if (bundle.format === "esm")
  fs.writeJSONSync(path.join(artifact, "package.json"), {
  - type: "module",
  + type: bundle.format === "esm" ? "module" : "commonjs",
  });
  BUILD_CACHE[opts.id] = result;
  return [];
  @@ -204,9 +203,8 @@ export const NodeHandler: Definition<Bundle> = (opts) => {
  fs.mkdirpSync(artifact);
  const builder = path.join(artifact, "builder.cjs");
  fs.writeFileSync(builder, script);
  - if (bundle.format === "esm")
  fs.writeJSONSync(path.join(artifact, "package.json"), {
  - type: "module",
  + type: bundle.format === "esm" ? "module" : "commonjs",
  });
  const result = spawn.sync("node", [builder], {
  stdio: "pipe",
  