/* eslint-env node */
'use strict';

module.exports = {
  normalizeEntityName() {},

  afterInstall() {
    let pkg = require('../../package.json');

    return this.addPackageToProject('jquery-datetimepicker', pkg.devDependencies['jquery-datetimepicker']).then(() => {
      return this.addAddonToProject({ name: 'ember-cli-moment-shim', target: pkg.devDependencies['ember-cli-moment-shim'] });
    });
  }
};

/* eslint-env node */
'use strict';

const fs = require('fs');
const path = require('path');

module.exports = {
  normalizeEntityName() {},

  afterInstall() {
    let pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json'), 'utf8'));

    return this.addPackageToProject('jquery-datetimepicker', pkg.devDependencies['jquery-datetimepicker']).then(() => {
      return this.addAddonToProject({ name: 'ember-cli-moment-shim', target: pkg.devDependencies['ember-cli-moment-shim'] });
    });
  }
};

Revert "use require to read package.json"
Revert "use require to read package.json"

This reverts commit 284623a4f42e6a23ee96a7505951191f80545d7d.
