mirror of
https://github.com/yldio/copilot.git
synced 2025-01-09 10:30:12 +02:00
19 lines
335 B
JavaScript
19 lines
335 B
JavaScript
const compile = require('./compile');
|
|
const detach = require('./detach');
|
|
|
|
module.exports = ({
|
|
source,
|
|
entrypoint,
|
|
config
|
|
}, fn) => {
|
|
return !config.fullpath ? compile({
|
|
source,
|
|
entrypoint,
|
|
config: config.instantiated
|
|
}, fn) : detach({
|
|
source,
|
|
entrypoint,
|
|
configFullpath: config.fullpath
|
|
}, fn);
|
|
};
|