@openfairygui/cli 0.2.0-alpha.0 → 0.2.0-alpha.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.
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { BackendRuntime } from "@openfairygui/backend";
1
+ import { createNodeBackendRuntime } from "@openfairygui/backend/node";
2
2
  import * as fs$1 from "node:fs/promises";
3
3
  import fs from "node:fs/promises";
4
4
  import * as path$1 from "node:path";
@@ -24859,7 +24859,7 @@ async function cmdBackendCapabilities(args) {
24859
24859
  console.error("Usage: ofgui backend-capabilities <project-dir>");
24860
24860
  process.exit(1);
24861
24861
  }
24862
- const runtime = new BackendRuntime();
24862
+ const runtime = createNodeBackendRuntime();
24863
24863
  const opened = await runtime.openSession({ projectPath: path.resolve(args[0]) });
24864
24864
  if (!opened.ok) {
24865
24865
  console.error(`backend-capabilities: ${opened.error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfairygui/cli",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.0-alpha.1",
4
4
  "description": "FairyGUI Headless Authoring SDK — command-line interface.",
5
5
  "author": "OpenFairyGUI Contributors",
6
6
  "license": "MIT",
package/src/cli.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BackendRuntime } from '@openfairygui/backend';
1
+ import { createNodeBackendRuntime } from '@openfairygui/backend/node';
2
2
  import {
3
3
  NodeIO,
4
4
  ProjectType,
@@ -475,7 +475,7 @@ async function cmdBackendCapabilities(args: string[]): Promise<void> {
475
475
  process.exit(1);
476
476
  }
477
477
 
478
- const runtime = new BackendRuntime();
478
+ const runtime = createNodeBackendRuntime();
479
479
  const opened = await runtime.openSession({ projectPath: path.resolve(args[0]) });
480
480
  if (!opened.ok) {
481
481
  const failure = opened as Extract<typeof opened, { ok: false }>;