throw error if unity version is auto in package mode

pull/164/head
Aaron Trudeau 2022-06-30 16:36:20 -04:00
parent dbb5a4cdbd
commit bd60170f3f
No known key found for this signature in database
GPG Key ID: D6874B046ABF9536
1 changed files with 6 additions and 0 deletions

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 in package mode, attempt to get the package's name, and ensure tests are present
if (packageMode) { 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); packageName = this.getPackageNameFromPackageJson(projectPath);
this.verifyTestsFolderIsPresent(projectPath); this.verifyTestsFolderIsPresent(projectPath);
} }