[BUGFIX] Handle pageTSconfig correctly for TS