Skip to content

Commit

Permalink
fix: Asset resolution bug
Browse files Browse the repository at this point in the history
  • Loading branch information
budde377 committed Nov 23, 2023
1 parent 8998b90 commit 604f18c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 19 deletions.
4 changes: 4 additions & 0 deletions packages/graphql_codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.13.9

- Fix bug in asset path resolution, again.

# 0.13.8

- Fix bug in asset path resolution.
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql_codegen/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.13.8"
version: "0.13.9"
graphql_flutter:
dependency: "direct main"
description:
Expand Down
17 changes: 2 additions & 15 deletions packages/graphql_codegen/lib/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,21 +171,7 @@ class GraphQLBuilder extends Builder {
),
);
}
return {
...Map.fromEntries(
kGraphQLFileExtensions.map(
(e) => MapEntry(
p.join(_assetsPrefix, '{{dir}}', '{{file}}.${e}'),
[
p.join(
p.relative(config.outputDirectory, from: '/'),
'{{dir}}',
'{{file}}.${e}.dart',
)
],
),
),
),
final res = {
...Map.fromEntries(
kGraphQLFileExtensions.map(
(e) => MapEntry(
Expand All @@ -200,5 +186,6 @@ class GraphQLBuilder extends Builder {
),
)
};
return res;
}
}
2 changes: 1 addition & 1 deletion packages/graphql_codegen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: |
Simple, opinionated, codegen library for GraphQL. It allows you to
generate serializers and client helpers to easily call and parse your data.
version: 0.13.8
version: 0.13.9
homepage: https://github.com/heftapp/graphql_codegen/tree/main/packages/graphql_codegen
repository: https://github.com/heftapp/graphql_codegen/tree/main/packages/graphql_codegen

Expand Down
2 changes: 1 addition & 1 deletion packages/graphql_switch/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ packages:
path: "../../graphql_codegen"
relative: true
source: path
version: "0.13.8"
version: "0.13.9"
graphql_switch:
dependency: "direct main"
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql_switch/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ packages:
path: "../graphql_codegen"
relative: true
source: path
version: "0.13.8"
version: "0.13.9"
graphs:
dependency: transitive
description:
Expand Down

0 comments on commit 604f18c

Please sign in to comment.