What is the projected range of the JWST to be able to detect exoplanet atmospheres?
According to this article, the TRAPPIST-1 system is supposed to be studied by JWST with the potential to detect atmospheres' composition in infrared band. So at last 40 ly (approx. 12 pc) should work. Somewhere else I read there is an assumption to study earth-like exoplanetary atmospheres at distance of 10-20 pc. But it might be better to see it from different angle: the real limit is due to the produced light energy/intensity, not the distance itself. For example, see an article on exoplanet transit spectroscopy.