Help our source code review process: add a build-for-amo script

Hi, wonderful developers,

As part of our work to make source code review faster and more reliable, AMO now automatically attempts to build extensions from submitted source code and compares the result against the package you uploaded. When the two match, your submission can move through review much more quickly.

For now, this applies only if you submit source code that includes a package.json file to build your extension. If your extension has no build step, or you use a different build system, nothing changes for you. Our builder will keep its zero-config approach.

What to do

If your extension’s source code uses a package.json file, add an npm script named build-for-amo that runs the commands needed to build your extension for Firefox:

{
  "scripts": {
    "fx-build": "some commands to build your add-on for Firefox",
    "build-for-amo": "npm run fx-build"
  }
}

If you already have a Firefox-specific build command, just point build-for-amo at it. When present, our builder will invoke this script instead of guessing how to build your extension. And while you are at it, please make sure all your dev dependencies are listed in the package.json file.

Thanks for helping us make reviews faster for everyone!

1 Like