@webiny/global-config 6.6.0-alpha.4 → 6.6.0-alpha.5
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/index.js +4 -2
- package/package.json +1 -2
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import os from "os";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import {
|
|
3
|
+
import { randomUUID } from "crypto";
|
|
4
4
|
import { loadJsonFileSync } from "load-json-file";
|
|
5
5
|
import { writeJsonFileSync } from "write-json-file";
|
|
6
6
|
import { isCI } from "ci-info";
|
|
@@ -20,7 +20,9 @@ export const globalConfig = {
|
|
|
20
20
|
} catch {
|
|
21
21
|
// A new config file is written if it doesn't exist or is invalid.
|
|
22
22
|
this.__globalConfig = {
|
|
23
|
-
|
|
23
|
+
// Node's own v4 UUID. This used to come from `@webiny/stdlib`, whose root entry is
|
|
24
|
+
// about 30 modules, loaded on every CLI command just to generate this one ID.
|
|
25
|
+
id: randomUUID(),
|
|
24
26
|
telemetry: true,
|
|
25
27
|
|
|
26
28
|
// This flag is set to `false` the moment user successfully
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/global-config",
|
|
3
|
-
"version": "6.6.0-alpha.
|
|
3
|
+
"version": "6.6.0-alpha.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@webiny/stdlib": "0.0.17",
|
|
12
11
|
"ci-info": "4.4.0",
|
|
13
12
|
"load-json-file": "7.0.1",
|
|
14
13
|
"write-json-file": "7.0.0"
|