Skip to content

Commit

Permalink
Fix missing dependencies in GioUnix-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpLink committed Jul 21, 2024
1 parent c7c3920 commit 51d36e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/lib/src/gir-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@ export class GirModule {
}
}

// Gio
if (this.packageName === 'GioUnix-2.0') {
if (!find(transitiveDependencies, (x) => x.packageName === 'Gio-2.0')) {
transitiveDependencies.push(await this.dependencyManager.get('Gio', '2.0'))
}
if (!find(transitiveDependencies, (x) => x.packageName === 'GLib-2.0')) {
transitiveDependencies.push(await this.dependencyManager.get('GLib', '2.0'))
}
}

return transitiveDependencies
}

Expand Down
2 changes: 1 addition & 1 deletion types
2 changes: 2 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3962,7 +3962,9 @@ __metadata:
version: 0.0.0-use.local
resolution: "@girs/giounix-2.0@workspace:types/giounix-2.0"
dependencies:
"@girs/gio-2.0": "workspace:^"
"@girs/gjs": "workspace:^"
"@girs/glib-2.0": "workspace:^"
"@girs/gobject-2.0": "workspace:^"
typescript: "npm:*"
languageName: unknown
Expand Down

0 comments on commit 51d36e2

Please sign in to comment.