fix millstone availability logic
This commit is contained in:
parent
e62d4ea877
commit
86bf8cc1dc
@ -63,13 +63,12 @@ try {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
var millstone = null;
|
||||
var millstone = undefined;
|
||||
|
||||
try {
|
||||
require.resolve('millstone');
|
||||
} catch (err) {
|
||||
var millstone = require('millstone');
|
||||
}
|
||||
millstone = require('millstone');
|
||||
} catch (err) {}
|
||||
|
||||
if (!millstone) {
|
||||
console.warn('carto: Millstone not found. Externals will not be resolved.');
|
||||
|
Loading…
Reference in New Issue
Block a user