pokemon-world
pokemon-world copied to clipboard
chore(deps-dev): bump @graphql-codegen/cli from 2.16.2 to 3.3.1
Bumps @graphql-codegen/cli from 2.16.2 to 3.3.1.
Changelog
Sourced from @​graphql-codegen/cli
's changelog.
3.3.1
Patch Changes
#9267
183749346
Thanks@​milesrichardson
! - Fix watch mode to listen to longest common directory prefix of relevant files, rather than only files below the current working directory (fixes #9266).#9280
ca1d72c40
Thanks@​saihaj
! - fix the default output directory for init command3.3.0
Minor Changes
#9151
b7dacb21f
Thanks @'./user/schema.mappers#UserMapper',! - AddwatchPattern
config option forgenerates
sections.By default,
watch
mode automatically watches all GraphQL schema and document files. This means when a change is detected, Codegen CLI is run.A user may want to run Codegen CLI when non-schema and non-document files are changed. Each
generates
section now has awatchPattern
option to allow more file patterns to be added to the list of patterns to watch.In the example below, mappers are exported from
schema.mappers.ts
files. We want to re-run Codegen if the content of*.mappers.ts
files change because they change the generated types file. To solve this, we can add mapper file patterns to watch using the glob pattern used for schema and document files.// codegen.ts const config: CodegenConfig = { schema: 'src/schema/**/*.graphql', generates: { 'src/schema/types.ts': { plugins: ['typescript', 'typescript-resolvers'], config: { mappers: {
Book: './book/schema.mappers#BookMapper', }, } watchPattern: 'src/schema/**/*.mappers.ts', // Watches mapper files in `watch` mode. Use an array for multiple patterns e.g. `['src/*.pattern1.ts','src/*.pattern2.ts']` },
}, };
Then, run Codegen CLI in
watch
mode:yarn graphql-codegen --watch
Now, updating
*.mappers.ts
files re-runs Codegen! 🎉Note:
watchPattern
is only used inwatch
mode i.e. running CLI with--watch
flag.Patch Changes
... (truncated)
Commits
21050ae
chore(release): update monorepo packages versions (#9269)ca1d72c
fix: output directory for init command (#9280)1837493
Fix watch mode to listen to changes below the "longest common directory prefi...6e3fd38
chore(release): update monorepo packages versions (#9132)d318805
eslint fixes (#9247)ef60e81
chore(deps): update dependency prettier to v2.8.7 (#9223)7de3c70
chore(deps): update dependency prettier to v2.8.6 (#9215)0f53581
chore(deps): update dependency prettier to v2.8.5 (#9204)b7dacb2
[cli] Add watchPattern to generates config (#9151)ac44d0c
fix(deps): update graphql-tools (#9116)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)