adapt-authoring-config 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ConfigModule.js +7 -3
- package/package.json +1 -1
package/lib/ConfigModule.js
CHANGED
|
@@ -138,9 +138,13 @@ class ConfigModule extends AbstractModule {
|
|
|
138
138
|
*/
|
|
139
139
|
async storeSchemaSettings () {
|
|
140
140
|
const jsonschema = await this.app.waitForModule('jsonschema')
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
const isCore = d => d.name === this.app.name
|
|
142
|
+
const deps = Object.values(this.app.dependencies).sort((a, b) => {
|
|
143
|
+
// put core first as other modules may use its config values
|
|
144
|
+
if (isCore(a)) return -1
|
|
145
|
+
if (isCore(b)) return 1
|
|
146
|
+
return a.name.localeCompare(b.name)
|
|
147
|
+
})
|
|
144
148
|
const promises = deps.map(d => this.processModuleSchema(d, jsonschema))
|
|
145
149
|
let hasErrored = false;
|
|
146
150
|
|
package/package.json
CHANGED