This commit is contained in:
Crystian
2024-09-21 12:36:17 +02:00
parent f4703939d6
commit 3ef9276c97
7 changed files with 19 additions and 26 deletions
+7 -14
View File
@@ -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"
-1
View File
@@ -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 {
-1
View File
@@ -1,4 +1,3 @@
export * from '/scripts/widgets.js';
export class TLGraphNode extends LGraphNode {
constructor() {
super(...arguments);
-1
View File
@@ -1,7 +1,6 @@
// / <reference path="/types/litegraph.d.ts" />
// 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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+6 -3
View File
@@ -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';