nx/packages/next/src/generators/application/lib/update-cypress-tsconfig.ts
2023-08-14 11:13:56 -05:00

16 lines
405 B
TypeScript

import { Tree, updateJson } from '@nx/devkit';
import { NormalizedSchema } from './normalize-options';
export function updateCypressTsConfig(host: Tree, options: NormalizedSchema) {
if (options.e2eTestRunner !== 'cypress' || !options.rootProject) {
return;
}
updateJson(host, `${options.e2eProjectRoot}/tsconfig.json`, (json) => {
return {
...json,
exclude: [],
};
});
}