@telemetryos/cli 1.8.0 → 1.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @telemetryos/cli
2
2
 
3
+ ## 1.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Support windows paths in the CLI
8
+ - Updated dependencies
9
+ - @telemetryos/development-application-host-ui@1.8.2
10
+
11
+ ## 1.8.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Fix uncaught exception that broke SDK bridge messages
16
+ - Updated dependencies
17
+ - @telemetryos/development-application-host-ui@1.8.1
18
+
3
19
  ## 1.8.0
4
20
 
5
21
  ### Minor Changes
@@ -68,6 +68,7 @@ async function installPackages(projectPath) {
68
68
  const sdkInstall = spawn('npm', ['install', '@telemetryos/sdk'], {
69
69
  cwd: projectPath,
70
70
  stdio: 'inherit',
71
+ shell: true
71
72
  });
72
73
  sdkInstall.on('close', (code) => {
73
74
  if (code === 0) {
@@ -86,6 +87,7 @@ async function installPackages(projectPath) {
86
87
  const cliInstall = spawn('npm', ['install', '-D', '@telemetryos/cli'], {
87
88
  cwd: projectPath,
88
89
  stdio: 'inherit',
90
+ shell: true
89
91
  });
90
92
  cliInstall.on('close', (code) => {
91
93
  if (code === 0) {
@@ -1,5 +1,6 @@
1
1
  import { spawn } from 'child_process';
2
2
  import { readFile } from 'fs/promises';
3
+ import { fileURLToPath } from 'url';
3
4
  import http from 'http';
4
5
  import path from 'path';
5
6
  import readable from 'readline/promises';
@@ -60,7 +61,7 @@ export async function runServer(projectPath, flags) {
60
61
  }
61
62
  async function serveDevelopmentApplicationHostUI(projectPath, port, telemetryConfig) {
62
63
  const hostUiPath = await import.meta.resolve('@telemetryos/development-application-host-ui/dist');
63
- const serveConfig = { public: hostUiPath.replace('file://', '') };
64
+ const serveConfig = { public: fileURLToPath(hostUiPath) };
64
65
  const server = http.createServer();
65
66
  server.on('request', async (req, res) => {
66
67
  var _a, _b;
@@ -177,7 +178,7 @@ async function serveTelemetryApplication(rootPath, telemetryConfig) {
177
178
  const binPath = path.join(rootPath, 'node_modules', '.bin');
178
179
  const childProcess = spawn(runCommand, {
179
180
  shell: true,
180
- env: { ...process.env, FORCE_COLOR: '1', PATH: `${binPath}:${process.env.PATH}` },
181
+ env: { ...process.env, FORCE_COLOR: '1', PATH: `${binPath}${path.delimiter}${process.env.PATH}` },
181
182
  stdio: ['ignore', 'pipe', 'pipe'],
182
183
  cwd: rootPath,
183
184
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telemetryos/cli",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "The official TelemetryOS application CLI package. Use it to build applications that run on the TelemetryOS platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "license": "",
26
26
  "repository": "github:TelemetryTV/Application-API",
27
27
  "dependencies": {
28
- "@telemetryos/development-application-host-ui": "^1.8.0",
28
+ "@telemetryos/development-application-host-ui": "^1.8.2",
29
29
  "@types/serve-handler": "^6.1.4",
30
30
  "commander": "^14.0.0",
31
31
  "inquirer": "^12.9.6",