diff --git a/packages/generator-typescript/templates/gjs/cairo.d.ts b/packages/generator-typescript/templates/gjs/cairo.d.ts index 33d586b7..17bdd2dc 100644 --- a/packages/generator-typescript/templates/gjs/cairo.d.ts +++ b/packages/generator-typescript/templates/gjs/cairo.d.ts @@ -19,7 +19,7 @@ declare module 'cairo' { // ... // Re-export Cairo 1.0 -export default <%- Cairo ? Cairo.importName : '' %>; +export default <%- Cairo ? Cairo.namespace : '' %>; <%_ if(!package){ -%> } diff --git a/packages/lib/src/dependency-manager.ts b/packages/lib/src/dependency-manager.ts index 85dedb0e..e118be68 100644 --- a/packages/lib/src/dependency-manager.ts +++ b/packages/lib/src/dependency-manager.ts @@ -105,7 +105,12 @@ export class DependencyManager extends GirNSRegistry { * @returns */ async core(): Promise { - return [await this.get('GObject', '2.0'), await this.get('GLib', '2.0'), await this.get('Gio', '2.0')] + return [ + await this.get('GObject', '2.0'), + await this.get('GLib', '2.0'), + await this.get('Gio', '2.0'), + await this.get('Cairo', '1.0'), + ] } createImportProperties(namespace: string, packageName: string, version: string) {