message: [cli] Ignore `required-server-files.json` if it does not exist
diff: @@ -612,14 +612,18 @@ export default async function main(client: Client) {
  }
  }
  - client.output.debug(`Resolve ${param('required-server-files.json')}.`);
  const requiredServerFilesPath = join(
  OUTPUT_DIR,
  'required-server-files.json'
  );
  +
  + if (fs.existsSync(requiredServerFilesPath)) {
  + client.output.debug(`Resolve ${param('required-server-files.json')}.`);
  +
  const requiredServerFilesJson = await fs.readJSON(
  requiredServerFilesPath
  );
  +
  await fs.writeJSON(requiredServerFilesPath, {
  ...requiredServerFilesJson,
  appDir: '.',
  @@ -640,6 +644,7 @@ export default async function main(client: Client) {
  });
  }
  }
  + }
  // Build Plugins
  if (plugins?.buildPlugins && plugins.buildPlugins.length > 0) {
  