throw error if unity version is auto in package mode

This commit is contained in:
Aaron Trudeau
2022-06-30 16:36:20 -04:00
parent dbb5a4cdbd
commit bd60170f3f

View File

@@ -106,6 +106,12 @@ const Input = {
// if in package mode, attempt to get the package's name, and ensure tests are present
if (packageMode) {
if (unityVersion === 'auto') {
throw new Error(
'Package mode is enabled, but unityVersion is set to "auto". Please manually set the unityVersion.',
);
}
packageName = this.getPackageNameFromPackageJson(projectPath);
this.verifyTestsFolderIsPresent(projectPath);
}