1
0
Fork 0

Make sure manifest always has config and deps.

This commit is contained in:
Alan Plum 2015-06-02 15:17:30 +02:00
parent a2d99b55ec
commit fcbd66c2ff
1 changed files with 6 additions and 0 deletions

View File

@ -161,6 +161,12 @@ function computeRootAppPath(mount, isValidation) {
name: "unknown",
version: "error"
};
if (!this._manifest.configuration) {
this._manifest.configuration = {};
}
if (!this._manifest.dependencies) {
this._manifest.dependencies = {};
}
this._name = this._manifest.name;
this._version = this._manifest.version;
this._root = computeRootAppPath(config.mount, config.id === "__internal");