From e8641737a85c427025298f122779ec3fd82fed11 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Fri, 8 Aug 2025 21:34:16 -0300 Subject: [PATCH] :package: build(scripts/types): compile types in project's root directory --- scripts/types.sh | 2 +- src/app.ts | 2 +- src/tsconfig.json | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/types.sh b/scripts/types.sh index 554e5e6..05229be 100644 --- a/scripts/types.sh +++ b/scripts/types.sh @@ -5,4 +5,4 @@ fi echo "Building types, this can take long..." -pnpx @ts-for-gir/cli generate --ignoreVersionConflicts -o ./src/@girs +pnpx @ts-for-gir/cli generate --ignoreVersionConflicts -o ./@girs diff --git a/src/app.ts b/src/app.ts index cdafb52..44b7c5e 100644 --- a/src/app.ts +++ b/src/app.ts @@ -134,7 +134,7 @@ export class Shell extends Gtk.Application { connections.set(this, this.connect("shutdown", () => this.#scope.dispose())); createRoot(() => { - console.log(`Colorshell: initialized instance as: "colorshell"`); + console.log(`Colorshell: initializing`); this.#scope = getScope(); Stylesheet.getDefault().compileApply(); diff --git a/src/tsconfig.json b/src/tsconfig.json index 20e19d6..4666781 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -8,6 +8,9 @@ "lib": ["ES2024"], "moduleResolution": "bundler", "skipLibCheck": true, + "types": [ + "../@girs" + ], "strict": true, "jsx": "react-jsx", "jsxImportSource": "ags/gtk4"