Skip to content

Commit bd5443c

Browse files
committed
Refactor CDS compilation within actions workflows
Replace platform-specific shell logic in cds-compilation-for-actions scripts with a cross-platform Node.js script (compile-test-cds.mjs) that reuses CDS extractor functions via a new esbuild library bundle. The .cmd and .sh wrappers now delegate entirely to `node`.
1 parent e2d0cae commit bd5443c

File tree

8 files changed

+7104
-612
lines changed

8 files changed

+7104
-612
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Entry point for the CDS test compilation workflow script.
3+
*
4+
* This module re-exports functions from the CDS extractor source code that are
5+
* needed by the `compile-test-cds.mjs` workflow script to compile CDS files
6+
* into `model.cds.json` for CodeQL unit tests, using the same logic as the
7+
* CDS extractor itself (version resolution, compilation targets, path normalization).
8+
*/
9+
10+
export { normalizeCdsJsonLocations, normalizeLocationPathsInFile } from './src/filesystem';
11+
12+
export { determineCdsFilesToCompile, readPackageJsonFile } from './src/cds/parser/functions';
13+
14+
export { modelCdsJsonFile } from './src/constants';
15+
16+
export { setSourceRootDirectory } from './src/logging';

0 commit comments

Comments
 (0)