mirror of
https://github.com/yldio/copilot.git
synced 2025-01-09 18:40: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);
|
||
|
};
|