Preflight Checklist
Issue Details
- Electron Packager Version:
- Electron Version:
- Operating System:
- Last Known Working Electron Packager version::
Expected Behavior
If the --out flag is used to set the target directory to the same directory that contains the entry point, then running electron-packager should present an error message explaining that this is not supported.
Actual Behavior
If the --out flag is used to set the target directory to the same directory that contains the entry point, then running electron-packager will result in a "The main entry point to your app was not found" error message, which does not correctly identify the problem.
To Reproduce
Create a directory structure like this:
root/
package.json
/dist
code.js
In package.json, set the entry point with "main" to "dist/code.js", "./dist/code.js", or "dist\code.js".
Now run electron-packager with the command-line
electron-packager . test --platform win32 --out ./dist
The error it will return is:
The main entry point to your app was not found. Make sure "dist\code.js" exists and does not get ignored by your ignore option
This is a misleading error message for the user, however, as changing the --out target to a different directory resolves the problem.
Preflight Checklist
Issue Details
Expected Behavior
If the --out flag is used to set the target directory to the same directory that contains the entry point, then running electron-packager should present an error message explaining that this is not supported.
Actual Behavior
If the --out flag is used to set the target directory to the same directory that contains the entry point, then running electron-packager will result in a "The main entry point to your app was not found" error message, which does not correctly identify the problem.
To Reproduce
Create a directory structure like this:
In package.json, set the entry point with "main" to "dist/code.js", "./dist/code.js", or "dist\code.js".
Now run electron-packager with the command-line
The error it will return is:
This is a misleading error message for the user, however, as changing the --out target to a different directory resolves the problem.