pear-electron 1.0.0 → 1.0.2

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/bin.js CHANGED
@@ -1,7 +1,13 @@
1
- #!/usr/bin/env pear run -f
1
+ #!/usr/bin/env pear
2
2
  /* global Pear, Bare */
3
+
4
+ if (!global.Pear && global.process) {
5
+ const { status } = require('child_process').spawnSync('pear', process.argv.slice(1), { stdio: 'inherit' })
6
+ process.exit(status)
7
+ }
8
+
3
9
  const path = require('path')
4
- const { runtimes } = Pear.config.entrypoint.startsWith('/node_modules/.bin')
10
+ const { runtimes } = global.Pear.config.entrypoint.startsWith('/node_modules/.bin/')
5
11
  ? require('../pear-electron/package.json').pear
6
12
  : require('./package.json').pear
7
13
  const IPC = require('pear-ipc')
package/electron-main.js CHANGED
@@ -25,7 +25,6 @@ async function electronMain (cmd) {
25
25
  flags: cmd.flags,
26
26
  args: cmd.rest
27
27
  })
28
- State.storage(state)
29
28
 
30
29
  if (state.error) {
31
30
  console.error(state.error)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pear-electron",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Pear User-Interface Library for Electron",
5
5
  "main": "index.js",
6
6
  "bin": "bin.js",
@@ -81,9 +81,9 @@
81
81
  "node-bare-bundle": "^1.4.2",
82
82
  "paparam": "^1.6.1",
83
83
  "path": "npm:bare-node-path@^1.0.1",
84
- "pear-api": "*",
84
+ "pear-api": "^1.1.1",
85
85
  "pear-interface": "^1.0.3",
86
- "pear-ipc": "github:holepunchto/pear-ipc#v2",
86
+ "pear-ipc": "^3.2.0",
87
87
  "pear-link": "^2.0.6",
88
88
  "pear-updater-bootstrap": "github:holepunchto/pear-updater-bootstrap#corestore-option",
89
89
  "rache": "^1.0.0",