emit exit code only in lint mode
This commit is contained in:
parent
1f6b92de3e
commit
44955b7600
|
@ -65,8 +65,8 @@ const makeDefinitionsForSchema = absSchemaPath => {
|
||||||
"/"
|
"/"
|
||||||
)}.d.ts need to be updated`
|
)}.d.ts need to be updated`
|
||||||
);
|
);
|
||||||
|
process.exitCode = 1;
|
||||||
}
|
}
|
||||||
process.exitCode = 1;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
|
|
|
@ -124,8 +124,8 @@ const formatSchema = schemaPath => {
|
||||||
console.error(
|
console.error(
|
||||||
`schemas/${basename.replace(/\\/g, "/")} need to be updated`
|
`schemas/${basename.replace(/\\/g, "/")} need to be updated`
|
||||||
);
|
);
|
||||||
|
process.exitCode = 1;
|
||||||
}
|
}
|
||||||
process.exitCode = 1;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -137,8 +137,8 @@ for (const sourceFile of program.getSourceFiles()) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
console.log();
|
console.log();
|
||||||
|
process.exitCode = 1;
|
||||||
}
|
}
|
||||||
process.exitCode = 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue