build(client, build-tools): Target es2022 (#27846)