()
| 52 | await updateTsconfig() |
| 53 | |
| 54 | async function updatePkgNames() { |
| 55 | for (const file of appsWithPkgJson) { |
| 56 | const pkgjsonPath = path.join(file, 'package.json') |
| 57 | const pkg = JSON.parse(await fs.promises.readFile(pkgjsonPath, 'utf8')) |
| 58 | pkg.name = relativeToWorkshopRoot(file).replace(/\\|\//g, '__sep__') |
| 59 | const written = await writeIfNeeded( |
| 60 | pkgjsonPath, |
| 61 | `${JSON.stringify(pkg, null, 2)}\n`, |
| 62 | ) |
| 63 | if (written) { |
| 64 | console.log(`updated ${path.relative(process.cwd(), pkgjsonPath)}`) |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | async function updateTsconfig() { |
| 70 | const tsconfig = { |
no test coverage detected