bililive-cli 1.8.0 → 1.9.1

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.
@@ -1,47 +0,0 @@
1
- 'use strict';
2
-
3
- var require$$0$1 = require('fs');
4
- var require$$0 = require('path');
5
-
6
- function _mergeNamespaces(n, m) {
7
- m.forEach(function (e) {
8
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
9
- if (k !== 'default' && !(k in n)) {
10
- var d = Object.getOwnPropertyDescriptor(e, k);
11
- Object.defineProperty(n, k, d.get ? d : {
12
- enumerable: true,
13
- get: function () { return e[k]; }
14
- });
15
- }
16
- });
17
- });
18
- return Object.freeze(n);
19
- }
20
-
21
- const fs = require$$0$1;
22
- const path = require$$0;
23
-
24
- const pathFile = path.join(__dirname, 'path.txt');
25
-
26
- function getElectronPath () {
27
- let executablePath;
28
- if (fs.existsSync(pathFile)) {
29
- executablePath = fs.readFileSync(pathFile, 'utf-8');
30
- }
31
- if (process.env.ELECTRON_OVERRIDE_DIST_PATH) {
32
- return path.join(process.env.ELECTRON_OVERRIDE_DIST_PATH, executablePath || 'electron');
33
- }
34
- if (executablePath) {
35
- return path.join(__dirname, 'dist', executablePath);
36
- } else {
37
- throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again');
38
- }
39
- }
40
-
41
- var electron = getElectronPath();
42
-
43
- var index = /*#__PURE__*/_mergeNamespaces({
44
- __proto__: null
45
- }, [electron]);
46
-
47
- exports.index = index;