Description
The removeTest function in src/plugins/pluginloader.js uses the command:
This results in the package being uninstalled globally from the system, rather than just being removed from the Neutralino CLI plugin registry or local project scope
Steps to Reproduce
- Create and install a test package globally:
mkdir test-package && cd test-package
npm init -y
cd ..
npm install -g ./test-package
- Make sure it's globally installed
- Run the CLI removal command
neu plugins test-package --remove --test
- Verification
Expected Behavior:
- The CLI should only:
- Remove the plugin from its internal configuration/registry
- Optionally remove local project-level dependencies
- It should not uninstall globally installed npm packages
Actual Behavior:
- The globally installed package is removed from the system
I reproduced this on my system, and running the CLI command deleted the globally installed package without any warning or confirmation
Description
The
removeTestfunction insrc/plugins/pluginloader.jsuses the command:This results in the package being uninstalled globally from the system, rather than just being removed from the Neutralino CLI plugin registry or local project scope
Steps to Reproduce
Expected Behavior:
Actual Behavior:
I reproduced this on my system, and running the CLI command deleted the globally installed package without any warning or confirmation