code: function (version, cmd, args) {
          return __awaiter(this, void 0, void 0, function* () {
              let binpath = yield getBinPath(version);
              let parentEnv = process.env;
              let childPath = binpath + path.delimiter + parentEnv.PATH;
              let env = Object.assign({}, parentEnv, { PATH: childPath });
              let spawnOpts = { cwd: process.cwd(), env: env };
              return Promise.resolve(child_process_1.spawn(cmd, args, spawnOpts));
          });
      }
docs: /* ****************************************************************************
  Spawn a command with the `npm bin` path for a specific elm version
  prepended to PATH.