diff --git a/CHANGELOG.md b/CHANGELOG.md index 02636d7..5fb84cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,9 @@ versions [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - The peer range moves to `@cap2ui5/cds-plugin` ^0.5.0, the plugin that hosts `@abap2ui5/node-runtime` 1.147.0 (abap2UI5 1.147.0, the transpiler - 2.14 output layout). + 2.14 output layout). `@abaplint/transpiler-cli` moves to 2.14.3 with it, + the transpiler that runtime was built with: the differential test refuses + any other, and the v0.3.0 tag's first run died on 2.13.93. - The pin moves to abap2UI5/samples `2e998ef` (2026-09-30). `Z2UI5_CL_SMP_APP_173` is translated again from its reworked original - a metadata-driven table and form with `template:with`, nested `template:repeat` and diff --git a/package.json b/package.json index d7cb15e..bb90380 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@abaplint/core": "^2.120.60", - "@abaplint/transpiler-cli": "2.13.93", + "@abaplint/transpiler-cli": "2.14.3", "@cap-js/cds-test": "^1.0.2", "@cap-js/sqlite": "^3", "@cap2ui5/cds-plugin": "^0.5.0", diff --git a/scripts/originals.mjs b/scripts/originals.mjs index 0c3cca1..0887c63 100644 --- a/scripts/originals.mjs +++ b/scripts/originals.mjs @@ -99,9 +99,14 @@ try { fs.rmSync(out, { recursive: true, force: true }); fs.mkdirSync(out, { recursive: true }); let n = 0; + // where the transpiler put the project's own classes: a folder per origin + // from @abaplint/transpiler 2.14 on (output/project/, the libs beside it as + // output/downport/ and output/open-abap-core/ - the layout the 1.147.0 + // runtime records), the flat output/ before + const written = ["project", ""].map((d) => path.join(work, "output", d)).find((d) => fs.existsSync(d)); for (const name of names) { - const file = path.join(work, "output", `${rename(name)}.clas.mjs`); - if (!fs.existsSync(file)) throw new Error(`the transpiler wrote no ${rename(name)}.clas.mjs`); + const file = path.join(written, `${rename(name)}.clas.mjs`); + if (!fs.existsSync(file)) throw new Error(`the transpiler wrote no ${rename(name)}.clas.mjs under ${path.relative(work, written) || "output"}/`); fs.copyFileSync(file, path.join(out, path.basename(file))); n++; }