fuzzrunx 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,7 +14,7 @@ Install (npm):
14
14
  npm i -g fuzzrunx
15
15
  ```
16
16
 
17
- On global install, FuzzRun auto-enables shell hooks and will print:
17
+ On install, FuzzRun auto-enables shell hooks and will print:
18
18
  `FuzzRun is automatically enabled. Run "fuzzrun disable" to deactivate.`
19
19
 
20
20
  If you want to skip auto-enable, set `FUZZRUN_SKIP_ENABLE=1` during install.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuzzrunx",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Auto-correct mistyped commands and subcommands and re-run them safely.",
5
5
  "bin": {
6
6
  "fuzzrun": "bin/fuzzrun.js"
@@ -3,12 +3,8 @@
3
3
  const installer = require('../src/installer');
4
4
 
5
5
  const skip = process.env.FUZZRUN_SKIP_ENABLE === '1';
6
- const isGlobal =
7
- process.env.npm_config_global === 'true' ||
8
- process.env.npm_config_global === '1' ||
9
- process.env.npm_config_location === 'global';
10
6
 
11
- if (skip || !isGlobal) {
7
+ if (skip) {
12
8
  process.stdout.write('fuzzrun: auto-enable skipped\n');
13
9
  process.exit(0);
14
10
  }