From 68b58c94094ebbb44e75be82ece77badaa0cd68f Mon Sep 17 00:00:00 2001 From: Aylur Date: Mon, 15 Jul 2024 14:54:06 +0200 Subject: install gjs package to pkgdatadir this is needed for ags v2 so that it can setup a ts environment similar to the current --init flag --- gjs/index.ts | 7 +++++++ gjs/tsconfig.json | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'gjs') diff --git a/gjs/index.ts b/gjs/index.ts index 901b264..f5c35a6 100644 --- a/gjs/index.ts +++ b/gjs/index.ts @@ -1,5 +1,12 @@ import { Gtk } from "./src/imports.js" +declare global { + const console: { + error(...args: any[]): void + log(...args: any[]): void + } +} + export * from "./src/imports.js" export * from "./src/process.js" export * from "./src/time.js" diff --git a/gjs/tsconfig.json b/gjs/tsconfig.json index a259dd9..25c0fdb 100644 --- a/gjs/tsconfig.json +++ b/gjs/tsconfig.json @@ -13,11 +13,13 @@ "checkJs": true, "allowJs": true, "jsx": "react-jsx", - "jsxImportSource": "./src/jsx" + "jsxImportSource": "./src/jsx", + "typeRoots": [ + "./node_modules/@girs" + ] }, "include": [ - "./src", + "./src/**/*", "./index.ts", - "./node_modules/@girs" ] } -- cgit v1.2.3