@makano/rew 1.2.34 → 1.2.36
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/rew/pkgs/conf.js +2 -1
- package/package.json +1 -1
package/lib/rew/pkgs/conf.js
CHANGED
@@ -14,7 +14,7 @@ module.exports = (context) => ({
|
|
14
14
|
CONFIG_PATH,
|
15
15
|
_onImport() {
|
16
16
|
if (context.app) {
|
17
|
-
return this.create(context.app.config.package);
|
17
|
+
return this.create(context.app.config.manifest.package);
|
18
18
|
} else {
|
19
19
|
return this.create(seededID(path.basename(context.module.filepath).replace(/[-_/\.]/g, '')));
|
20
20
|
}
|
@@ -101,6 +101,7 @@ module.exports = (context) => ({
|
|
101
101
|
remove: (key) => defaultCenter.remove(key),
|
102
102
|
root: rootPath,
|
103
103
|
package: packageName,
|
104
|
+
loadYaml: (file) => jsYaml.load(fs.readFileSync(file, { encoding: 'utf-8' }))
|
104
105
|
};
|
105
106
|
},
|
106
107
|
});
|