[dependency-test] only add vitest config for migrated packages (#30060)
as packages not migrated yet would be broken when they build using tsc and the *config.ts are included as source.
This commit is contained in:
Родитель
04cc8a0045
Коммит
3afccc67ad
|
@ -403,7 +403,9 @@ async function main(argv) {
|
|||
testFolder,
|
||||
);
|
||||
await insertTsConfigJson(targetPackagePath, testFolder);
|
||||
copyVitestConfig(targetPackagePath, testFolder);
|
||||
if (packageJsonContents.scripts["integration-test:node"].includes("vitest")) {
|
||||
copyVitestConfig(targetPackagePath, testFolder);
|
||||
}
|
||||
if (dryRun) {
|
||||
console.log("Dry run only, no changes");
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче