Skip to content

Commit 1a1442d

Browse files
committed
fix: avoid hard-coding "codeflare.min.js" in respawn controller
1 parent d05b654 commit 1a1442d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: plugins/plugin-client-default/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@kui-shell/plugin-client",
33
"version": "0.14.2",
44
"description": "Kui plugin that offers client defintion",
5-
"main": "dist/index.js",
5+
"main": "dist/headless/codeflare.min.js",
66
"module": "mdist/index.js",
77
"types": "mdist/index.d.ts",
88
"license": "Apache-2.0",

Diff for: plugins/plugin-codeflare/src/controller/respawn.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import { join } from "path"
1818
import { encodeComponent } from "@kui-shell/core"
19+
import { main } from "@kui-shell/client/package.json"
1920

2021
async function getAppPath() {
2122
try {
@@ -87,7 +88,7 @@ export default async function respawnCommand(cmdline: string | string[]) {
8788
"/MacOS/$1"
8889
)
8990
),
90-
encodeComponent((await headlessRoot()) + "/codeflare.min.js"),
91+
encodeComponent(join(await headlessRoot(), "../../", main)),
9192
"--",
9293
...(typeof cmdline === "string" ? [cmdline] : cmdline),
9394
],

0 commit comments

Comments
 (0)