message: Add an optional argument to build to specifiy the output filename
diff: @@ -6,7 +6,7 @@ import nodeResolve from '@rollup/plugin-node-resolve';
  import {terser} from 'rollup-plugin-terser';
  import {babelConfig} from './babel';
  -import {log, shouldUseReact, getEntry} from './utilities';
  +import {log, shouldUseReact, getEntry, namedArgument} from './utilities';
  export async function build(..._args: string[]) {
  log('Starting production build');
  @@ -40,7 +40,7 @@ export async function build(..._args: string[]) {
  });
  await build.write({
  - file: resolve('build/extension.js'),
  + file: resolve(`build/${getFileNameFromArgs(_args)}.js`),
  format: 'iife',
  });
  @@ -52,3 +52,10 @@ export async function build(..._args: string[]) {
  process.exitCode = 1;
  }
  }
  +
  +const DEFAULT_FILE_NAME = 'main';
  +
  +function getFileNameFromArgs(args: string[]) {
  + const fileName = namedArgument('filename', args);
  + return fileName || DEFAULT_FILE_NAME;
  +}
  