docs(i18n): update master plan and add v2 phase 0/1 smoke tests

This commit is contained in:
poyrazavsever
2026-07-20 10:25:40 +03:00
parent 0f2ff48376
commit 9365dfd215
15 changed files with 795 additions and 106 deletions
+20
View File
@@ -0,0 +1,20 @@
import { execFileSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";
const root = process.cwd();
const outputRoot = path.join(root, ".next", "i18n-v2-phase1-smoke-dist");
execFileSync("./node_modules/.bin/tsc", ["-p", "tsconfig.i18n-v2-phase1-smoke.json"], {
cwd: root,
stdio: "inherit",
});
const packageFile = path.join(outputRoot, "package.json");
fs.writeFileSync(packageFile, '{"type":"commonjs"}\n');
execFileSync(
process.execPath,
[path.join(outputRoot, "scripts", "i18n-v2-phase1-smoke.js")],
{ cwd: root, stdio: "inherit" },
);