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