5.8 Changes to package.json for successful build

Not many changes here but important ones none the less. The version number is what appears in the about section of your simulation. For more information about that checkout What is the package.json?.

If you did make a new brand by a new brand by following the guide here Making your brand then you will have to add that to supportedBrands to be able to build the simulation with your brand.

One change that is a little subtle is the inclusion of bamboo. Since bamboo is an optional dependency (meaning not all simulations need it) it is left upto the developer to include it in the package.json.

All you have to do is include this code after the supportedBrands bit.

    // don't forget putting a comma here - see my code below for reference.
    "phetLibs": [
      "bamboo"
    ]

5.8.1 Code

{
  "name": "newton-raphson",
  "version": "08.19.21",
  "license": "GPL-3.0",
  "repository": {
    "type": "git",
    "url": "https://github.com/phetsims/newton-raphson.git"
  },
  "devDependencies": {
    "grunt": "~1.1.0"
  },
  "phet": {
    "requirejsNamespace": "NEWTON_RAPHSON",
    "simulation": true,
    "runnable": true,
    "colorProfile": true,
    "supportedBrands": [
      "phet",
      "adapted-from-phet",
      "HNM"
    ],
    "phetLibs": [
      "bamboo"
    ]
  },
  "eslintConfig": {
    "extends": "../chipper/eslint/sim_es6_eslintrc.js"
  }
}