mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
19 lines
465 B
JavaScript
19 lines
465 B
JavaScript
var hasbin = require('hasbin');
|
|
var fs = require('fs');
|
|
var path = require('path');
|
|
|
|
module.exports = {
|
|
path: function() {
|
|
if (fs.existsSync('./vendor/bin/jigsaw')) {
|
|
return path.normalize('./vendor/bin/jigsaw')
|
|
}
|
|
|
|
if (hasbin.sync('jigsaw')) {
|
|
return 'jigsaw';
|
|
}
|
|
|
|
console.log('Could not find Jigsaw; please install it via Composer, either locally or globally.');
|
|
|
|
process.exit();
|
|
}
|
|
};
|