picosh 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picosh",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Hyper plugin: paste clipboard images as file paths",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -17,19 +17,19 @@ function findHyperCli() {
17
17
 
18
18
  function installHyper() {
19
19
  const platform = os.platform();
20
- console.log('[picosh] Installing Hyper...');
20
+ console.error('[picosh] Installing Hyper...');
21
21
  try {
22
22
  if (platform === 'win32') {
23
23
  execSync('winget install vercel.Hyper --silent', {stdio: 'inherit'});
24
24
  } else if (platform === 'darwin') {
25
25
  execSync('brew install --cask hyper', {stdio: 'inherit'});
26
26
  } else {
27
- console.log('[picosh] Please install Hyper manually: https://hyper.is');
27
+ console.error('[picosh] Please install Hyper manually: https://hyper.is');
28
28
  return false;
29
29
  }
30
30
  return true;
31
31
  } catch (e) {
32
- console.log('[picosh] Auto-install failed. Please install Hyper manually: https://hyper.is');
32
+ console.error('[picosh] Auto-install failed. Please install Hyper manually: https://hyper.is');
33
33
  return false;
34
34
  }
35
35
  }
@@ -43,14 +43,14 @@ if (!cli) {
43
43
  }
44
44
 
45
45
  if (!cli) {
46
- console.log('[picosh] Hyper installed. Run `hyper i picosh` to activate the plugin.');
46
+ console.error('[picosh] Hyper installed. Run `hyper i picosh` to activate the plugin.');
47
47
  process.exit(0);
48
48
  }
49
49
 
50
50
  try {
51
- console.log('[picosh] Registering plugin with Hyper...');
51
+ console.error('[picosh] Registering plugin with Hyper...');
52
52
  execSync(`"${cli}" i picosh`, {stdio: 'inherit'});
53
- console.log('[picosh] Done! Launch Hyper to start using picosh.');
53
+ console.error('[picosh] Done! Launch Hyper to start using picosh.');
54
54
  } catch (e) {
55
- console.log('[picosh] Could not auto-register. Run manually: hyper i picosh');
55
+ console.error('[picosh] Could not auto-register. Run manually: hyper i picosh');
56
56
  }