Skip to content

Commit

Permalink
Add Cairo-1.0 to core dependencies and fix re-export
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpLink committed Jul 24, 2024
1 parent 0ca99da commit 8f75dda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/generator-typescript/templates/gjs/cairo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ declare module 'cairo' {
// ...

// Re-export Cairo 1.0
export default <%- Cairo ? Cairo.importName : '' %>;
export default <%- Cairo ? Cairo.namespace : '' %>;

<%_ if(!package){ -%>
}
Expand Down
7 changes: 6 additions & 1 deletion packages/lib/src/dependency-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ export class DependencyManager extends GirNSRegistry {
* @returns
*/
async core(): Promise<Dependency[]> {
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) {
Expand Down

0 comments on commit 8f75dda

Please sign in to comment.