feat: 调整API引入结构

This commit is contained in:
coding 2018-05-14 16:41:33 +00:00
parent 6f1a103aca
commit 39d9c67c75
6 changed files with 5 additions and 19 deletions

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./msp.js').command; module.exports = requireInternal('command');

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./msp.js').item; module.exports = requireInternal('item');

View File

@ -1,14 +0,0 @@
/*global Java, base, module, exports, require*/
function impl(name) {
return require('../internal/' + DetectServerType + '/' + name, {warnNotFound: false});
}
exports = module.exports = {
command: impl('command'),
event: impl('event'),
permission: impl('permission'),
server: impl('server'),
task: impl('task'),
item: impl('item'),
chat: impl('chat')
};

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./msp.js').permission; module.exports = requireInternal('permission', {warnNotFound: false});

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./msp.js').server; module.exports = requireInternal('server');

View File

@ -1,2 +1,2 @@
/*global Java, base, module, exports, require*/ /*global Java, base, module, exports, require*/
module.exports = require('./msp.js').task; module.exports = requireInternal('task');