diff --git a/src/model/input.ts b/src/model/input.ts index 6966546..b20890e 100644 --- a/src/model/input.ts +++ b/src/model/input.ts @@ -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); }