'use strict';

const tools = require('../../scripts/utils/tools');
const initUtils = require('../../scripts/csdr/init/init-utils');

Promise.resolve()
  .then(() => {
    return initUtils.remotes.initRemotesConfig();
  })
  .then(() => {
    return tools.runScript('node ./node_modules/@eui/tools/scripts/app/server.js --prod --packageInit');
  })
  .catch((e) => {
    console.log(e);
    process.exit(1);
  })
