Skip to content

Commit

Permalink
Re-enable logging when codegen is in watch mode and detects changes (#…
Browse files Browse the repository at this point in the history
…1039)

* Re-enable logging when codegen is in watch mode and detects changes
  • Loading branch information
JakeDawkins committed Feb 25, 2019
1 parent aa17be9 commit b8a26ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Changelog

## Upcoming
- Fix a bug where tagging a build will cause the tool to not be able to figure out where the git repo is [#944](https://github.com/apollographql/apollo-tooling/pull/944)

- `apollo`
- Fix a bug where tagging a build will cause the tool to not be able to figure out where the git repo is [#944](https://github.com/apollographql/apollo-tooling/pull/944)
- Re-enable logging for codegen when in watch mode [#1039](https://github.com/apollographql/apollo-tooling/pull/1039)
- `apollo-language-server`
- Added a warning when there are 0 files found in a project [#1007](https://github.com/apollographql/apollo-tooling/pull/1007)
- Allow relative paths in includes/excludes globs [#1007](https://github.com/apollographql/apollo-tooling/pull/1007)
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo/src/commands/client/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default class Generate extends ClientCommand {
await run().catch(() => {});
const watcher = new Gaze(this.project.config.client.includes);
watcher.on("all", (event, file) => {
// console.log("\nChange detected, generating types...");
console.log("\nChange detected, generating types...");
this.project.fileDidChange(URI.file(file).toString());
});
if (tty.isatty((process.stdin as any).fd)) {
Expand Down

0 comments on commit b8a26ab

Please sign in to comment.