-
Notifications
You must be signed in to change notification settings - Fork 76
/
index.js
39 lines (34 loc) · 840 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* eslint-env node */
'use strict';
module.exports = {
name: require('./package').name,
options: {
autoImport: {
webpack: {
node: {
global: true,
},
},
},
},
init: function () {
this._super.init && this._super.init.apply(this, arguments);
},
included(app) {
this._super.included.apply(this, arguments);
// see: https://github.com/ember-cli/ember-cli/issues/3718
if (typeof app.import !== 'function' && app.app) {
app = app.app;
}
let env = this.project.config(app.env);
if (env.emberpouch) {
if (
Object.prototype.hasOwnProperty.call(env.emberpouch, 'dontsavehasmany')
) {
this.ui.writeWarnLine(
'The `dontsavehasmany` flag is no longer needed in `config/environment.js`'
);
}
}
},
};