diff --git a/tsconfig.json b/tsconfig.json index ca96d32..8ccd4eb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,23 +6,15 @@ "typeRoots": [ // "./web/ts/typings", ], -// "rootDir": "../../web", - "baseUrl": "./", +// "rootDir": "../", + "baseUrl": "../../web", +// "baseUrl": "./", "paths": { - "/scripts/*": ["../../web/scripts/*"], // works -// "scripts/*": ["scripts/*"], // works -// "scripts/*": ["../../web/scripts/*"], // works -// "web/*": ["web/*"], // works -// "/lib/*": ["../../web/lib/*"], -// "extensions/*": ["../../web/extensions/*"], -// "types/*": ["web/types/*"] +// "/scripts/*": ["../../web/scripts/*"], // works }, - // "rootDir": "./web/src", "rootDirs": [ -// "../../web/scripts", -// "../../web", - "web" -// "../../web" + "../../web", +// "web" ], "preserveSymlinks": true, "checkJs": false, @@ -64,6 +56,7 @@ }, "include": [ // "./custom_nodes/ComfyUI-Crystools/web/*.ts", +// "../../../web/*.ts", // "../../web/*.ts", "web/*.ts", // "web/types.d.ts" diff --git a/web/comfy/liteGraph.d.ts b/web/comfy/liteGraph.d.ts index 460b065..52ecb7e 100644 --- a/web/comfy/liteGraph.d.ts +++ b/web/comfy/liteGraph.d.ts @@ -1,5 +1,4 @@ export type * from './liteGraph.types.js'; -export * from '/scripts/widgets.js'; import type { IWidget as IWidgetOld, LGraphNode as TypeGraphNode, TypeLiteGraph } from './liteGraph.types.js'; declare const LGraphNode: typeof TypeGraphNode; export interface IWidget extends IWidgetOld { diff --git a/web/comfy/liteGraph.js b/web/comfy/liteGraph.js index bc661ca..38d7b92 100644 --- a/web/comfy/liteGraph.js +++ b/web/comfy/liteGraph.js @@ -1,4 +1,3 @@ -export * from '/scripts/widgets.js'; export class TLGraphNode extends LGraphNode { constructor() { super(...arguments); diff --git a/web/comfy/liteGraph.ts b/web/comfy/liteGraph.ts index d3a6787..e2d4689 100644 --- a/web/comfy/liteGraph.ts +++ b/web/comfy/liteGraph.ts @@ -1,7 +1,6 @@ // / // A LOTS OF PATCHES FOR LITEGRAPH TYPES ¯\_(ツ)_/¯ export type * from './liteGraph.types.js'; -export * from '/scripts/widgets.js'; import type { IWidget as IWidgetOld, LGraphNode as TypeGraphNode, TypeLiteGraph } from './liteGraph.types.js'; diff --git a/web/comfy/scripts.d.ts b/web/comfy/scripts.d.ts index 884f898..c979c77 100644 --- a/web/comfy/scripts.d.ts +++ b/web/comfy/scripts.d.ts @@ -1,3 +1,3 @@ -export { ComfyWidgets } from '/scripts/widgets.js'; -export { app } from '/scripts/app.js'; -export { api } from '/scripts/api.js'; +export { ComfyWidgets } from '../../../scripts/widgets.js'; +export { app } from '../../../scripts/app.js'; +export { api } from '../../../scripts/api.js'; diff --git a/web/comfy/scripts.js b/web/comfy/scripts.js index 884f898..c979c77 100644 --- a/web/comfy/scripts.js +++ b/web/comfy/scripts.js @@ -1,3 +1,3 @@ -export { ComfyWidgets } from '/scripts/widgets.js'; -export { app } from '/scripts/app.js'; -export { api } from '/scripts/api.js'; +export { ComfyWidgets } from '../../../scripts/widgets.js'; +export { app } from '../../../scripts/app.js'; +export { api } from '../../../scripts/api.js'; diff --git a/web/comfy/scripts.ts b/web/comfy/scripts.ts index 884f898..9179bbd 100644 --- a/web/comfy/scripts.ts +++ b/web/comfy/scripts.ts @@ -1,3 +1,6 @@ -export { ComfyWidgets } from '/scripts/widgets.js'; -export { app } from '/scripts/app.js'; -export { api } from '/scripts/api.js'; +// @ts-expect-error I could not find a way to make this work +export { ComfyWidgets } from '../../../scripts/widgets.js'; +// @ts-expect-error I could not find a way to make this work +export { app } from '../../../scripts/app.js'; +// @ts-expect-error I could not find a way to make this work +export { api } from '../../../scripts/api.js';