@ordewell/web 0.12.3 → 0.12.4
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/dist/server/main.js +4 -1
- package/dist/server/main.js.map +1 -1
- package/package.json +2 -2
package/dist/server/main.js
CHANGED
|
@@ -7,6 +7,7 @@ var child_process = require('child_process');
|
|
|
7
7
|
var crypto = require('crypto');
|
|
8
8
|
var path = require('path');
|
|
9
9
|
var fs = require('fs');
|
|
10
|
+
var os = require('os');
|
|
10
11
|
var ws = require('ws');
|
|
11
12
|
var http = require('http');
|
|
12
13
|
|
|
@@ -30,6 +31,7 @@ function _interopNamespace(e) {
|
|
|
30
31
|
|
|
31
32
|
var path__namespace = /*#__PURE__*/_interopNamespace(path);
|
|
32
33
|
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
34
|
+
var os__namespace = /*#__PURE__*/_interopNamespace(os);
|
|
33
35
|
|
|
34
36
|
var InvalidBodyError = class extends Error {
|
|
35
37
|
constructor(message) {
|
|
@@ -361,7 +363,8 @@ function scanWorkspaces() {
|
|
|
361
363
|
fsModule: fs__namespace,
|
|
362
364
|
pathModule: path__namespace,
|
|
363
365
|
cwd: process.cwd(),
|
|
364
|
-
|
|
366
|
+
// Not HOME, which Windows does not set: os.homedir() reads USERPROFILE there.
|
|
367
|
+
home: os__namespace.homedir(),
|
|
365
368
|
projectDir: path__namespace.resolve(__dirname, "..", "..", "..", "..")
|
|
366
369
|
});
|
|
367
370
|
}
|