@cedarjs/cli 8.0.0-canary.3535 → 8.0.0-canary.3536

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,9 +1,9 @@
1
1
  import fs from "node:fs";
2
+ import os from "node:os";
2
3
  import path from "path";
3
4
  import { SemanticResourceAttributes } from "@opentelemetry/semantic-conventions";
4
5
  import ci from "ci-info";
5
6
  import envinfo from "envinfo";
6
- import system from "systeminformation";
7
7
  import { v4 as uuidv4, validate as validateUUID } from "uuid";
8
8
  import { getPaths, getRawConfig } from "@cedarjs/project-config";
9
9
  import { RWProject } from "@cedarjs/structure/dist/model/RWProject";
@@ -47,8 +47,8 @@ async function getResources() {
47
47
  } else if (shell?.path.match("\\")) {
48
48
  info.System.Shell.name = info.System.Shell.path.split("\\").pop();
49
49
  }
50
- const cpu = await system.cpu();
51
- const mem = await system.mem();
50
+ const cpuCount = os.availableParallelism();
51
+ const memoryGb = Math.round(os.totalmem() / 1073741824);
52
52
  let developmentEnvironment = void 0;
53
53
  if (Object.keys(process.env).some((key) => key.startsWith("GITPOD_"))) {
54
54
  developmentEnvironment = "gitpod";
@@ -77,8 +77,8 @@ async function getResources() {
77
77
  "yarn.version": info.Binaries?.Yarn?.version,
78
78
  "npm.version": info.Binaries?.npm?.version,
79
79
  "vscode.version": info.IDEs?.VSCode?.version,
80
- "cpu.count": cpu.physicalCores,
81
- "memory.gb": Math.round(mem.total / 1073741824),
80
+ "cpu.count": cpuCount,
81
+ "memory.gb": memoryGb,
82
82
  "env.node_env": process.env.NODE_ENV || void 0,
83
83
  "ci.redwood": !!process.env.CEDAR_CI,
84
84
  "ci.isci": ci.isCI,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "8.0.0-canary.3535",
3
+ "version": "8.0.0-canary.3536",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,17 +36,17 @@
36
36
  "@babel/preset-typescript": "7.29.7",
37
37
  "@babel/traverse": "7.29.10",
38
38
  "@babel/types": "7.29.8",
39
- "@cedarjs/api-server": "8.0.0-canary.3535",
40
- "@cedarjs/babel-config": "8.0.0-canary.3535",
41
- "@cedarjs/cli-helpers": "8.0.0-canary.3535",
42
- "@cedarjs/internal": "8.0.0-canary.3535",
43
- "@cedarjs/prerender": "8.0.0-canary.3535",
44
- "@cedarjs/project-config": "8.0.0-canary.3535",
45
- "@cedarjs/structure": "8.0.0-canary.3535",
46
- "@cedarjs/telemetry": "8.0.0-canary.3535",
47
- "@cedarjs/utils": "8.0.0-canary.3535",
48
- "@cedarjs/vite": "8.0.0-canary.3535",
49
- "@cedarjs/web-server": "8.0.0-canary.3535",
39
+ "@cedarjs/api-server": "8.0.0-canary.3536",
40
+ "@cedarjs/babel-config": "8.0.0-canary.3536",
41
+ "@cedarjs/cli-helpers": "8.0.0-canary.3536",
42
+ "@cedarjs/internal": "8.0.0-canary.3536",
43
+ "@cedarjs/prerender": "8.0.0-canary.3536",
44
+ "@cedarjs/project-config": "8.0.0-canary.3536",
45
+ "@cedarjs/structure": "8.0.0-canary.3536",
46
+ "@cedarjs/telemetry": "8.0.0-canary.3536",
47
+ "@cedarjs/utils": "8.0.0-canary.3536",
48
+ "@cedarjs/vite": "8.0.0-canary.3536",
49
+ "@cedarjs/web-server": "8.0.0-canary.3536",
50
50
  "@listr2/prompt-adapter-enquirer": "4.4.3",
51
51
  "@opentelemetry/api": "1.9.1",
52
52
  "@opentelemetry/core": "2.12.0",
@@ -85,7 +85,6 @@
85
85
  "smol-toml": "1.9.1",
86
86
  "srvx": "0.12.8",
87
87
  "string-env-interpolation": "1.0.1",
88
- "systeminformation": "5.33.16",
89
88
  "termi-link": "1.1.0",
90
89
  "title-case": "3.0.3",
91
90
  "unionfs": "4.6.0",
@@ -94,7 +93,7 @@
94
93
  "yargs": "18.2.0"
95
94
  },
96
95
  "devDependencies": {
97
- "@cedarjs/framework-tools": "8.0.0-canary.3535",
96
+ "@cedarjs/framework-tools": "8.0.0-canary.3536",
98
97
  "@prisma/dmmf": "7.10.1",
99
98
  "@types/archiver": "^7.0.0",
100
99
  "memfs": "4.80.0",