UNPKG

825 BJavaScriptView Raw
1/**
2 * This code is closed source and Confidential and Proprietary to
3 * Appcelerator, Inc. All Rights Reserved. This code MUST not be
4 * modified, copied or otherwise redistributed without express
5 * written permission of Appcelerator. This file is licensed as
6 * part of the Appcelerator Platform and governed under the terms
7 * of the Appcelerator license agreement.
8 */
9// load based on the platform to allow it to override
10try {
11 module.exports = require('./' + process.platform);
12} catch (e) {
13 // this is OK, no platform to load
14}
15
16// if the platform library doesn't implement, provide defaults
17
18if (!module.exports.run) {
19 module.exports.run = require('./run');
20}
21
22if (!module.exports.install) {
23 module.exports.install = require('./install');
24}
25
26if (!module.exports.use) {
27 module.exports.use = require('./use');
28}